Trefonds is a Dungeon Crawler with procedural levels for PC and Android. It was made in 2 months from may to june 2016 in C++ only using flib, a librairy to display sprites and play sounds.
The main constrain was to to optimize it so it would run at 60 fps on the Wiko Sunset 2, a cheap smartphone.
Since it was a student project, we were allowed to use copyrighted content, and I took some sprites from Might&Magic, Castlevanie, RoK… so this game is not avalaible for download.
The first step was to make the game engine. I went for a level editor that allowed me to press play and jump right into the action. It was a good way to test it.
For the lighting system, since dynamic lighting was out of the question performance wise, I baked the light maps on load.
Once the basics of the engine were done, I started to work on the level generator. For each room configuration, there are multiple rooms with each multiple set-ups.
One of the particularity of the game is the auto jump system. Since the game was designed for smartphone, I didn’t want to have a jump button so the character automatically jumps (or climbs stairs), depending of where you put your finger, on screen when he detects an obstacle.
Conclusion
Even though I’m quite proud of this game, and it won the HEAJ’s C++ award, there are many things I would do differently programming wise. Like a better architecture and use patterns such as observer, component, factory… Also I would flatten the game object inheritance so most classes don’t have more than one inheritance.