Skip to content

Commit

Permalink
toss in a little color as long as I'm here, too
Browse files Browse the repository at this point in the history
  • Loading branch information
exarkun committed Nov 24, 2020
1 parent 4be4079 commit bc2713d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/examples/example_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ def room(name):
)
Container.createFor(it, capacity=1000)
return it
world = ImaginaryWorld(store=store,
origin=room("The Beginning"))
origin = room("The Beginning", "Everything here looks fresh and new.")
world = ImaginaryWorld(store=store, origin=origin)
protagonist = world.create("An Example Player")
shirt = createShirt(store=store, name="shirt", location=world.origin)
pants = createPants(store=store, name="pants", location=world.origin)
middle = room("The Middle")
middle = room(
"The Middle",
"At first glance, this appears to be the center of things.",
)
wearer = IClothingWearer(protagonist)
wearer.putOn(IClothing(shirt))
wearer.putOn(IClothing(pants))
Expand Down

0 comments on commit bc2713d

Please sign in to comment.