The core 2D game engine built from scratch using SDL for graphics and windowing
What the engine does (or should do): Abstracts the event loop Reads keyboard mappings from files Handles keyboard inputs based on the mapping Handles sprite and view rendering Includes a renderer interface to render sprites and backgrounds Uses a grid based map system with scrolling support Loads level maps from text files A point system A main menu rendering system
Notes: The coordinate system is so that up is a negative change in the y axis, down is a positive change in the y axis, left is a negative change in the x axis, and right is a positive change in the x axis.
Macro for easily creating block classes
The data contained in an actor
Actions that the view would want the event loop to do
A game object that supports sending and receiving messages
Handler for a view to deal with actor messages