3D Stacking Game built with Godot 4.7, featuring a real online leaderboard

By (@sasam) · · Games

I'm learning game development and wanted a small, complete project to actually

finish and ship — not just another tutorial follow-along. Stacking Game is a

3D block-stacking game (think Stack/Tower Blox) built entirely in Godot 4.7

using GDScript, with every scene generated through code rather than manually

placed in the editor.

What it has:

- Core stacking mechanic with block-cutting physics when you misalign a drop

- Procedural gradient sky, ambient fire particles, and a floating animated title

- A real online leaderboard — scores are stored in a Supabase Postgres

database and fetched live, so it's an actual global top 10, not a local mock

- Background music and SFX

- Deployed to the web via Godot's HTML5 export, hosted on Vercel

Biggest lesson: Godot's built-in HTTPRequest node has a known limitation

reading response bodies in Web exports (works fine on desktop). Had to bypass

it using JavaScriptBridge to call the browser's native fetch() directly for

the leaderboard GET request — that was the trickiest bug of the whole project.

Built with a lot of back-and-forth with Claude, going from "how do I even

start" to a deployed game with a working backend.

Tech stack

  • Claude Code
  • GitHub Copilot
  • Supabase
  • Vercel

Prompt

I'm learning game dev with Godot 4.7 on Ubuntu/WSL. Help me build a simple 
but engaging 3D stacking game (like Stack/Tower Blox) — walk me through the 
core mechanic (moving block, drop-to-place, cut the misaligned overhang, 
game over on miss), then help me polish it: better lighting/background, 
animated UI, background music and SFX, and finally add a REAL online 
leaderboard (not local-only) using Supabase, so scores are genuinely shared 
across everyone who plays. Also help me get it exported to the web and 
deployed on Vercel, and debug issues along the way (WSL DNS problems, Git 
push errors, a Godot Web export bug where the leaderboard fetch silently 
failed).

Comments (6)

  1. ENYEK · · 2 likes

    Sasam is amazing!🔥

  2. Jack Herzlich · · 1 like

    reminds me of stack. You should definitely add a leaderboard to it

  3. Lateef · · 1 like

    <p>A nice 3D stacking game with real online leaderboard.</p>

  4. Praise · · 1 like

    <p>Stacking games are addictive. I'll check it out!</p>

  5. Evan Wadsworth · · 1 like

    Small complete games teach way more than giant unfinished ideas. Online leaderboard was the right call too, because now every run has a reason.

  6. berllina ·

    a smooth graphic !

19 likes · 6 comments · 28 views

Explore more on Prompted