I put this in the Game Logic area because it didn’t really fit anywhere else. I’m trying to make a program that uses features similar to those in Pocket Tanks where the ground can be eroded or blasted away. I’m having problems figuring out how to keep track of where the ground is and where it isn’t. I’ve tried vectors for the ground’s surface, which is a nightmare to keep track of if a hole is blasted far underground, and I don’t think a double-subscripted array would be the best because it would fill the memory with 800x600=480000 numbers to just hold the ground data. Another reason why I don’t think the vectors would work is because you can see the layers of the earth moving and surface vectors would not be able to reproduce this accurately. With the double-subscripted array you can use an
int
array to represent each type of terrain. (Or you can use an object, but that would get messy real quick. (In my science class we’re having a Pocket Tanks tournament because it’s the end of the year. This frustrated me to no end when I could not replicate the ground moving around on my computer at home. I will find out on Monday if I’ve won the tournament.)