Type code. Make games. Free, on any device.
Nothing here yet. Start a new project, or open an example below and change it. Your changes save on their own.
Open one to play it. Then change the code and make it yours.
1
Things you print() show up here.
This is real JavaScript. These extra commands make games quicker to build.
Type what you want in the box at the bottom, in normal words, like a cat catches falling fish. The Helper writes the code, and you can read it to see how it works. It isn't an AI, so it only knows certain words: things like cats, balls and stars, colors, how things move, and what happens when things touch or get tapped.
width and height are the size of the play area. x goes right and y goes down. The top left corner is 0, 0.
Colors can be names like "red", or codes like "#ff8800".
text("🐸", 100, 100, 50)dt is how many seconds since last time.true while that key is held down.random(["a", "b"]) picks one from a list.beep(440, 0.2)ctx is the real canvas, so anything a web page can draw, you can draw. Math, lists, functions and classes all work.
On a keyboard, Ctrl + Enter or ⌘ + Enter runs your code.