-
Notifications
You must be signed in to change notification settings - Fork 0
Home
CoSprite is a 2D game engine using SDL2 to deliver an organized mapping to game objects. Sprites are textures that can be rotated, flipped, and scaled. Models are collections of sprites that are all positioned relative to the model coordinate. Finally, text elements can be represented in much the same way, being rendered dynamically. A camera is also used to position all objects relative to itself. You can assign drawing priority to each individual element, although the only use that has is for a Scene.
You can easily combine all of these parts together into the Scene struct. The Scene struct collects sprites, models, text, other resources, and a camera into one box, and renders it all with drawing priority.
As well, there is keyboard/mouse input gathering, curl HTTP support, JSON-like data structures, and audio playback.