Game
Writing the Pac-Man Game in JavaFX – Part 5
By Haining Henry Zhang at 12 June, 2009, 7:11 pm
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 him. This makes the game less challenging. In fact, the behavior of the ghosts are the most tricky part of the game. According to Iwatani, the author of the original arcade game, he had designed each ghost with its own distinct personality in order to keep the game from becoming too difficult or boring to play. ( More info) However, there is generally no conclusion on what behavior of the ghosts are good for the players.
Writing the Pac-Man Game in JavaFX – Part 4
By Haining Henry Zhang at 3 June, 2009, 3:05 am
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 gobbles a magic dot.
A ghost eats the Pac-Man when it touches him.
Writing the Pac-Man Game in JavaFX – Part 1
By Haining Henry Zhang at 16 May, 2009, 5:29 am
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 work in building a game such as Pac-Man, giving me a good feel for RIA development in JavaFX.















































