Skip to content

Instantly share code, notes, and snippets.

@phivk
Last active August 28, 2018 22:45
Show Gist options
  • Save phivk/791ff584e237ffeec37b651948e6918a to your computer and use it in GitHub Desktop.
Save phivk/791ff584e237ffeec37b651948e6918a to your computer and use it in GitHub Desktop.
# duplicate state demo
# duplicate state demo
Animation Player
Animation 1
button press -> Animation 2
1 Playing
timer -> 1 Ended
1 Ended
Animation 2
button press -> Animation 1
2 Playing
timer -> 2 Ended
2 Ended
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