Menu

Groombridge / Blog: Recent posts

First commit

The first batch of files has been committed, creating the java project and introducing the viewer to inheritance in Java. Three classes were created.
- GameObject, the superclass for all objects a player can interact with. Objects of this class have a name, health, and hence can die. If a particular functionality upon death is needed, subclasses can override the die() method.
- AnimatedGameObject, a class of objects that have an ability to move.
- Character, which has only two additional fields: experience and level.

Posted by AGameDeveloper 2012-03-30