Text Adventure Engine

A lightweight text-based adventure game engine for Python.

Features

  • Scene-based: Define rooms and connections
  • Inventory system: Track player items
  • State management: Save/load game state
  • Command parser: Natural-ish text commands

Quick Start

from engine import Game, Room, Item

# Create rooms
kitchen = Room("Kitchen", "A cozy kitchen with a fridge.")
living_room = Room("Living Room", "A comfortable living area.")

# Connect rooms
kitchen.add_exit("north", living_room)
living_room.add_exit("south", kitchen)

# Create game
game = Game(kitchen)
game.start()

License

MIT

Description
A simple text-based adventure game engine
Readme 29 KiB