Skip to content

Instantly share code, notes, and snippets.

@chrisschreiner
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisschreiner/face886e26f1626024fa to your computer and use it in GitHub Desktop.
Save chrisschreiner/face886e26f1626024fa to your computer and use it in GitHub Desktop.
commit c644eb99cc42d1608a40a1ccd50b8c15afe059b6
Author: Chris Schreiner <schpaencoder@gmail.com>
Date: Sat Jul 18 19:43:31 2015 +0200
> This is how things are now:
> #gss = GameController.stateMachineController.stateMachineDict
#gs = GameController.stateMachineController
* DummyView2.identity(set) -> gss[identity] = StateMachine() -> DummyView2.someAction = gs -> DONE
>
> DummyView2.touchDown -> gs.transform(identity, enum.ACTIVE) -> DONE
> DummyView2.touchUp -> gs.transform(identity, enum.INACTIVE) -> DONE
GameLoop -> gs.transform[Identity] == ACTIVE -> [arbitrary processing] -> DONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment