The ShooterZero.zip file over on my google pages page contains an XNA project that is a 2D shooter game framework.The code describes a series of classes that together provide services that a shooter will need:
- Resource management and a game loop with debugging functions (even a simple console!)
- An object model, where all elements of the game are Object Instances that are created from Object Definitions
- A scripting language to define the behaviour of Objects
- A set of services that the Object Instances can employ, e.g. intersection, rendering, input, etc.
- A parser that can create Object Definitions and Object Instances
The implementation here is admittedly very slapdash for lack of time invested, but I believe the principal features of the kind of data driven system I'm trying to demonstrate are evident:
- Game is setup with parameters read from a data file - one engine supports a variety of expressions by implementing common primitives.
- Objects in the game are defined using data driven templates, both properties and behaviors - data is parsed into logical collections of primitives.
- Object instances are created from data - separate structure from content.
- All the Data is reloadable at runtime - faster iteration time when it comes to implementing content.