From 4a77df6ac5cd266813d3b2bbd583ad9596abc421 Mon Sep 17 00:00:00 2001 From: Cheru Berhanu Date: Mon, 21 Oct 2024 11:42:04 -0400 Subject: [PATCH] Sprig App - wahooo --- games/wahooo.js | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 games/wahooo.js diff --git a/games/wahooo.js b/games/wahooo.js new file mode 100644 index 0000000000..4ef76742f9 --- /dev/null +++ b/games/wahooo.js @@ -0,0 +1,54 @@ +/* +First time? Check out the tutorial game: +https://sprig.hackclub.com/gallery/getting_started + +@title: wahooo +@author: +@tags: [] +@addedOn: 2024-00-00 +*/ + +const player = "p" + +setLegend( + [ player, bitmap` +................ +................ +.......000...... +.......0.0...... +......0..0...... +......0...0.0... +....0003.30.0... +....0.0...000... +....0.05550..... +......0...0..... +.....0....0..... +.....0...0...... +......000....... +......0.0....... +.....00.00...... +................` ] +) + +setSolids([]) + +let level = 0 +const levels = [ + map` +p. +..` +] + +setMap(levels[level]) + +setPushables({ + [ player ]: [] +}) + +onInput("s", () => { + getFirst(player).y += 1 +}) + +afterInput(() => { + +}) \ No newline at end of file