Devlog #11: Player Balances


This update focuses on something small but hugely important for an MMO: player balances.
Player Balances in Supabase
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.
Server Model + Balance Service
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.
Input Updates
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.
Popup Window Improvements
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!
Pixel Odyssey
A nostalgic 2D web-based MMORPG built from scratch
| Status | In development |
| Author | Grinstba |
| Genre | Role Playing |
| Tags | 2D, MMORPG, Side Scroller |
| Languages | English |
More posts
- Devlog #10: Loot Tables and Dropped Gold7 days ago
- Devlog #9: First Mob Animation18 days ago
- Pixel Odyssey Reaches MVP25 days ago
- Devlog #8: Expanding Interface Foundation42 days ago
- Devlog #7: Accounts And Authentication51 days ago
- Devlog #6: Combat System Foundation59 days ago
- Devlog #5: Crouch, Combat Prep, and Stability60 days ago
- Devlog #4: Mob Movement and DamageAug 09, 2025
- Devlog #3: Player Details, Backgrounds, and Mob SpawningAug 01, 2025
Leave a comment
Log in with itch.io to leave a comment.