<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>InsideRIA</title>
<link rel="alternate" type="text/html" href="http://www.insideria.com/" />
<link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
<id>tag:www.insideria.com,2008-01-28://34</id>
<updated>2009-06-12T16:10:00Z</updated>
<subtitle>InsideRIA.com is an online community developed by O’Reilly and sponsored by Adobe Systems Incorporated. Our goal is to create an invaluable resource for information on the ever-changing state of design and development of rich Internet applications (RIAs).</subtitle>
<generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.21-en</generator>

<entry>
<title>Writing the Pac-Man Game in JavaFX - Part 5</title>
<link rel="alternate" type="text/html" href="http://www.insideria.com/2009/06/writing-the-pac-man-game-in-ja-4.html" />
<id>tag:www.insideria.com,2009://34.36372</id>

<published>2009-06-12T16:10:00Z</published>
<updated>2009-06-12T16:10:00Z</updated>

<summary>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. </summary>
<author>
<name>Haining Henry Zhang</name>

</author>

<category term="Features" scheme="http://www.sixapart.com/ns/types#category" />

<category term="development" label="development" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="game" label="game" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="gaming" label="gaming" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="java" label="java" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="javafx" label="javafx" scheme="http://www.sixapart.com/ns/types#tag" />

<content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
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. 
</content>
</entry>

<entry>
<title>Writing the Pac-Man Game in JavaFX - Part 4</title>
<link rel="alternate" type="text/html" href="http://www.insideria.com/2009/06/writing-the-pac-man-game-in-ja-3.html" />
<id>tag:www.insideria.com,2009://34.36369</id>

<published>2009-06-04T16:00:00Z</published>
<updated>2009-06-04T16:00:00Z</updated>

<summary>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. 

</summary>
<author>
<name>Haining Henry Zhang</name>

</author>

<category term="Features" scheme="http://www.sixapart.com/ns/types#category" />

<category term="development" label="development" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="game" label="game" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="gaming" label="gaming" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="java" label="java" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="javafx" label="javafx" scheme="http://www.sixapart.com/ns/types#tag" />

<content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
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. 


</content>
</entry>

<entry>
<title>Writing the Pac-Man Game in JavaFX - Part 3</title>
<link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/writing-the-pac-man-game-in-ja-2.html" />
<id>tag:www.insideria.com,2009://34.36290</id>

<published>2009-05-28T16:00:00Z</published>
<updated>2009-05-28T16:00:00Z</updated>

<summary>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 the Pac-Man. The Pac-Man dies if he is touched
by one of the ghosts. If the Pac-Man swallows a magic dot, he has the power to eat ghosts for a while. During this 
time, the ghosts turn hollow and move more slowly.
</summary>
<author>
<name>Haining Henry Zhang</name>

</author>

<category term="Features" scheme="http://www.sixapart.com/ns/types#category" />

<category term="development" label="development" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="game" label="game" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="gaming" label="gaming" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="java" label="java" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="javafx" label="javafx" scheme="http://www.sixapart.com/ns/types#tag" />

<content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
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 the Pac-Man. The Pac-Man dies if he is touched
by one of the ghosts. If the Pac-Man swallows a magic dot, he has the power to eat ghosts for a while. During this 
time, the ghosts turn hollow and move more slowly.

</content>
</entry>

<entry>
<title>Writing the Pac-Man Game in JavaFX - Part 2</title>
<link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/writing-the-pac-man-game-in-ja-1.html" />
<id>tag:www.insideria.com,2009://34.36111</id>

<published>2009-05-21T13:00:00Z</published>
<updated>2009-05-21T13:00:00Z</updated>

<summary>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 path. To implement the
Pac-Man character, we divide the coding into a few tasks so that we can create it bit by bit:</summary>
<author>
<name>Haining Henry Zhang</name>

</author>

<category term="Features" scheme="http://www.sixapart.com/ns/types#category" />

<category term="development" label="development" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="game" label="game" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="gaming" label="gaming" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="java" label="java" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="javafx" label="javafx" scheme="http://www.sixapart.com/ns/types#tag" />

<content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
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 path. To implement the
Pac-Man character, we divide the coding into a few tasks so that we can create it bit by bit:
</content>
</entry>

<entry>
<title>Writing the Pac-Man Game in JavaFX - Part 1</title>
<link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/writing-the-pac-man-game-in-ja.html" />
<id>tag:www.insideria.com,2009://34.35762</id>

<published>2009-05-14T13:00:00Z</published>
<updated>2009-05-14T13:00:00Z</updated>

<summary>When I was young I was fascinated by arcade games. One of my favorites was the Pac-Man game.&#160; Recently, when I was learning the JavaFX language, I decided to write the game in JavaFX.&#160; 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.</summary>
<author>
<name>Haining Henry Zhang</name>

</author>

<category term="Features" scheme="http://www.sixapart.com/ns/types#category" />

<category term="development" label="development" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="game" label="game" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="gaming" label="gaming" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="java" label="java" scheme="http://www.sixapart.com/ns/types#tag" />
<category term="javafx" label="javafx" scheme="http://www.sixapart.com/ns/types#tag" />

<content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
When I was young I was fascinated by arcade games. One of my favorites was the Pac-Man game.&#160; Recently, when I was learning the JavaFX language, I decided to write the game in JavaFX.&#160; 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.
</content>
</entry>

</feed>