Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Explode()
- {
- ///remove the mines
- for (int y = -1; y <= 1; y++)//Sets the Vertical loop (starting at a Row Above and ending a ROw below)
- {
- for (int x = -1; x <= 1; x++) //Sets the Horizontal loop (starting at the column to the left and ending at the column to the right)
- {
- if(numberX + x >= 0 && numberX + x < LevelCreator.gridWidth && numberY + y >= 0 && numberY + y < LevelCreator.gridHeight)
- {
- }
- }
- }
- ///remove the boulders
- ///remove the grass
- ////calc the numbers in a 5x5 area
- }
Add Comment
Please, Sign In to add comment