Cowboy Hadi
A note to myself first:
I started this project thinking it would be small. It wasn't. Every change pulled me deeper. A hat here, a shader there, a sheep that needed a name. What I learned is this: the best ideas don't arrive fully formed. You follow them, one step at a time, until suddenly there's a world on the other side. From first idea to final build, this took me five days, squeezed in beside university classes, late nights, and tired mornings. Some parts felt impossible. All of it was worth it.
How it came together: Four AI tools, each doing what it does best.
Claude wrote the code. The cowboy, the flock, the shaders that turn a horizon into an ocean.
ChatGPT shaped the story and the twelve tributes that appear as you play.
Suno composed the ambient score that runs beneath every step.
Cursor carried the final polish, the small fixes that make a game feel finished.
And VS Code was home the whole time. Every terminal command, every, every broken build that finally worked. It is still, quietly, my favorite place to build.
What I learned along the way: Prompt engineering for code. Writing a prompt that generates working code on the first try is a real skill. Clarity, constraints, and context matter more than length. Surgical debugging of AI output. When AI-generated code breaks, the fix isn't "rewrite everything." It's finding the exact line, reading the exact error, and making the smallest change that works.
The game: Cowboy Hadi is a browser adventure set in the cyber-void of Prompted. You play a lone cowboy, riding across oceans, climbing wooden towers, pulling levers, and rescuing sheep scattered across a golden-sky frontier. No install. No download. Just press play and step in.
How it honors Prompted: Each sheep you rescue reveals the name and rank of a real creator from Prompted's leaderboard: 1 @vision
2 @mouse
3 @thebuilderx
4 @sasam
5 @mollie_prompts
6 @herz
7 @col_asy
8 @josh1
9 @seagcz
10 @arinzaay
11 @anita
12 @minerxx
Playing the game becomes a walk past the people who built this community. That's the spirit of Prompted. Words become worlds, and creators become characters in the stories they once imagined.
"Start where you are. Use what you have. Do what you can."
— Arthur Ashe Five days ago, this was just an idea. Today, it's a world. If it moved you, a vote means more than you know.
Tech stack
- Claude (Opus 5.5)
- ChatGPT (GPT-5.6 Luna)
- Cursor
- Suno
Links
Prompt steps
Step 1
You are building a complete browser-based 3D game from scratch. No game engines, no external frameworks. Pure TypeScript compiled to JavaScript, rendering through WebGL 2. The entire game must run in a single HTML file at the end, no install, no download. Here is the full specification. ## PROJECT OVERVIEW Title: Cowboy Hadi Genre: Third-person exploration with collectibles and lever-based puzzles Setting: A cyber-void meadow with a blue ocean, wooden towers, and a golden summer sky Length: Roughly 13 collection objectives, several lever puzzles, one final gate ## TECH STACK - Language: TypeScript (strict mode off, targets ES2022) - Rendering: WebGL 2 (GLSL ES 3.0 shaders) - Build: Vite for dev, custom bundler for production - No libraries for 3D, math, or audio beyond what the browser provides - Total output must stay small enough to feel instant on load ## RENDERING SYSTEM Build a custom WebGL renderer with: 1. A single vertex buffer holding all static world geometry 2. A single dynamic buffer for animated models (player, collectibles, moving platforms) 3. Frustum culling for off-screen geometry 4. Two render passes: - Sky pass: a full-screen triangle drawing the oc…Step 2
I am building a browser-based cowboy game called "Cowboy Hadi". I need you to design the entire narrative layer: the story, the setting, the character voice, all the on-screen text, and the tribute messages that appear when the player collects each sheep. The game is set in a fictional realm called "Prompted" — a cyber-void where writers and creators shape worlds through language. The player is a cowboy named Hadi who must rescue lost creators who have been transformed into sheep. I need you to write each of the following sections in full, and present them in a clean, copy-paste ready format. ## SECTION 1: THE CORE PREMISE Write a one-paragraph premise for the game. It should establish: - Who the player is (Cowboy Hadi) - What the player does (rescues lost sheep) - Where the game takes place (the cyber-void of Prompted) - Why it matters (each sheep is a real creator) Tone: poetic but not purple. Evocative but grounded. Think of the opening lines of a western novel crossed with a cyberpunk short story. The paragraph should be 3-5 sentences long and roughly 60-90 words. ## SECTION 2: THE ORACLE'S MESSAGE In the main menu, the game displays a story paragraph. The speake…Step 3
Generate a full-length instrumental ambient track for a browser-based video game called "Cowboy Hadi". The music will play on a continuous loop beneath gameplay, so it must be non-intrusive, hypnotic, and capable of repeating without feeling repetitive. ## TRACK OVERVIEW Title: Weightless Frontier Genre: Ambient, drone, downtempo Mood: Calm, hypnotic, slightly melancholic, dreamlike, spacious Reference artist: Marconi Union — specifically the track "Weightless" Length: 4 to 6 minutes Format: Instrumental only. No vocals. No spoken word. No samples of speech. ## STYLE DESCRIPTORS Use all of the following style tags when generating: - ambient - drone - downtempo - weightless - calm - cinematic - sleep - healing - meditative - warm pad - slow attack - reverb-heavy - delay-heavy - analog warmth - lo-fi texture - no percussion - no drums - no beat - instrumental only ## MUSICAL CHARACTERISTICS Tempo: 55 to 65 BPM (very slow) Key: D minor or A minor (dark, warm, wistful) Time signature: 4/4 The music should feel like: - A warm blanket settling over you - A slow sunrise over a quiet ocean - Something you would hear in the background of a dream - The moment just before falling a…Step 4
This is the final polish phase for "Cowboy Hadi", a browser-based cowboy game built on TypeScript and WebGL 2. The game is functional but unpolished. I need you to make a series of surgical edits across the codebase. ## CONTEXT The codebase is in this folder structure: - app/index.html — main HTML - app/index.css — menu styles - app/index.ts — entry point - app/page.ts — input handling and menu UI - app/game/level.ts — world geometry (largest file, ~1000+ lines) - app/game/player.ts — player model and physics - app/game/models.ts — collectibles and shared model logic - app/game/models-factory.ts — mesh building helpers - app/game/models-ids.ts — model ID constants - app/game/world-state.ts — game state and messages - app/music/music-player.ts — procedural music generator - app/shaders/*.frag and *.vert — GLSL shaders Do not change the overall architecture. Do not add new dependencies. Do not rewrite whole files unless I explicitly ask you to. Make the smallest change that fixes the issue. ## TASK 1: GLOBAL RENAME — SOULS TO SHEEP The game was originally about "souls", but I renamed everything to "sheep". Some identifiers…
34 likes · 13 comments · 49 views
Comments (9)
it's playable both on pc phone.
maybe some old phones with lower gpu can't run the game🙏
Wow Hadi. I’m incredibly impressed with this build. Thank you for making a build honoring Prompted, this game is really fun. You’ve been absolutely cooking my friend, keep up the great work
thanks my fren your words means a world
Brothaa u keep cooking
thanks brothaa<div><br></div>
You cooking fam
thanks you
I think I'm right place to learn more about AI
really fun game mate
i am happy you liked it
Very fun game
i really enjoyed this game, well made bro<div><br></div>
🥰🥰🥰