Atoms
Game tutorials

Change your game and test a complete round

Change one part of your game and test winning, losing and restarting.

Improve one part of your game, then test a complete winning round, losing round, and restart. The practice game is a fox catching apples: five catches win, three misses lose, and Play again should reset both counters.

Before you start

Open the orchard game from Describe and build your first browser game, or a game with clearly defined controls, scoring, win and loss conditions, and a restart action. Start from a playable version in** Preview**. For another game, adapt the test counts to the rules you requested.

Change the rules, character, or scene

Send a focused request in the project chat. Use the wording that fits what you saw:

What you want to change Example request
Difficulty “I missed three apples before I could cross the orchard. Make the apples fall half as fast. Keep the win and loss thresholds.”
Character “Give the fox a wicker basket. Count a catch when the apple touches the basket rim so the player can see what they caught.”
Scene “Change the orchard to dusk. Keep the apples bright red and place the score on a dark panel so I can read it against the trees.”

After each build, repeat the action that prompted the change. For the basket, try catching an apple at the rim and then letting one fall just outside it. Both outcomes should match what the player sees.

Playtest both endings and the restart

  1. Win. Catch four apples and confirm the round continues. Catch the fifth. The win message should appear and apples should stop falling.
  2. Restart after a win. Select Play again. Score and misses should both read zero, and the fox should respond to the arrow keys.
  3. Lose. Let three apples reach the ground. The first two misses should let you continue. The third should end the round.
  4. Restart after a loss. Play again and catch one apple. The new score should read one.

Orchard Fox win screen with Score 5/5, Misses 0/3 and Play again

The matching orchard example at its winning boundary: Score 5/5, You win. and Play again are visible. Open the full-resolution screenshot.

Orchard Fox restarted with Score 0/5 and Misses 0/3

After selecting Play again, this orchard example shows both counters reset to zero and a new apple in play. Repeat the loss and restart tests above in your own version as well. Open the full-resolution screenshot.

If you want people to play on phones, ask for visible touch controls and test a round on a phone. A layout that fits the screen can still require a keyboard.

Turbo Kart Rush paused with Restart Race and the current lap and time visible

A separate example: Turbo Kart Rush paused before restarting, with Restart Race, lap 1/3 and the current timer visible. This illustrates where that game exposes its restart action; it is not the orchard game or evidence that its win, loss and reset checks passed.

Troubleshoot controls, scoring and restarting

What you see What to try
The arrow keys scroll the page Click inside the game and try again. If the page still scrolls, ask Atoms to have the game handle the arrow keys while you play.
A catch adds two points Tell Atoms which apple you caught and the count before and after. Ask it to remove each apple as soon as the first catch is counted.
The next round ends immediately Tell Atoms whether you restarted after winning or losing. Ask it to clear the previous round’s counters, objects, and ending state on replay.

Check your progress

The changed behavior works, winning and losing happen at the intended boundaries, and each restart begins a fresh round. For the orchard game, the first catch after restarting gives one point. Keep any remaining failure as a specific chat request and repeat its test after the next build.

Continue with Publish your game and test the player link.

Was this page helpful?

Related Articles