Move the responsibility of drawing child components into the parent component. Now we only call draw() on world in main.cpp.
There is now a World class which extends Entity - and it is also responsible for creating the player, axes and world tiles. I moved all the related logic from main.cpp into world.cpp.
I got rid of a whole bunch of height map terrain related stuff that we don't need anymore.
A few main changes:
draw()
onworld
in main.cpp.World
class which extendsEntity
- and it is also responsible for creating the player, axes and world tiles. I moved all the related logic from main.cpp into world.cpp.