itch.io is community of indie game creators and players

Devlogs

Devlog #11: Player Balances

Pixel Odyssey
A browser game made in HTML5

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!


Leave a comment