|
||||||
|
|
|
SpaceOddysy: Chapter 1 Now that we have decided the way our game looks, we need to design and make the major coding decisions. A 2-d game like ours is based on sprites. A sprite is some object of
the game visible on the screen. BTW the game uses polymorphism heavily.
So if you have any problems with that, it might be a good time to review
it. So we need to implement the sprite class. In fact, I have broken up
the sprite class in two parts. A sprite is something which has a position
and can be drawn. Corresponding to them, we have two interfaces. This is what Artifact.java basically is. And Drawable just has one method
|
| ©2005 Shabda Raaj | SpaceOddysy | BIT, Mesra | Middle-Earth | SCJP | Java Gaming | My Personal Blog |