Posted November 26, 2025 by Grinstba
This update focuses on something small but hugely important for an MMO: player balances.
I added a dedicated balances table in Supabase to store all player currency amounts.
Each character now has a row that keeps track of their gold, and eventually other currencies (shards, tokens, etc.)
The structure is built to be:
Fast to read
Atomic for updates
Expandable for future currencies
This gives Pixel Odyssey its first real step toward an economy system.
The service handles:
Loading balances for a player
Adding gold
Persisting updates safely
Versioning for future currency operations
This is all wired through my existing Supabase service layer with strongly typed models, so it’s clean and reliable.
A couple quick but important control changes:
Z is now the default item pickup key
The attack key moved from Z → Q
This frees up Z to become the universal “interact/pickup” button, which feels more natural for a sidescroller.
I also gave the popup/window system some polish:
Added a built-in X button to close windows
Added Escape-to-close by default
Thanks for following along ❤️.
If you’re enjoying these devlogs, feel free to comment, follow, and wishlist!