Procedural dungeon roguelike: build your HTML5 dungeon crawler with Cerewro

Ask Cerewro for a turn-based roguelike with procedural maps (BSP or cellular automata), fog of war, loot and enemies scaled by floor. Single HTML with Canvas and serializable state for saves.

Procedural dungeon roguelike: build your HTML5 dungeon crawler with Cerewro

Ask Cerewro for a turn-based roguelike with procedural maps (BSP or cellular automata), fog of war, loot and enemies scaled by floor. Single HTML with Canvas and serializable state for saves.

Ready-to-use Cerewro prompt

Cerewro Chat — HTML5 (browser on Windows)
Generate a turn-based roguelike for Windows with these specifications.

Features: procedural map (BSP, cellular or other—document the algorithm in comments); minimum size 40×25; rooms linked by corridors; player @ with WASD or arrow movement; simple enemy AI (chase in line of sight); turn-based combat (after the player moves, all enemies act); inventory with potions and weapons; +10% enemy HP per deeper floor; fog of war (8-tile vision); save to localStorage with full serialized state; UI with HP, floor and mini event log; retro ASCII style on Canvas.

Rules and behaviour: clear turns; game over and restart; no server dependency.

Tech stack and deliverable: HTML5, Canvas 2D, ES6+ JavaScript; prefer a single index.html; no mandatory frameworks; commented code.

Windows: open in Edge or Chrome; no Node or build required.

Optional (later iteration): Electron wrapper for the same canvas, or PyInstaller from the Python version.
Cerewro Chat — Python 3 (Windows desktop)
Build the same turn-based roguelike as a Windows desktop app.

Features: Pygame 2; window with visible grid or scaling; same turn, combat, fog and inventory rules; save to JSON in the user profile or game folder.

Tech: Python 3.10+; main.py; requirements.txt; README with venv setup.

Run on Windows: python -m venv .venv; .venv\Scripts\activate; pip install -r requirements.txt; python main.py.

Include: title menu, quit confirmation, on-screen key help.

How to get the most out of it

  • After v1, ask: “balance damage so floor 5 is hard but fair.”
  • If dead ends appear, ask to regenerate only that region.