Groombridge Blog
A role-playing game that features a well-thought architecture.
Brought to you by:
agamedeveloper
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.