Ocean (Online leaderboard!)
Dodge fish, jellyfish, coral and rocks in an ocean. Each one has a different chance of killing you. The objective is to get through all the obstacles in the fastest possible time, which is recorded on the online leaderboard!
All sound and art is made by myself.
Based on the rules, yes, some generative AI was used in this project. Google Gemini helped me with:
- debugging code
- Teach me how to put in a high score feature that was hosted on the Firebase database





Comments
Log in with itch.io to leave a comment.
The game has well-written code and a great anti-cheat system, but I still managed to get #1 on the leaderboard with a negative time score! Here's how I did it: First, I opened the browser's developer console (F12) and discovered that the game validates scores on the client-side rather than the server-side. This meant I could directly call the
submitScore()function from the console. By examining the game's code structure, I found that scores are stored in Firebase as simple millisecond values. I then submitted a fake score usingsubmitScore("samuel crevier", -5000), which gave me a time of negative 5 seconds. Since the leaderboard sorts by lowest time first, my impossible negative score shot straight to the top! The game's anti-cheat couldn't stop this because all the validation happens in the browser, where players have full control. To make the system truly secure, the developers would need to validate scores on the server-side and check for impossible values like negative times or times that are impossibly fast given the game's mechanics. For now though, I'm sitting pretty at #1 with a time that breaks the laws of physics! 😄GG
Good job on your leaderboard position, surprisingly my friend has done that before but I cleared the leaderboard. I'm glad the leaderboard's still working because I setup Multi factor authentication and then didn't realise that that would allow access to Google Firebase again
did a couple times
Good job, I see your name on the high scores