I am building a treasure hunting/dungeon type game where there are:
- 200 rooms
- 100 treasure chests in the same places in 100 of the rooms
- 25 pieces of treasure, randomly distributed at the start of each new game within those 100 chests
My question is: how do I populate those chests? Some sort of array possibly?
I have built 2 test rooms linked together and can run between them, have programmed an enemy for testing but just can't get my head around how to populate the chests randomly and ensuring that we only have 25 pieces of treasure in them!
Thanks in advance,