The seas are polluted with trash, harming wildlife and contributes to climate change! In order to raise awareness for the new fundraiser teamseas where $1 = 1 pound of trash removed from the ocean, I made a little game!
Don't forget to comment down your high score to be on the leaderboard!
Collect trash and rid the oceans of trash! More trash will be coming as the game progresses, so be fast!
Click to collect the trash, and you can hold down your mouse button instead of clicking.
This was not originally made for the sea jam but coincidentally it worked, so I'm submitting it for the sea jam! Wish me luck!!
Have a great day! You can check out the app here: https://replit.com/@Coder100/Game-TeamSeas-MrBeast-Fundraiser?v=1
Btw, you might wanna make it harder to hack... I think maybe IIFE could enable you to hide variables from the global scope. (Basically if you put the variable containing the score and the game loop or any other code containing the score inside an IIFE then it shouldn't be visible to the global scope... I think.)
Also could you caps DESTROYER on the leaderboard pls (MattDESTROYER) :D
Also, I meant can you change 'MattDestroyer' to 'MattDESTROYER', not put my name as 'DESTROYER', sorry.
What I was suggesting could prevent users from editing the score containing variable in the console. You save the highscore containing variable based on the score containing variable right? If the user can't change the score in the console (because it isn't in the global scope), they cannot change the highscore variable in the code. So if you refresh the page that displays the highscore, if you edited the text it should be reset therefore indicating a user has cheated. Although I guess you could really just set the highscore if it's saved with a cookie or localstorage so it might not be worth doing anything.
if you need suggestions about the game i got you the only thing that confuses me about the game is the knife it looks like more of a harpoon but its a great game other wise and the knife doesn't bother me i love the game great job i am confused how you made the water move like that as when i looked at the code and the model you used is just a picture and it moves like that that confuses me i love it :)