Last active
April 11, 2016 00:05
-
-
Save skritch/cc013653b961aed77af6e45727b29602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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