Bone Escape = a Pac-Man style maze game with living skeletons chasing the player, built entirely with HTML5 Canvas + vanilla JavaScript

By (@anita) · · Games

Bone Escape = a Pac-Man style maze game with living skeletons chasing the player, built entirely with HTML5 Canvas + vanilla JavaScript - image 1

Thanks to @Sasam , I tried the "Prompt Forge" tool he created. By simply typing "make me a game like Pac-Man," the AI ​​generated a highly detailed prompt.
I created the game's characters and graphics myself using a Banana Pro. Bone Escape is a single-file maze game: the player collects energy shards while escaping 3 skeleton hunters with simple AI pathfinding (sometimes random, sometimes direct pursuit). There's a power-orb mechanic that temporarily weakens the skeletons, letting the player defeat them for bonus points.

Everything runs in one HTML file — character sprites are embedded as base64, so there's no server or asset downloads required. Controls are dual-mode: keyboard (WASD/arrows) for desktop, and touch/swipe + on-screen D-pad for mobile, making it instantly playable on phones with zero install.

What I learned: writing specific acceptance criteria upfront (no wall-clipping, responsive controls, clear win/lose states) made the AI output far more consistent than just asking for "make a Pac-Man game."

Tech stack

  • ChatGPT
  • Nano Banana Pro

Prompt

You are an expert web developer and game designer. Your task is to build a complete, playable browser-based maze game inspired by classic dot-chasing arcade mechanics.  
 
 ### Context 
 The application should be a single-page web app containing a grid-based maze where the player navigates to collect items while avoiding hostile enemies. The game must be lightweight, responsive, and playable directly in any modern web browser using HTML5, CSS3, and Vanilla JavaScript (or a lightweight framework if appropriate). 
 
 ### Core Requirements 
 1. Maze Layout: A fixed 2D grid representing walls, open pathways, pellets, and power pellets. 
 2. Player Controls: Smooth keyboard controls (Arrow keys or WASD) to navigate the player character through the maze corridors. 
 3. Enemy AI: At least two ghost enemies with basic movement logic (e.g., random wandering or simple chase behavior). 
 4. Scoring & UI: Display current score, lives remaining, and game state (Start, Playing, Game Over, Victory) on the screen. 
 5. Win/Loss Conditions: The player wins after collecting all standard pellets. The player loses a life upon colliding with a ghost, resulting in a Game Over when all lives are deplete…

Comments (2)

  1. Nuel develops ·

    Fr PromptForge is really a good tool.

10 likes · 2 comments · 9 views

Explore more on Prompted