* 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>
18 lines
336 B
Python
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"],
|
|
)
|