Uploaded December 2018 | Updated September 2026, 2 hours ago
This video shows camera rotation and scaling.
The game now simply calls one function to draw sprites, where game objects' rotation, scaling, and translation is taken into account as well as camera rotation, zoom, and location.
This should dramatically help coding up a wide array of 2D games, as a good chunk of graphics logic will already be allowed for.
Next, I'll look to draw sprites at different depths, to give a mock 3D effect to the drawing routine.
I will release all code on GitHub once I've finalised the engine - and have nice looking code to boot!
Using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili!
This video shows camera rotation and scaling.
The game now simply calls one function to draw sprites, where game objects' rotation, scaling, and translation is taken into account as well as camera rotation, zoom, and location.
This should dramatically help coding up a wide array of 2D games, as a good chunk of graphics logic will already be allowed for.
Next, I'll look to draw sprites at different depths, to give a mock 3D effect to the drawing routine.
I will release all code on GitHub once I've finalised the engine - and have nice looking code to boot!
Using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili!





![2D Game Engine in C++: [4] Planes
This video illustrates the new feature of planes or layers in the engine.
This allows the game to have depth / pseudo 3D effects. Ideas for this would be e.g. allowing for pillars in front of a player obstructing the player view - possibly quite a nice game effect.
Next, Ill look to adding alpha blending to the drawing routine.
I will release all code on GitHub once Ive finalised the engine - and have nice looking code to boot!
Using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili! 2D Game Engine in C++: [4] Planes](https://i.ytimg.com/vi/qqHSr180imE/mqdefault.jpg)




