Added placeholder classes for trees and boxes (almost identical, and currently just rendered as transparent boxes). Randomly scattering trees and rocks on each world tile, after setting srand using position info. I checked, and we're getting the same placements each time I run the program! 😃
I refactored WorldTile a bit, and World a lot, to manage the allocation and de-allocation of WorldTile instances as we move around the world. It was a pain to get working.. but now it does!
Closes #21.
Added placeholder classes for trees and boxes (almost identical, and currently just rendered as transparent boxes). Randomly scattering trees and rocks on each world tile, after setting
srand
using position info. I checked, and we're getting the same placements each time I run the program! 😃I refactored
WorldTile
a bit, andWorld
a lot, to manage the allocation and de-allocation ofWorldTile
instances as we move around the world. It was a pain to get working.. but now it does!Looking forward to comments - thanks.