Commands in words you already know
To draw a circle you write _circle. To branch you write _if. No vocabulary to memorise before you start — you look for the word you were already thinking of.
The hard part of programming is not typing. It is not knowing what that line on the screen actually does. Here the explanation sits next to the code, and changing one number changes the picture straight away.
To draw a circle you write _circle. To branch you write _if. No vocabulary to memorise before you start — you look for the word you were already thinking of.
Put the cursor on any line and the panel says what that line does, what each number means, and which step you left out that keeps it from showing up.
Code and game sit one above the other. Change 300 to 500 and the circle moves right. Lower the gravity and the character falls slower. Cause and effect, side by side.
The code on the left, the editor’s explanation on the right.
_setup = _ => {
_createCanvas(800, 600)
hero = _sprite(400, 100, 50, 50)
hero._color(255, 180, 84)._gravity(1200)
}
_draw = _ => {
_if( _keyPressed('space') ){
hero._jump(500)
}
}
Start with the shortest example and end up building your own games and web pages. Everything you finish earns experience, and levels unlock new stages and heroes.
Ninja-code examples from easy to hard. Open any of them in the editor and change them. Running one earns experience.
Small games that drill one idea each: binary, logic, sorting, searching, coordinates — plus tasks that build a real web page. Ages 10 and up, three to five minutes each.
Longer games with several levels. The hero you bring shows up in the game, and their abilities change how it plays.
Collect heroes by clearing challenges. The hero you bring earns experience alongside you and gets better as they level.
Every command has four spellings that all point at the same function. Learn the idea in the language you think in, then switch to English and you are already writing something close to ordinary code.
The runtime uses Phaser 3 and the editor uses Monaco. Both are MIT licensed and free for commercial use.