2010年1月14日 星期四

Project - Processing

Game Illustration:

This is a shooting game.

Start the game, you will have 10 bullets to fire. In upper left area(300px x 300px) is shooting area and the target will move dynamically, randomly.

Your goal is to hit the target as central as possible and then get high score. There are three rings in the target. From inner to outer represents 80, 50, 0 points, respectively.

Be careful! Don't shoot outside the target, or minus score you will get.

After finishing a round, program will show average and highest score record(only this session). You can click "Restart" to restart the game.


Comment:

Because it's so plain in coloring and not using any picture elements that can run smoothly in browser with applet. Of course, it can be more colorful. But I'm lazy to splash paint to it right now... ...

On technical point, I still have one thing to overcome - File reading and writing. This time highest score record is just stored through a variable. That means when you close the game, it will disappear. So store the value in a nonvolatile place is imperative. Using database is just a storm in a teacup. Simple file processing is a more adequate way. But this also need more studies to implement.

沒有留言:

張貼留言