Prompted tower defense.
i didn't have much time due to exams, so i made a simple game in a very short time. i hope you like it and support me to do better.
please feel free to mention any bug or mistakes.
🕹️ How to PlayDefend Your Base: Monsters will spawn and follow the dark red path. Your goal is to stop them before they reach the end. You start with 13 (Lives). If they reach the end, you lose a shield. Build Your Defenses: Click on any of the white squares featuring the "Promtped" logo grid to open the build menu. Manage Your Economy: You start with 1000 Credits. Use them wisely to purchase different types of towers. Survive the Waves: Strategically place your towers to survive 13 waves of increasingly difficult enemies.
🧠 The AI Development Team (Built from Zero)
This game was created using a virtual studio of AI agents, each acting as a specialized developer:
Claude Code (Lead Architect): Wrote the core game engine from scratch. It handled the complex JavaScript logic, collision detection, enemy pathfinding, and the custom economy system.
Replit (Prototyper & Sandbox): The initial environment used to generate the game loop, test the mechanics, and host the live testing servers.
GitHub Copilot (Rapid Coder): Acted as the daily coding assistant inside the IDE. It generated boilerplate code, CSS styling, and helped debug live errors instantly.
🛠️ Tech Stack HTML5 for the game structure. CSS3 for the custom visual grid, styling, and layout. Vanilla JavaScript for the game loop, tower logic, and wave management. No heavy frameworks were used—keeping the game lightweight, fast, and fully playable in the browser.
Tech stack
- Claude Code (Fable 5.1)
- Replit (Agent 4)
- GitHub Copilot
Links
Prompt steps
Step 1
You are an expert Front-End Prototyper. I want to build a web-based Tower Defense game called "Promted Tower Defense" and I need you to scaffold the entire project. Task: Generate the index.html and a base styles.css file. HTML Requirements: Create an HTML <table> for the grid. Each cell is 24px by 28px. Include a bottom HUD bar (id="hud") with: SHIELDS: 13 | CREDITS: 1000 | Force next wave | Wave #1 starts in 5s. Create a hidden popup menu div (id="tower-menu") that appears on cell click. Inside, add three list items with these exact names and prices: Lexicon Lariat (50$) Syntax Six-Shooter (The PRMPT-45) (200$) Code-Weaver Winchester (5000$) Add Open Graph meta tags in the <head>. Link to styles.css and game.js. CSS Requirements: Make the <table> layout tight, no gaps. Cells exactly 24px wide by 28px high. The Path (.path): Dark Red (#8B0000), 1px black border. The Ground (.ground): Solid White (#ffffff), 1px black border. The Logo: In the center of .ground cells, use a CSS ::before pseudo-element or SVG to display a black letter "P". HUD: Fixed at the bottom, black background, white text, monospace font. Tower Menu: Dark-mode popup (background #1a1a1a, text white,…Step 2
Context for Copilot: I am building "Promted Tower Defense". We have a dark-mode #tower-menu with three buttons: Lexicon Lariat (50$), Syntax Six-Shooter (The PRMPT-45) (200$), and Code-Weaver Winchester (5000$). I need you to autocomplete the following logic: renderTowerMenu(x, y): A function that shows the menu at the clicked coordinates. If the player's Credits < 50, disable the Lexicon Lariat button. If < 200, disable Syntax Six-Shooter. If < 5000, disable Code-Weaver Winchester. buildTower(type, x, y): Deducts the cost from the player's Credits, updates the HUD, and places the tower. (Ensure type matches the exact new tower names). shootBullet(tower, target): Animates a black dot from the tower to the target. Whenever I type // Copilot: Help with [function name], please generate the most efficient Vanilla JS code to make it work.Step 3
You are the Lead Architect and an expert Vanilla JavaScript developer. Your task is to write the complete core game logic for a 2D Tower Defense game called "Promted Tower Defense". Technical Constraints: Create a single file named game.js. Use pure Vanilla JavaScript (ES6+). No external libraries. The game interacts with an HTML <table> grid where each cell is 24px by 28px. Game Mechanics: State: Player starts with 1000 Credits and 13 Shields. Pathfinding: Hardcode a path for enemies. Enemies move cell-by-cell. Game Loop: Use requestAnimationFrame or setInterval for logic, movement, and collision. Towers (Implement these exact class names): Lexicon Lariat: Cost 50, fast fire rate, low damage. Syntax Six-Shooter (The PRMPT-45): Cost 200, medium fire rate, splash damage. Code-Weaver Winchester: Cost 5000, slow fire rate, massive single-target damage. Enemies: 13 waves. Enemies have health, speed, and drop Credits upon death. Write clean, heavily commented, Object-Oriented JavaScript. Provide the complete game.js file.
32 likes · 9 comments · 16 views
Comments (5)
this was fun but try to make more games like cowboy-hadi.
btw i like the idea.
ok buddy
Played it and enjoyed it, Well done.
Love this, checking this out.
can you vote for me buddy
Simple game but very fun and supportive
thanks you my friend
This is really sick man. Thank you for making a Prompted inspired game, I love it. You've been doing amazing this month my friend
your encouragement means a lot ❤️