lucastle6969 / comp371

repository for comp371 final project Fall 2017 Concordia
0 stars 0 forks source link

Issue 21/seed based containers #34

Closed benwiley4000 closed 6 years ago

benwiley4000 commented 6 years ago

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, 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!

Looking forward to comments - thanks.