GESTE is a sprite and tile 2D render engine designed to run on micro-controllers low performance systems. GESTE also provides a basic math and physic engine using fixed point arithmetic.
geste_examples contains 3 examples of different game genre:
In GESTE, a scene is made of layers. Native layers can be
Text. You can implement you own type of layers if you want to.
Spritelayers display a single tile at a given position
Gridlayers display a grid of tiles at a given position
Textlayers display a text at a given position
Layers have a priority which tells in which order they will be drawn on the screen.
The rendering algorithm is somewhat similar to ray casting. Instead of taking each objects of the scene and drawing it on the screen, the engine takes each pixel and tries to find its color from the different objects of the scene.
For each pixel of the area that is being drawn, GESTE will go through the list of layers and see if the corresponding pixel inside the layer is transparent or not. When a non transparent pixel is found, the pixel is pushed to the screen and the procedure starts again for the next pixel. If all the layers have a transparent pixel, the background color is used.
The more layers to go through, the more time time it will take to render a pixel.