Levels
Lv 29
Laser Gauntlet 1
★★★
Score 450 in this challenge.
0
Score:
0
/ 450
Hint
Code
Run
Reset
1
2
3
4
5
6
7
8
9
10
11
12
hero = makeSprite("hero", 60, 300, { emoji: "🥷", w: 40, h: 40 }); l1 = makeSprite("l1", 400, 300, { emoji: "🟥", w: 40, h: 8, gravity: 0 }); l1.vx = -49.0; l2 = makeSprite("l2", 700, 260, { emoji: "🟧", w: 40, h: 8, gravity: 0 }); l2.vx = -50.0; whenKey(" ", () => jump(hero)); onUpdate(() => { if (l1.x < -40) { l1.x = 400 + random(0, 200); addScore(1); } if (l2.x < -40) { l2.x = 500 + random(0, 200); l2.y = 240 + random(0, 60); addScore(1); } if (touching(hero, l1) || touching(hero, l2)) endGame(); }); // Goal: survive 450 laser beams!
Game
← Prev
Next →