Biography
Blog
Recent Posts | All Posts
Writing the Pac-Man Game in JavaFX - Part 5
June 12 2009
In previous articles, we finished writing most of the code of the Pac-Man game. In article 3, we implemented a simple algorithm for the ghosts to catch the Pac-Man. The ghosts randomly decides in which direction they move. They do not chase the Pac-Man even they are very close to… read moreWriting the Pac-Man Game in JavaFX - Part 4
June 02 2009
In the last article, we developed a preliminary version of the Pac-Man game. Four ghosts are randomly roaming the maze and a Pac-Man character can be controlled by a player. Now, we write some more code for the interaction between ghosts and the Pac-Man: Pac-Man eats a ghost after he… read moreWriting the Pac-Man Game in JavaFX - Part 3
May 25 2009
We are now ready to create the ghosts in our game. The four ghosts, namely Blinky(red), Pinky(pink), Inky(cyan) and Clyde(orange), are trapped inside a cage when a game starts. After some time, they get out of the cage one by one and start roaming the maze. Their goal is to catch… read moreWriting the Pac-Man Game in JavaFX - Part 2
May 14 2009
In last article, we designed a data model and drew a maze with dots spread into the maze. Now we are ready to create the Pac-Man character. The Pac-Man character is controlled by the game player to move around the maze. While he is moving, he keeps gobbling dots along the… read moreWriting the Pac-Man Game in JavaFX - Part 1
May 10 2009
When I was young I was fascinated by arcade games. One of my favorites was the Pac-Man game. Recently, when I was learning the JavaFX language, I decided to write the game in JavaFX. Based on my experience in other programming languages, I assumed there would be some amount of… read moreRecent Posts | All Posts