Skip to content
Docs
Build it yourself

Your first game, by hand

From a blank project to a published game - a ball, walls, a goal line, a score and one rule.

A ball rolls into a goal and the score goes up. About ten minutes, by hand.

Tip

An AI assistant can build this for you. See Build with AI.

1. Create a project

  1. Open studio.disko.ooo and sign in.

  2. Press New project, give it a name, and choose Blank: this guide builds everything itself.

2. Add the ball

  1. Press New scene in the Project panel.

  2. Pick the Disc tool and click in the scene.

  3. In the Inspector, set:

    • Name: Ball

    • Velocity x: 4 (it rolls right)

    • Damping: 1 (it never slows down)

3. Draw walls and a goal

  1. Pick the Wall tool and click corner by corner, then the first corner again to close the wall.

  2. Pick the Line tool and click two points on the right.

  3. Select the line and name it Goal.

A line blocks nothing. It notices discs that cross it.

4. Keep score

  1. Open Variables and press New variable. Name it score.

  2. Open Events and press New row.

  3. Choose the trigger A disc crosses {line}, and set line to Goal.

  4. Press Action, choose Add {n} to {variable}: 1 to score.

  5. Press Action again, choose Move {disc} to {position}: Ball to 0, 0, the middle of the scene.

The row reads: When a disc crosses Goal, add 1 to score, move Ball to (0, 0). Without the move, the ball bounces back over the line and scores again.

5. Play it

  1. Press Play, then Start match in the bar above the game.

  2. Open Variables and select score: it goes up by 1 each time the ball scores.

  3. Press Stop to go back to editing.

6. Publish it

  1. In the Creator Portal, claim a namespace and create a game (once).

  2. Press Publish, pick the game and its visibility, and confirm.

Anyone can now play it in a room. See Publishing.

Next