Skip to content

Instantly share code, notes, and snippets.

@skritch
Last active April 11, 2016 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skritch/cc013653b961aed77af6e45727b29602 to your computer and use it in GitHub Desktop.
Save skritch/cc013653b961aed77af6e45727b29602 to your computer and use it in GitHub Desktop.
from alex import coliseum
c = coliseum.Coliseum(radius=50)
Cpillar=coliseum.Pillar(textures=basalt) # these pillars are all exactly the same object
# silly version
map(c.append(Cpillar, _), [
(-40, 0),
(-30, -30),
(0, -40)
]
)
# realistic version
c.append(Portcullis, [
(50, 0),
(0, 50)
]
)
dungeon.append(c, name=arena, to=(hall4, south), delta=(0, -4)) # can reference children of an object by name and use relative coordinates of the referenced child?
dungeon['arena']['portcullis1'].closed = True # defaults to false. porcullises were autonamed. portcullis has fields attached to it.
# an expression that can override the identical 3 pillars to change only one? or does making such an action in ui change instead how they're created originally. yes, that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment