How lucasnarciso/crazyrooms.js works
Crazy Rooms is a browser-based procedural RPG. The main playable path is selecting or creating a character, loading its dataset, starting a game, generating or restoring a room, and interacting with a chest and its loot. Character and room progress are stored in browser localStorage. The README also describes NPC purchases, combat, equipment, and installable mobile access, but these are documented capabilities not established by the sampled runtime excerpts; those links are marked unverified.
Main entry points: Script.js Character management · GlobalScript.js Page navigation · GameSystem.js Game startup · GameLayout.js Room and inventory flow
Components 19
Navigation and pages
- Page navigation
GlobalScript.js - Menu
Menu/Script.js - Options and about
Opcoes/index.html - Mobile installation
manifest.json
Characters and data
- Character management
Personagens/Script.js - Character save data
- Default dataset
Datasets/DatasetPadrao.json - Custom dataset
Datasets/Meu-Dataset.json
Room gameplay
- Game startup
Jogo/GameSystem.js - Player and room model
Jogo/GameElements.js - Game data tables
Jogo/GameData.js - Chest event and loot
Jogo/GameElements.js - Room and inventory flow
Jogo/GameLayout.js - Saved character progress
- NPC interactions
- Enemy battles
- Equipment and shops
Game presentation
- Game interface
Jogo/Game.html
Other components
- Player
Connections 22
- Player → Page navigation: chooses pages
GlobalScript.js - Page navigation → Menu: routes to
GlobalScript.js - Page navigation → Character management: routes to
GlobalScript.js - Page navigation → Game interface: routes to
GlobalScript.js - Page navigation → Options and about: routes to
GlobalScript.js - Character management → Character save data: reads and writes
Personagens/Script.js - Character management → Default dataset: fetches
Personagens/Script.js - Player → Character management: creates character
Personagens/Script.js - Player → Custom dataset: may upload
README.md - Character management → Custom dataset: validates upload
Personagens/Script.js - Character management → Game startup: starts game
Personagens/Script.js - Game startup → Character save data: loads selection
Jogo/GameSystem.js - Game startup → Player and room model: creates model
Jogo/GameSystem.js - Game startup → Room and inventory flow: opens room
Jogo/GameSystem.js - Player and room model → Chest event and loot: creates events
Jogo/GameElements.js - Chest event and loot → Room and inventory flow: renders interactions
Jogo/GameElements.js - Room and inventory flow → Player and room model: creates room
Jogo/GameLayout.js - Room and inventory flow → Saved character progress: saves progress
Jogo/GameLayout.js - Player → NPC interactions: may trade
README.md - Player → Enemy battles: may battle
README.md - Player → Equipment and shops: may equip or buy
README.md - Player → Mobile installation: may install
README.md