Summary so far
Take a look at these bullet points that describe everything we have discussed so far:
- We will have component classes like
MovementComponent
,GraphicsComponent
,SpawnComponent
andInputComponent
. These will be interfaces with no specific functionality. - There will be concrete classes that implement these interfaces like
DiverMovement
,PlayerMovement
,StandardGraphics
,BackgroundGraphics
,PlayerInput
etc. - We will have specification classes for each game object that specify the components that each object in the game will have. These specifications will also have extra details like size, speed, name and graphics file required for the desired appearance.
- There will be a factory class that knows how to read the specification classes and assemble generic but internally different
GameObject
instances. - There will be a level class that will know which and how many of each type of
GameObject
is required and will order them from the factory class.
The net result will be that we will have...