Open stevensacks opened 5 years ago
Game Time!
You'll need to create a game state which keeps track of the score and a game timer that counts down from 1 minute to 0.
Upon start of the game, generate a board with a random dimension, random walls, one tunnel, one portal.
Place the robots away from each other on a random square on the edge of the board.
Do a 3, 2, 1, GO countdown separate from the game timer. Once it reaches GO, the game starts.
Make a goal item appear and every time a robot picks one up, randomly place a new one somewhere else.
When the countdown clock ends, the robot with the most points wins. Robots can no longer move until you...
Click a button to start another game. 3, 2, 1 GO.
Don't worry about fairness other than a goal item should never appear in a square adjacent to a robot.
Game Time!
You'll need to create a game state which keeps track of the score and a game timer that counts down from 1 minute to 0.
Upon start of the game, generate a board with a random dimension, random walls, one tunnel, one portal.
Place the robots away from each other on a random square on the edge of the board.
Do a 3, 2, 1, GO countdown separate from the game timer. Once it reaches GO, the game starts.
Make a goal item appear and every time a robot picks one up, randomly place a new one somewhere else.
When the countdown clock ends, the robot with the most points wins. Robots can no longer move until you...
Click a button to start another game. 3, 2, 1 GO.
Don't worry about fairness other than a goal item should never appear in a square adjacent to a robot.