Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits) (+1)

The First Sprite

The basics of the Entity Component System (ECS) is now complete and I added a very basic sprite component so I could render the engine's logo to test it.

This is just the beginning of the advanced rendering system that I plan to implement, including render layers and shaders.

The ECS that I created is similar to Unity's, so it's very easy to use. Creating an object requires just one line of code, and one more to add a sprite to it. The rest is handled automatically by the engine.

The system also provides an extremely simple way to change a component that is sitting on an object. Example:



Each component and object also has a method to destroy it, which also removes any instance of anything related to it, so as to avoid segmentation faults due to accessing deleted memory as much as possible.

Soon: Render Layers, ability to scale objects, window resizing


Check out Crimson's GitHub to view the code HERE