*scrapped
Not That Sad
Creator of
Recent community posts
yeah. I think that after the jams voting period is over i'll add a windows build and maybe add in some sound effects and more features maybe- I might also make the source public, but i'll propably get shamed for how messy it is :D. Thanks for the feedback n i'll be sure to try your game n rate it too.
Thanks :'). I just had been working on games made on c++ and sdl2, so i had fresh in my mind how to code n make it work n i could look at my past work for guidance. Thanks for saying that rly! Funny to think that i rly speedrunned making most of that game in only 8 hours. Too bad i didnt have enough time (or motivation anymore when i had an hour left) to make a port for windows or the browser. One guestion. What highscore did you get :D?
I'll give an example of a ten place leaderboard.
One way to do it is something like- When the game is played for the first time and the player has ended their run and can no longer increase their score, you create a save file which has ten variables, named like 1, 2 and 3 and etc and their values are 0, and also a variable that is used to tell weather the game is being played for the first time, the value of which can be like 1.
If its the first play, your code goes like, "if IsFirstGame == 1:", "LeaderBoardPosition1Score = get_node("Player").score". And then, your code would set "IsFirstGame" To 0. Then your game would save the score and take you to the leaderboard scene, where the savefile would be loaded and the values applied to the leaderboard. Then when the game is played for the next time and finished, your code checks if the new score is higher or lower than the previous best score. "If LeaderBoardPosition1Score <= get_node("Player").score:" "LeaderBoardPosition2Score = LeaderBoardPosition1Score", "LeaderBoardPosition1Score = get_node("Player").score"and below that-
"If LeaderBoardPosition1Score >= get_node("Player").score:" "LeaderBoardPosition2Score = get_node("Player").score"
Atleast i would make a leaderboard like this. To make my previous "explanation" work. Sorry, my english aint that good. But im sure that you'll need to know how to make a save file. And how to read and write to it. I can give a code example of this if you'd like