Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Last active November 25, 2021 09:52
Show Gist options
  • Save dropmeaword/65d3b9a4d54bcbe539fa93ee60b81808 to your computer and use it in GitHub Desktop.
Save dropmeaword/65d3b9a4d54bcbe539fa93ee60b81808 to your computer and use it in GitHub Desktop.
Sonic the hedgehog
Sonic the hedgehog
Standing
R or L pressed -> Running
15 seconds passed -> Tap foot
Down button pressed -> Ducking
Jump button presseed -> Jumping in place
Press pause button -> Pause
Running
Buttons released -> Standing
Jump button pressed -> Jumping long
Pause
Ducking
Down button released -> Standing
Jumping in place
3 seconds in the air -> Standing
Jumping long
3 seconds in the air -> Running
Tap foot
R or L pressed -> Running
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment