Guest User

Untitled

a guest
Mar 13th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. void Explode()
  2. {
  3. ///remove the mines
  4. for (int y = -1; y <= 1; y++)//Sets the Vertical loop (starting at a Row Above and ending a ROw below)
  5. {
  6. 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)
  7. {
  8.  
  9. if(numberX + x >= 0 && numberX + x < LevelCreator.gridWidth && numberY + y >= 0 && numberY + y < LevelCreator.gridHeight)
  10. {
  11.  
  12. }
  13. }
  14. }
  15. ///remove the boulders
  16. ///remove the grass
  17. ////calc the numbers in a 5x5 area
  18.  
  19.  
  20. }
Add Comment
Please, Sign In to add comment