Skip to content

Instantly share code, notes, and snippets.

@jamesfdickinson
Created September 19, 2018 08:11
Show Gist options
  • Save jamesfdickinson/65b9f5a05f4902468c464b09235572d0 to your computer and use it in GitHub Desktop.
Save jamesfdickinson/65b9f5a05f4902468c464b09235572d0 to your computer and use it in GitHub Desktop.
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