Will it be possible to make a highscore table in the future?
Moderators: marionline, SDHawk
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Will it be possible to make a highscore table in the future?
After reading through here ( https://rpg.hamsterrepublic.com/ohrrpgc ... er_game%3F ) I had noticed that it mentions that keeping track of a highscore table might be possible in the future. I was thinking about this for a future idea for an endless-runner type game similar to flappy bird in which the game continues until you fail. It's not a necessary thing to have a global highscore table but would be cool.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
That should already be possible with import/export globals. You could have a designated save slot for high scores and other persistent metadata like unlocks, and just export the globals to it. Then for your startup script, import globals from that file.
For high scores, you could just have a bunch of globals like "highscore1st" "highscore2nd" etc. and give them numbers. Doing strings for things like high score initials is also possible, but a bit awkward. You essentially turn a string into a range of globals, with each global holding the ASCII value of each character of the string in order. Got it working with a game I was working on a couple of years ago so if you need help with it I'll see what I can do.
For high scores, you could just have a bunch of globals like "highscore1st" "highscore2nd" etc. and give them numbers. Doing strings for things like high score initials is also possible, but a bit awkward. You essentially turn a string into a range of globals, with each global holding the ASCII value of each character of the string in order. Got it working with a game I was working on a couple of years ago so if you need help with it I'll see what I can do.
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Oh maybe wasn't clear enough, I mean global highscores as in the world. The thing I linked says it might be possible to do this in the future. I was thinking I'd love to do a highscore-type game if the scores would be submitted to a world-wide ranking.Foxley wrote:That should already be possible with import/export globals. You could have a designated save slot for high scores and other persistent metadata like unlocks, and just export the globals to it. Then for your startup script, import globals from that file.
For high scores, you could just have a bunch of globals like "highscore1st" "highscore2nd" etc. and give them numbers. Doing strings for things like high score initials is also possible, but a bit awkward. You essentially turn a string into a range of globals, with each global holding the ASCII value of each character of the string in order. Got it working with a game I was working on a couple of years ago so if you need help with it I'll see what I can do.
Last edited by sheamkennedy on Mon Jul 15, 2019 10:08 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Bob the Hamster wrote:When it does, then the ability to make a REST call, get back json, and convert it into an object will be a more reasonable feature to add.
That's awesome! Thanks.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6467
- Joined: Mon Dec 08, 2008 7:07 am
- Contact:
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
That’d be really dope, any sort of multiplayer online game whether turn based or real-time would be great。 I imagine real-time would be beyond the scope of the engine but even then I’d love to just see some simple data sharing.Spoonweaver wrote:next stop, turn based online multiplayer games!!
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6467
- Joined: Mon Dec 08, 2008 7:07 am
- Contact:
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
...maybe ;)Gizmog wrote:NotSpyware.RPG would like to know your location and access your cookies
If someone made a creepy game where the game mentioned your location that’d be potentially terrifying.
All to often when I download apps they ask to have access to my location when the app has no functionality requiring it.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6467
- Joined: Mon Dec 08, 2008 7:07 am
- Contact:
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Hmmm... would network access alone be enough to detect someone's location without actually connecting to a local GPS device? (which we have no plans to support)
I am going to say yes, sort of.
There are plenty of IP geolocation services that can guess your approximate location from your IP address, and I am sure there are some such services out there that are compatible with the type of simple REST/RPC support I envision implementing someday.
But it would rarely be able to get your location more accurately than what city you are in, and it would be easily fooled by countermeasures like VPN.
I am going to say yes, sort of.
There are plenty of IP geolocation services that can guess your approximate location from your IP address, and I am sure there are some such services out there that are compatible with the type of simple REST/RPC support I envision implementing someday.
But it would rarely be able to get your location more accurately than what city you are in, and it would be easily fooled by countermeasures like VPN.
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact: