You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stephen P edited this page Nov 1, 2020
·
4 revisions
Welcome to the CoSprite wiki!
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.