Files
ages/examplegame/__init__.py
Alek Ratzloff 2f86df2930 Add room entry auto-triggers, player input, and more
* When you teleport to a room, the teleport auto-triggers fire.
* Rooms have auto-triggers. None by default. They are run every time you
  teleport to a room, and when the game starts. Gate behavior behind a
  variable.
* PlayerInputAction waits for player input (and potentially write it
  into a variable)

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 20:32:02 -08:00

18 lines
336 B
Python

from agame.game import Game, Database
from agame.item import Item
from agame.room import Room
from agame.action import *
from agame.trigger import *
# This is the *game* here
database = Database()
from . import rooms
from . import vars
# Build the game state
game = Game(
database=database,
room=database.rooms["prelude"],
)