Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Created February 1, 2021 01:06
Show Gist options
  • Save dropmeaword/8919e862eea555b49bd74dc07aecdda1 to your computer and use it in GitHub Desktop.
Save dropmeaword/8919e862eea555b49bd74dc07aecdda1 to your computer and use it in GitHub Desktop.
Sonic
Sonic
Standing
A button pressed -> Running
15 seconds passed -> Tap foot
Running
Buttons released -> Standing
Tap foot
A button 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