From 27f85fd1d936b8873ffa6a69f3f1d842d6f3e1a0 Mon Sep 17 00:00:00 2001 From: dginovker Date: Mon, 8 May 2023 00:56:43 +0900 Subject: [PATCH] Funorb - Make game.html load game and attributes based on URL param --- services/m=funorb/data.json | 44 +++++++++++++++++++++++++++ services/m=funorb/game.html | 60 ++++++++++++++++++++----------------- 2 files changed, 76 insertions(+), 28 deletions(-) create mode 100644 services/m=funorb/data.json diff --git a/services/m=funorb/data.json b/services/m=funorb/data.json new file mode 100644 index 000000000..ac5f30bae --- /dev/null +++ b/services/m=funorb/data.json @@ -0,0 +1,44 @@ +{ + "ageofwar": { + "name": "Age of War", + "image": "./img/ageofwar.avif", + "swf": "./swfs/ageofwar.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=383-age-of-war" + }, + "bloonstd1": { + "name": "Bloons TD 1", + "image": "./img/bloonstd1.avif", + "swf": "./swfs/bloonstd1.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=384-bloons-tower-defense-1" + }, + "bloonstd2": { + "name": "Bloons TD 2", + "image": "./img/bloonstd2.avif", + "swf": "./swfs/bloonstd2.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=391-bloons-tower-defense-2" + }, + "bloonstd3": { + "name": "Bloons TD 3", + "image": "./img/bloonstd3.avif", + "swf": "./swfs/bloonstd3.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=436-bloons-tower-defense-3" + }, + "flashsonic": { + "name": "Flash Sonic", + "image": "./img/flashsonic.avif", + "swf": "./swfs/flashsonic.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=385-flash-sonic" + }, + "learntofly2": { + "name": "Learn to Fly 2", + "image": "./img/learntofly2.avif", + "swf": "./swfs/learntofly2.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=437-learn-to-fly-2" + }, + "worldshardestgame": { + "name": "World's Hardest Game", + "image": "./img/worldshardestgame.avif", + "swf": "./swfs/worldshardestgame.swf", + "forum": "https://forum.2009scape.org/viewtopic.php?t=386-world-s-hardest-game" + } +} diff --git a/services/m=funorb/game.html b/services/m=funorb/game.html index 4ba205058..c5f496de9 100644 --- a/services/m=funorb/game.html +++ b/services/m=funorb/game.html @@ -99,15 +99,12 @@ en">
- - - - - +
+
- Talk about it on the Forums! + Talk about it on the Forums!

If the keyboard stops working, try clicking on the game.

@@ -119,7 +116,7 @@ en">
More about this game: -