Created
September 19, 2018 08:11
-
-
Save jamesfdickinson/65b9f5a05f4902468c464b09235572d0 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
this.events = ["start", "tap", "hit box", "hit star", "hit ground", "hit top"]; | |
this.actions = ["move forward", "play sound", "flap", "add points", "set gravity", "set background", "flip gravity", "crash"]; | |
this.eventActions = { | |
"start": ["move forward", "play sound", "set gravity", "set background", "flip gravity", "add points"], | |
"tap": ["flap", "play sound", "set gravity", "set background", "flip gravity", "move forward", "add points"], | |
"hit box": ["crash", "add points", "play sound", "set gravity", "set background", "flip gravity"], | |
"hit star": ["crash", "add points", "play sound", "set gravity", "set background", "flip gravity"], | |
"hit ground": ["crash", "play sound", "set gravity", "set background", "flip gravity", "add points"], | |
"hit top": ["crash", "play sound", "set gravity", "set background", "flip gravity", "add points"], | |
"win": ["play sound", "set background", "add points", "flip gravity"], | |
"lose": ["play sound", "set background", "add points", "flip gravity"] | |
}; | |
this.actionValues = { | |
"move forward": ["slow", "medium", "fast", "super fast"], | |
"set gravity": ["large", "medium", "small", "reverse"], | |
"play sound": ["boing", "spring", "twang", "slide whistle", "pop", "splat", "well done", "random"], | |
"flap": ["small", "medium", "large"], | |
"set background": ["sky", "winter", "moon", "forest", "desert", "random"], | |
"add points": ["1", "10", "100", "1000"] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment