diff options
author | Russell Cohen <rcoh@mit.edu> | 2011-01-12 11:58:00 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2011-01-12 11:58:00 -0500 |
commit | 907780f6b298bfa259ace94d07ca137099067e67 (patch) | |
tree | a12e1f555c27982b39a49c89383544773ba08039 /config/Outdoor.xml | |
parent | c7fc6c2725231eb1427f0edf00d3219409b3d55b (diff) |
Added ResponseMover to facilitate spawn and run responses. Modified
simplemapper to fix a bug with null responses.
Diffstat (limited to 'config/Outdoor.xml')
-rw-r--r-- | config/Outdoor.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/config/Outdoor.xml b/config/Outdoor.xml index 5ad2c58..e3a74f4 100644 --- a/config/Outdoor.xml +++ b/config/Outdoor.xml @@ -72,6 +72,12 @@ </Behavior> <Behavior Id="colorchange"> <InheritsFrom>behaviors/RandomColor.xml</InheritsFrom> + <Args> + <ColorList> + <Color>(0,255,0)</Color> + <Color>(255,0,0)</Color> + </ColorList> + </Args> </Behavior> <Behavior Id="decay"> <InheritsFrom>behaviors/PixelDecay.xml</InheritsFrom> @@ -129,6 +135,36 @@ <Mapper>gaussmap</Mapper> </Args> </Behavior> + <Behavior> + <Class>behaviors.BehaviorChain</Class> + <Args> + <Id>randomwalk</Id> + <Inputs> + <Id>pygame</Id> + </Inputs> + <ChainedBehaviors> + <Id>colorchange</Id> + <Id>mover</Id> + <Id>decay</Id> + </ChainedBehaviors> + <RecursiveHooks>{'mover':'randmovement'}</RecursiveHooks> + <RenderToScreen>True</RenderToScreen> + <Mapper>gaussmap</Mapper> + </Args> + </Behavior> + <Behavior> + <Class>behaviors.ResponseMover</Class> + <Args> + <Id>mover</Id> + </Args> + </Behavior> + <Behavior> + <Class>behaviors.RandomWalk</Class> + <Args> + <Id>randmovement</Id> + <StepSize>2</StepSize> + </Args> + </Behavior> <Behavior Id="accelerate"> <InheritsFrom>behaviors/Accelerate.xml</InheritsFrom> </Behavior> |