Text Adventure Game Engine (JSON Rooms)
A console-based text adventure engine that loads room definitions, items, and exits from JSON files, letting non-programmers author new adventures without touching code. Learners practice JSON deserialization with System.Text.Json, object modeling, and building a simple parser/command loop.
- Estimate
- ~8.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
System.Text.Json
Project roadmap
- 01
Design the JSON room schema
~1.5hDefine a JSON structure for rooms with descriptions, exits, and items.
- 02
Deserialize rooms into C# objects
~1.5hUse System.Text.Json to load the room file into a dictionary of Room objects keyed by room ID.
- 03
Implement the command parser
~2hParse simple verb-noun commands (go north, take key, look) and map them to game actions.
- 04
Implement inventory and item interactions
~2hLet the player pick up items, view inventory, and use items to unlock exits or solve puzzles.
- 05
Author a sample adventure
~1.5hWrite a small multi-room JSON adventure demonstrating the engine's features end to end.
Resources
- DocsC# Documentation
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack