Levels
Lv 22
Dodge Master 1
★
Score 3 in this challenge.
0
Score:
0
/ 3
Hint
Code
Run
Reset
1
2
3
4
5
6
7
8
9
10
11
hero = makeSprite("hero", 40, 300, { emoji: "🦊", w: 40, h: 40 }); rock = makeSprite("rock", 400, 320, { emoji: "🪨", gravity: 0 }); rock.vx = -3.4; whenKey(" ", () => jump(hero)); onUpdate(() => { if (rock.x < -32) { rock.x = 400; addScore(1); } if (touching(hero, rock)) endGame(); }); // Goal: dodge 3 rocks!
Game
← Prev
Next →