From df15098bf239dd07df51cc89e6e85beaecf4e88e Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sat, 16 Dec 2023 22:18:20 +0530 Subject: [PATCH 1/9] Adding Hungry Ninja Game --- games/Hungry Ninja.js | 371 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 371 insertions(+) create mode 100644 games/Hungry Ninja.js diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js new file mode 100644 index 0000000000..d0bf5c903a --- /dev/null +++ b/games/Hungry Ninja.js @@ -0,0 +1,371 @@ +/* +@title: Hungry Ninja +@author: Prajval Raval + +Instructions: +WASD to control your player +Collect as many apples as you can and avoid bombs. +P.S. There are also apple bombs :-) +*/ + +// All the game sprites +const player = "p"; +const box = "b"; +const goal = "g"; +const wall = "w"; +const log = "l"; +const dirt = "d"; +const leaves = "e"; +const sky = "s"; +const apple = "a"; +const enemy = "q"; + +// Game Variables +let ninjaDied = false; +let score = 0; +let level = 0; + +// Game Music +const music = tune` +277.77777777777777: B5~277.77777777777777 + C4~277.77777777777777, +277.77777777777777: B4~277.77777777777777 + C5^277.77777777777777, +277.77777777777777: C5~277.77777777777777 + B4^277.77777777777777 + A4-277.77777777777777, +277.77777777777777: C5/277.77777777777777 + B4~277.77777777777777 + D4-277.77777777777777, +277.77777777777777: G5~277.77777777777777, +277.77777777777777: F4^277.77777777777777 + E4^277.77777777777777 + G5~277.77777777777777, +277.77777777777777: F4^277.77777777777777 + E4^277.77777777777777, +277.77777777777777: G4~277.77777777777777 + F4^277.77777777777777 + E4^277.77777777777777, +277.77777777777777: G4~277.77777777777777, +277.77777777777777: G5^277.77777777777777 + F5^277.77777777777777 + G4~277.77777777777777, +277.77777777777777: G5^277.77777777777777 + F5^277.77777777777777, +277.77777777777777: G5^277.77777777777777 + F5^277.77777777777777 + E5~277.77777777777777, +277.77777777777777: E5~277.77777777777777, +277.77777777777777: B4^277.77777777777777 + A4^277.77777777777777 + E5~277.77777777777777 + D4-277.77777777777777, +277.77777777777777: B4^277.77777777777777 + A4^277.77777777777777 + C5/277.77777777777777, +277.77777777777777: B4^277.77777777777777 + A4^277.77777777777777 + G4~277.77777777777777 + D4-277.77777777777777, +277.77777777777777: G4~277.77777777777777, +277.77777777777777: B5^277.77777777777777 + A5^277.77777777777777 + G4~277.77777777777777, +277.77777777777777: B5^277.77777777777777 + A5^277.77777777777777 + G5~277.77777777777777, +277.77777777777777: B5^277.77777777777777 + A5^277.77777777777777 + G5~277.77777777777777, +277.77777777777777: G5~277.77777777777777, +277.77777777777777: E5^277.77777777777777 + D5^277.77777777777777 + D4-277.77777777777777, +277.77777777777777: E5^277.77777777777777 + D5^277.77777777777777 + C5/277.77777777777777, +277.77777777777777: E5^277.77777777777777 + D5^277.77777777777777 + C5~277.77777777777777 + D4-277.77777777777777, +277.77777777777777: C5~277.77777777777777, +277.77777777777777: A5^277.77777777777777 + G5^277.77777777777777 + C5~277.77777777777777, +277.77777777777777: A5^277.77777777777777 + G5^277.77777777777777, +277.77777777777777: A5^277.77777777777777 + G5^277.77777777777777 + B5~277.77777777777777, +277.77777777777777: B5~277.77777777777777, +277.77777777777777: B5-277.77777777777777 + A4-277.77777777777777 + B4^277.77777777777777 + C5/277.77777777777777 + D4-277.77777777777777, +277.77777777777777: C5^277.77777777777777 + B4^277.77777777777777, +277.77777777777777: G5-277.77777777777777 + F5-277.77777777777777 + E5-277.77777777777777 + B4^277.77777777777777 + C5^277.77777777777777` + +// Setting game background music +playTune(music, Infinity); + +// All the game bitmaps +setLegend( + [ + player, + bitmap` +........00000... +........02020... +.....00000200... +.....02220000... +....0220220..... +....0322220..... +.....000220..... +6000000000000006 +06020D22522D0200 +600002D525D20006 +....025D2D520... +....0522D2250... +....000000000... +......60606..... +....HHH...HHH... +....HH0...0HH...`, + ], + [ + log, + bitmap` +C0CCC0CC0CCCCCCC +C0CC00C0CC0CC0C0 +C0CC0CC0CC0CC0C0 +0C0C0CC0CC0CC0C0 +CC0CCCCCCC0CC0C0 +CCCCCCCCCC0CC0C0 +0CC0CCCC0C0C00C0 +CCC0CC0C0C0C0CC0 +CCC0CC0C0C0C0CC0 +CCC0CCC0CC0C0CC0 +C0C0CCC0C0CC0CC0 +C0C0CCC0C0CC0CC0 +00C0CCC0C0CC0CC0 +00CCCCC0CCCC0CCC +C0CC0CC00CCC0CC0 +CCCC0CCC0CCC0CCC`, + ], + [ + dirt, + bitmap` +44DD4DDD44DD4D44 +44444C44DD444444 +4C444C4C4444C44C +CCCC4CCC4C4CCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC +CCCCCCCCCCCCCCCC`, + ], + [ + leaves, + bitmap` +DDDDDDDDDD2DDDDD +DD2DD3DD6DDDDDDD +DDDDDDDDDD3DDD2D +D2DDD9D62DDDDDDD +DDDDDDDDDDDD3DDD +DD2DDDDDDDDDDDDD +DDDDD2DDDDDDDDD6 +D6DDDDD2DD2DDDDD +DDDDDDDDDDDDDDDD +DDDD2DD6DDDDDD2D +DD9DDDDDDDDDDDDD +2DDDDD3DD9D2DDDD +D3DDDDDDDDDDDDDD +DDD2DDD2DDDDDDDD +DDDDDD3DD2DDDD2D +D6DD9DDDDDDDDDDD`, + ], + [ + sky, + bitmap` +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777 +7777777777777777`, + ], + [ + apple, + bitmap` +................ +................ +.......4DDD..... +......4DD4...... +......444....... +.......D........ +....3333333..... +....3.3.3.3..... +....33.3.33..... +....3.3.3.3..... +....33.3.33..... +....3333333..... +................ +................ +................ +................`, + ], + [ + enemy, + bitmap` +................ +................ +.......6F99..... +......6F66...... +......6F6....... +.......6........ +....0000000..... +....00.0.00..... +....0.0.0.0..... +....00.0.00..... +....0.0.0.0..... +....0000000..... +................ +................ +................ +................`, + ] +); + +// Setting game background +setBackground(sky); + +// Other sprites cannot go inside of these sprites +setSolids([player, box, wall, dirt, leaves]); + +// Game Maps +const levels = [ + map` +aeaeaeaeaea +eeeeeeeeeee +.l.l.l.l.l. +pl.l.l.l.l. +.l.l.l.l.l. +.l.l.l.l.l. +.l.l.l.l.l. +ddddddddddd`, +]; + +// Set the map displayed to the current level +const currentLevel = levels[level]; +setMap(currentLevel); + +// Game Reset function +function reset() { + setMap(currentLevel); + score = 0; + ninjaDied = false; + clearText(); +} + +// Function that updates in game score +function updateScore() { + clearText(); + addText(`Score:${score}`, { + y: 14, + color: color`2`, + }); +} + +// inputs for player movement control +onInput("w", () => { + getFirst(player).y -= 1; +}); + +onInput("a", () => { + getFirst(player).x -= 1; +}); + +onInput("d", () => { + getFirst(player).x += 1; +}); + +onInput("s", () => { + getFirst(player).y += 1; +}); + +onInput("j", () => { + reset(); +}); + +function getRandomEvenNumberLessThan10() { + // Generate a random number between 0 and 9 + const randomNumber = Math.floor(Math.random() * 10); + + // Check if the random number is even + if (randomNumber % 2 === 0) { + // Return the random number + return randomNumber; + } else { + // Generate a new random number + return getRandomEvenNumberLessThan10(); + } +} + +// Input Logic +afterInput(() => { + let ninja = getFirst(player); + let apples = getAll(apple); + let enemies = getAll(enemy); + + for (let i = 0; !ninjaDied && i < apples.length; i++) { + if (ninja.x === apples[i].x && ninja.y === apples[i].y) { + apples[i].remove(); + score = score + 1; + updateScore(); + addSprite(getRandomEvenNumberLessThan10(), 0, apple); + } + } + + for (let i = 0; !ninjaDied && i < enemies.length; i++) { + if (ninja.x === enemies[i].x && ninja.y === enemies[i].y) { + clearText(); + ninjaDied = true; + addText( + " Game Over!\n\nFinal Score:" + + score + + "\n\n Press J to \n restart", + { + x: 3, + y: 5, + color: color`2`, + } + ); + } + } +}); + +// Core Game Logic. +setInterval(function () { + let ninja = getFirst(player); + let apples = getAll(apple); + let enemies = getAll(enemy); + + for (var i = 0; !ninjaDied && i < apples.length; i++) { + apples[i].y++; + + if (ninja.x === apples[i].x && ninja.y === apples[i].y) { + apples[i].remove(); + score = score + 1; + updateScore(); + addSprite(getRandomEvenNumberLessThan10(), 0, apple); + } + + if (apples[i].y == 7) { + apples[i].y = 0; + } + } + for (var i = 0; !ninjaDied && i < enemies.length; i++) { + enemies[i].y++; + + if (ninja.x === enemies[i].x && ninja.y === enemies[i].y) { + enemies[i].remove(); + clearText(); + ninjaDied = true; + addText( + " Game Over!\n\nFinal Score:" + + score + + "\n\n Press J to \n restart", + { + x: 3, + y: 5, + color: color`2`, + } + ); + } + + if (enemies[i].y == 7) { + enemies[i].y = 0; + } + } +}, 1000); + +setInterval(function () { + let enemies = getAll(enemy); + if (!ninjaDied && enemies.length < 12) { + addSprite(getRandomEvenNumberLessThan10(), 0, enemy); + } + if (!ninjaDied) { + addSprite(getRandomEvenNumberLessThan10(), 0, apple); + } +}, 10000); \ No newline at end of file From f8008bf093593b09df582044dc2a61b06a86e87b Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sat, 16 Dec 2023 22:32:27 +0530 Subject: [PATCH 2/9] Improve game over logic Restricting player input after game over --- games/Hungry Ninja.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index d0bf5c903a..725c2cc18d 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -58,7 +58,7 @@ const music = tune` 277.77777777777777: B5~277.77777777777777, 277.77777777777777: B5-277.77777777777777 + A4-277.77777777777777 + B4^277.77777777777777 + C5/277.77777777777777 + D4-277.77777777777777, 277.77777777777777: C5^277.77777777777777 + B4^277.77777777777777, -277.77777777777777: G5-277.77777777777777 + F5-277.77777777777777 + E5-277.77777777777777 + B4^277.77777777777777 + C5^277.77777777777777` +277.77777777777777: G5-277.77777777777777 + F5-277.77777777777777 + E5-277.77777777777777 + B4^277.77777777777777 + C5^277.77777777777777`; // Setting game background music playTune(music, Infinity); @@ -249,19 +249,27 @@ function updateScore() { // inputs for player movement control onInput("w", () => { - getFirst(player).y -= 1; + if (!ninjaDied) { + getFirst(player).y -= 1; + } }); onInput("a", () => { - getFirst(player).x -= 1; + if (!ninjaDied) { + getFirst(player).x -= 1; + } }); onInput("d", () => { - getFirst(player).x += 1; + if (!ninjaDied) { + getFirst(player).x += 1; + } }); onInput("s", () => { - getFirst(player).y += 1; + if (!ninjaDied) { + getFirst(player).y += 1; + } }); onInput("j", () => { @@ -368,4 +376,4 @@ setInterval(function () { if (!ninjaDied) { addSprite(getRandomEvenNumberLessThan10(), 0, apple); } -}, 10000); \ No newline at end of file +}, 10000); From 54ab48f25eaec81cf41d74fd11fb02beb86d7669 Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sun, 17 Dec 2023 00:08:47 +0530 Subject: [PATCH 3/9] Adding Starting Screen --- games/Hungry Ninja.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index 725c2cc18d..5abecef1b2 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -219,10 +219,10 @@ const levels = [ aeaeaeaeaea eeeeeeeeeee .l.l.l.l.l. -pl.l.l.l.l. .l.l.l.l.l. .l.l.l.l.l. .l.l.l.l.l. +pl.l.l.l.l. ddddddddddd`, ]; @@ -276,6 +276,17 @@ onInput("j", () => { reset(); }); +addText( + " Hungry Ninja\n\n Collect Apples" + + "\n\n Avoid Bombs &\n Apple-bombs!" + + "\n\n\n Use W,A,S,D to \n move.", + { + x: 2, + y: 4, + color: color`2`, + } +); + function getRandomEvenNumberLessThan10() { // Generate a random number between 0 and 9 const randomNumber = Math.floor(Math.random() * 10); From 04195d800e9cda95424901379adf6632d2c68e1c Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sun, 17 Dec 2023 00:29:46 +0530 Subject: [PATCH 4/9] Making player sprite somewhat similar to Sprig mascot --- games/Hungry Ninja.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index 5abecef1b2..2c2d664035 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -69,8 +69,8 @@ setLegend( player, bitmap` ........00000... -........02020... -.....00000200... +........04040... +.....00000400... .....02220000... ....0220220..... ....0322220..... From a36aad4dd51b1dcc3cfe96881c76b5b666658cff Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sun, 17 Dec 2023 00:35:20 +0530 Subject: [PATCH 5/9] Adding Game Description --- games/Hungry Ninja.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index 2c2d664035..54035a96c4 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -6,6 +6,24 @@ Instructions: WASD to control your player Collect as many apples as you can and avoid bombs. P.S. There are also apple bombs :-) + +Game Description: +🍎🥷 Get ready for the most explosive culinary adventure in "Hungry Ninja!" +Join our stealthy, yet seriously snack-hungry ninja as they embark on a +perilous quest to satisfy their insatiable apple cravings. Armed with nimble +moves and a bottomless stomach, our ninja must navigate through orchards loaded +with juicy apples and, of course, the occasional explosive surprise! + +Dodge deadly bombs, unleash lightning-fast moves, and master the art of fruit- +fueled acrobatics to become the ultimate apple-nabbing ninja. It's a race +against time and danger as you strive to collect as many apples as possible +while avoiding those bomb-erific booby traps. + +🏆 Can you outsmart the orchard's explosive guardians and prove that you're the +top ninja gastronome? Strap on your ninja gear, sharpen your appetite, +and get ready for a deliciously dangerous journey in "Hungry Ninja!" +It's a feast for the senses, but watch out for those bombshells – they're +not part of the recipe! 🍏💣 */ // All the game sprites From a246d8f9ade5517ce69b013e3fda720228dc7505 Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sun, 17 Dec 2023 00:56:22 +0530 Subject: [PATCH 6/9] Making the game less predictable --- games/Hungry Ninja.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index 54035a96c4..01e2e69df4 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -399,6 +399,13 @@ setInterval(function () { setInterval(function () { let enemies = getAll(enemy); + + if (!ninjaDied && enemies.length > 10) { + for (var i = 0; !ninjaDied && i < 5; i++) { + enemies[i].remove(); + } + } + if (!ninjaDied && enemies.length < 12) { addSprite(getRandomEvenNumberLessThan10(), 0, enemy); } From 0030a008d2922bda0731355d6916d6f2bc2bc06d Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sun, 17 Dec 2023 01:04:44 +0530 Subject: [PATCH 7/9] Using all lanes --- games/Hungry Ninja.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index 01e2e69df4..5d7c65a6f5 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -307,7 +307,7 @@ addText( function getRandomEvenNumberLessThan10() { // Generate a random number between 0 and 9 - const randomNumber = Math.floor(Math.random() * 10); + const randomNumber = Math.floor(Math.random() * 11); // Check if the random number is even if (randomNumber % 2 === 0) { From 67e4c8977f026697c944fa42648d933185b1b06c Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Sun, 17 Dec 2023 01:23:51 +0530 Subject: [PATCH 8/9] Better BGM final commit --- games/Hungry Ninja.js | 64 +++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/games/Hungry Ninja.js b/games/Hungry Ninja.js index 5d7c65a6f5..8c64e3775d 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry Ninja.js @@ -45,38 +45,38 @@ let level = 0; // Game Music const music = tune` -277.77777777777777: B5~277.77777777777777 + C4~277.77777777777777, -277.77777777777777: B4~277.77777777777777 + C5^277.77777777777777, -277.77777777777777: C5~277.77777777777777 + B4^277.77777777777777 + A4-277.77777777777777, -277.77777777777777: C5/277.77777777777777 + B4~277.77777777777777 + D4-277.77777777777777, -277.77777777777777: G5~277.77777777777777, -277.77777777777777: F4^277.77777777777777 + E4^277.77777777777777 + G5~277.77777777777777, -277.77777777777777: F4^277.77777777777777 + E4^277.77777777777777, -277.77777777777777: G4~277.77777777777777 + F4^277.77777777777777 + E4^277.77777777777777, -277.77777777777777: G4~277.77777777777777, -277.77777777777777: G5^277.77777777777777 + F5^277.77777777777777 + G4~277.77777777777777, -277.77777777777777: G5^277.77777777777777 + F5^277.77777777777777, -277.77777777777777: G5^277.77777777777777 + F5^277.77777777777777 + E5~277.77777777777777, -277.77777777777777: E5~277.77777777777777, -277.77777777777777: B4^277.77777777777777 + A4^277.77777777777777 + E5~277.77777777777777 + D4-277.77777777777777, -277.77777777777777: B4^277.77777777777777 + A4^277.77777777777777 + C5/277.77777777777777, -277.77777777777777: B4^277.77777777777777 + A4^277.77777777777777 + G4~277.77777777777777 + D4-277.77777777777777, -277.77777777777777: G4~277.77777777777777, -277.77777777777777: B5^277.77777777777777 + A5^277.77777777777777 + G4~277.77777777777777, -277.77777777777777: B5^277.77777777777777 + A5^277.77777777777777 + G5~277.77777777777777, -277.77777777777777: B5^277.77777777777777 + A5^277.77777777777777 + G5~277.77777777777777, -277.77777777777777: G5~277.77777777777777, -277.77777777777777: E5^277.77777777777777 + D5^277.77777777777777 + D4-277.77777777777777, -277.77777777777777: E5^277.77777777777777 + D5^277.77777777777777 + C5/277.77777777777777, -277.77777777777777: E5^277.77777777777777 + D5^277.77777777777777 + C5~277.77777777777777 + D4-277.77777777777777, -277.77777777777777: C5~277.77777777777777, -277.77777777777777: A5^277.77777777777777 + G5^277.77777777777777 + C5~277.77777777777777, -277.77777777777777: A5^277.77777777777777 + G5^277.77777777777777, -277.77777777777777: A5^277.77777777777777 + G5^277.77777777777777 + B5~277.77777777777777, -277.77777777777777: B5~277.77777777777777, -277.77777777777777: B5-277.77777777777777 + A4-277.77777777777777 + B4^277.77777777777777 + C5/277.77777777777777 + D4-277.77777777777777, -277.77777777777777: C5^277.77777777777777 + B4^277.77777777777777, -277.77777777777777: G5-277.77777777777777 + F5-277.77777777777777 + E5-277.77777777777777 + B4^277.77777777777777 + C5^277.77777777777777`; +230.76923076923077: B5~230.76923076923077 + C4~230.76923076923077, +230.76923076923077: B4~230.76923076923077 + C5^230.76923076923077, +230.76923076923077: C5~230.76923076923077 + B4^230.76923076923077 + A4^230.76923076923077 + G4^230.76923076923077, +230.76923076923077: C5^230.76923076923077 + B4~230.76923076923077 + D4^230.76923076923077, +230.76923076923077: G5~230.76923076923077, +230.76923076923077: F4^230.76923076923077 + E4^230.76923076923077 + G5~230.76923076923077, +230.76923076923077: F4^230.76923076923077 + E4^230.76923076923077, +230.76923076923077: G4~230.76923076923077 + F4^230.76923076923077 + E4^230.76923076923077, +230.76923076923077: G4~230.76923076923077, +230.76923076923077: G5^230.76923076923077 + F5^230.76923076923077 + G4~230.76923076923077, +230.76923076923077: G5^230.76923076923077 + F5^230.76923076923077, +230.76923076923077: G5^230.76923076923077 + F5^230.76923076923077 + E5~230.76923076923077, +230.76923076923077: E5~230.76923076923077, +230.76923076923077: B4^230.76923076923077 + A4^230.76923076923077 + E5~230.76923076923077 + D4^230.76923076923077, +230.76923076923077: B4^230.76923076923077 + A4^230.76923076923077 + C5^230.76923076923077 + D5^230.76923076923077, +230.76923076923077: B4^230.76923076923077 + A4^230.76923076923077 + G4~230.76923076923077 + D4^230.76923076923077, +230.76923076923077: G4~230.76923076923077, +230.76923076923077: B5^230.76923076923077 + A5^230.76923076923077 + G4~230.76923076923077, +230.76923076923077: B5^230.76923076923077 + A5^230.76923076923077 + G5~230.76923076923077, +230.76923076923077: B5^230.76923076923077 + A5^230.76923076923077 + G5~230.76923076923077, +230.76923076923077: G5~230.76923076923077, +230.76923076923077: E5^230.76923076923077 + D5^230.76923076923077 + D4^230.76923076923077, +230.76923076923077: E5^230.76923076923077 + D5^230.76923076923077 + C5^230.76923076923077 + B4^230.76923076923077, +230.76923076923077: E5^230.76923076923077 + D5^230.76923076923077 + C5~230.76923076923077 + D4^230.76923076923077, +230.76923076923077: C5~230.76923076923077, +230.76923076923077: A5^230.76923076923077 + G5^230.76923076923077 + C5~230.76923076923077, +230.76923076923077: A5^230.76923076923077 + G5^230.76923076923077, +230.76923076923077: A5^230.76923076923077 + G5^230.76923076923077 + B5~230.76923076923077, +230.76923076923077: B5~230.76923076923077, +230.76923076923077: B4^230.76923076923077 + C5~230.76923076923077 + A4~230.76923076923077 + A5^230.76923076923077 + B5^230.76923076923077, +230.76923076923077: C5^230.76923076923077 + B4^230.76923076923077, +230.76923076923077: B4^230.76923076923077 + C5^230.76923076923077 + G5~230.76923076923077 + F5~230.76923076923077 + E5~230.76923076923077`; // Setting game background music playTune(music, Infinity); From d886fd3ad50812fe4162722474da1530ff558d54 Mon Sep 17 00:00:00 2001 From: Raval Prajval Date: Mon, 18 Dec 2023 10:41:43 +0530 Subject: [PATCH 9/9] Update and rename Hungry Ninja.js to Hungry-Ninja.js --- games/{Hungry Ninja.js => Hungry-Ninja.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename games/{Hungry Ninja.js => Hungry-Ninja.js} (99%) diff --git a/games/Hungry Ninja.js b/games/Hungry-Ninja.js similarity index 99% rename from games/Hungry Ninja.js rename to games/Hungry-Ninja.js index 8c64e3775d..602bbae569 100644 --- a/games/Hungry Ninja.js +++ b/games/Hungry-Ninja.js @@ -1,5 +1,5 @@ /* -@title: Hungry Ninja +@title: Hungry-Ninja @author: Prajval Raval Instructions: