All labs ยท ๐ฎ Game maker
Make your own game in Python
Sprites, arrow keys, collisions, score, lives and gravity โ build real games step by step, then invent your own. Plays right here in the browser (and on phones with the on-screen buttons).
๐ Free demo: try the first 2 lessons and the first tool. Subscribe to unlock everything here and in all the other labs โ USD 10 a month (USD 100 a year), or included with lessons.
โจ SubscribeLog in
Start from a finished game and change it โ speeds, sprites, rules. Make it yours!
๐ Everything in the game library
Actor("๐ฑ", x=240, y=180, size=40) a sprite
.x .y .size .angle move, grow, spin it
.draw() show it
.collide(other) True when touching
.distance_to(other)
clear("skyblue") background
rect(x, y, w, h, "green") circle(x, y, r, "red")
line(x1, y1, x2, y2, "black")
text("Score: 5", x, y, size, "white")
sound("pop" / "coin" / "hit" / "jump" / "win")
keyboard.left .right .up .down .space .a โฆ .z
mouse.x mouse.y mouse.down
WIDTH = 480, HEIGHT = 360
def update(): runs every frame โ move things
def draw(): runs every frame โ paint things