Added a ScoreBoard
Hi Everyone!!! so the last day i worked really hard on adding the online scoreboard to my game was a much bigger challenge than I expected—it ended up taking me about 15 hours of intense trial and error. I used Supabase as the backend to store and retrieve player scores, but the integration with Godot was far from straightforward. The biggest problem was getting the HTTP requests to work correctly with Supabase’s API. At first, nothing seemed to be saving in the database. Then, when I finally got the data to insert, I ran into another issue: the scores wouldn’t display properly in the game. I spent hours debugging, only to realize I was sending malformed JSON and not including the proper headers that Supabase requires for authorization. On top of that, handling the asynchronous nature of HTTP requests in Godot made it tricky to update the UI at the right time. Eventually, I wrote a proper wrapper for the API calls, fixed the JSON structure, and added loading indicators while the scores were being fetched. Once I got it all working, it felt amazing to see the live scoreboard showing real-time results from players around the world.
I would really appreciate it if you could tell me how the game feels now and how I can improve it.
Weed Planter
My first game in Godot Weed planter
Status | In development |
Author | 1Arie1 |
Genre | Simulation |
Tags | 2D, pixl, plant, weed |
More posts
- Added working menu45 days ago
- Ui working45 days ago
Leave a comment
Log in with itch.io to leave a comment.