Leafgem is the humble beginning of a 2D open source game engine written in Crystal!
git clone https://github.com/tfcat/Leafgem.git cd Leafgem shards install crystal run -s -p examples/demo/main.cr
flare map files
What are the main things we need for a Game Engine? Here's what I can think of off the top of my head. Each of the given features could be contained in a class which correlates to their purpose.
[x] Background renderer
[ ] Foreground renderer
[x] Tileset renderer
[ ] Tile layers
[ ] Spawn objects in predetermined places
[ ] Easier workflow regarding room creation... (Currently use Tiled; should I make an editor?)
maps.cr. This results in unexpected
truereturns with some object functions;
I'm not all that good with Crystal - I'm creating this project as practice using the Crystal language!
That means any and all contributions to this engine are welcome and heavily appreciated, no matter how big or small. The aim is to give creators an intuitive toolkit for making games quickly and easily!
Any ideas are welcome! Fork, and work your magic!