This game aims to be a simple turn based player vs cpu fighting game in an “arena” setting.
Currently the demo is playable but not feature complete.
The Source code can be found here: https://github.com/FreezingSnail/Fight
- Up/Down to scroll the menus
- A to select
- B to go back
I’ve implement these features so far:
- Player classes
- Equiptable weapon inventory
- Cost system for buying weapons and healing
- Random enemy generation
- stat and inventory room
- Store room
- Battle room
- option to reset
- leveling system for the player and enemys
- Preset “boss” enemies at certain levels i.e. area rank ups
- magic option for the mage/ boss characters
- leveling system for enemies
- Turn screens in the battle scene that describe what happened on the previous turn. I.e. you attacked enemy defended
My goal scope features still include:
- Ability to save your character
- Add a special attack for boss characters
Here are a few screen shots:
This is the first time I’ve written in c++ and only have minor experience in python and java so I’m aware that there are probably a lot of ways that I could write this better. Currently I’m at 2011 bytes of memory usage so any suggestions on ways I could reduce that would be appreciated.
As for code improvement goals i would like to change how I’ve implemented the scrolling menus, and buffer checks for button inputs. I believe I could move the notPressed checks into the main ino game loop and reduce my if statements in the gameEngine cpp. I would also like to change how they are displayed. I would like all the options in a menu list to be printed at once as you scroll but i’m unsure how to do that efficiently.
The gameEngine.cpp could be simplified and probably split up into 2 different files but I don’t know if that will be in the scope fir this particular project.
Also I would appreciate any comments on my usages of enums, structures, and classes as well. I originally had the player as a structure but found them not flexible enough to modify. The random enemies are constant besides their health so they could potentially be converted into structures. This would also require a rewrite for the battle mechanics however.
A side note, I’m not entirely clear on using fonts in this context. Can SIL Open Font License’d fonts be used freely along an MIT license in bitmaps like the splash screen?