Quickstart
moosh docsOpen editor
DocsGetting startedQuickstart4 min read

Quickstart

Build your first game in 5 minutes.

What is Moosh?

Moosh is a place to make and play 2D games in your browser using Python. You can build games yourself, get help from AI, or remix what others have made.

Open the editor

Head to developer.moosh.games, sign in, choose New game, and pick the Blank starter.

Look at the code

The Blank starter gives you a minimal main.py file ready to run.

main.pypython
from conjure import *
 
init_window(360, 640, "My Game")
set_target_fps(60)
 
while not window_should_close():
    begin_drawing()
    clear_background(WHITE)
    end_drawing()

Run it

Click Run in the editor. The runtime loads the active Python file and shows the canvas beside console output.

main.pyRun
Game canvas preview, 360 by 640.

Make it do something

Add these lines between begin_drawing() and end_drawing().

main.pypython
mouse_x = get_mouse_x()
mouse_y = get_mouse_y()
draw_circle(mouse_x, mouse_y, 20, RED)

Publish it

Click Publish, add title, description, category, tags, and choose public or unlisted visibility. Read the publishing guide before sharing widely.

What is next?

Continue with your first game, then check leaderboards when your game needs scores.