diff --git a/games/JUMP.js b/games/JUMP.js new file mode 100644 index 0000000000..1eba70f8b0 --- /dev/null +++ b/games/JUMP.js @@ -0,0 +1,114 @@ +/* +First time? Check out the tutorial game: +https://sprig.hackclub.com/gallery/getting_started + +@title: Pixel-Miner +@description: +@author: +@tags: ['tag1', 'tag2'] +@addedOn: 2025-00-00 +*/ + +const player = "p" +const map = "map" +const enemy = "e" +const goal = "g" + +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...... +................` ] +) +setLegend( + [ map, bitmap` +................ +................ +................ +................ +................ +................ +................ +................ +..............4. +..............4. +..............4. +..............4. +..............4. +..............4. +..............4. +CCCCCCCCCCCCCCCC` ] +) +setLegend( + [ enemy, bitmap` +..........3..... +.........3C3.... +........3CCC3... +.........3C3.... +..........3..... +..........3..... +..........3..... +........333333.. +.......33333333. +.......33333333. +.......33333333. +.......33333333. +.......3333333.. +........333333.. +.........33333.. +..........333...` ] +) +setLegend( + [ goal, bitmap` +................ +................ +................ +................ +..........444... +..........444... +..........444... +............0... +............0... +............0... +............0... +............0... +............0... +............0... +............0... +...........000..` ] +) +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