Engine is a simple framework to make 2D games in Ghost.
Currently messing around with SDL and experimenting on what the API should look like.
Website is currently in progress. You can find a local copy of some preliminary documentation here.
Below are the requirements necessary if working with the Engine source code directly.
Requirements can be installed through brew on Mac:
$ brew install sdl2 sdl2_image sdl2_ttf
- Engine should come with a set of built-in "modules" to interact with and configure various aspects of the framework and game.
Audiomodule lets you play audio files such as music or sound effects.
Enginemodule allows you to control and configure various aspects of hoe Engine as an application operates.
Windowmodule provides utilities for retrieving and setting the state of the game window.
Graphicsmodule provides utilities for drawing to the screen.
Keyboardmodule allows you to retrieve the state of the keyboard.
Mousemodule allows you to retrieve the state of the mouse.
Controllermodule allows you to retrieve the state of game controllers.
Built In Functions
Called only once before the game loop begins. This is where you would want to pre-load any resources, initialize variables, and configure settings. While its possible to perform these actions elsewhere in your code, its generally a better idea to do so here as its not called at every frame.
Called continuously where calculations and other deterministic factors should be performed.
update, this function is called continuously, allowing you to draw and update the screen.
Acknowledgements & Resources
There is no documentation for this package.