Levels
Lv 56
Rocket Landing 2
★★★★★
Score 1000 in this challenge.
0
Score:
0
/ 1000
Hint
Code
Run
Reset
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
hero = makeSprite("hero", 180, 40, { emoji: "🚀", w: 40, h: 50 }); hero.gravity = 0.2; pad = makeSprite("pad", 160, 360, { color: "#3ab795", w: 80, h: 16, gravity: 0 }); count = 0; whenKey(" ", () => { hero.vy -= 1.2; }); onUpdate(() => { if (keyDown("arrowright")) hero.x += 2; if (keyDown("arrowleft")) hero.x -= 2; if (touching(hero, pad)) { if (hero.vy < 4) { addScore(1); count += 1; hero.y = 40; hero.x = random(60, 300); hero.vy = 0; setPosition(pad, random(40, 280), 360); if (count >= 1000) endGame(); } else { endGame(); } } if (hero.y > 400) endGame(); }); // Goal: soft-land 1000 times!
Game
← Prev
Next →