Skip to content

Instantly share code, notes, and snippets.

@jshbrntt
Created December 19, 2014 21:02
Show Gist options
  • Save jshbrntt/e8c46411de21e7877b68 to your computer and use it in GitHub Desktop.
Save jshbrntt/e8c46411de21e7877b68 to your computer and use it in GitHub Desktop.
Flat2D Utilities Example
KeyManager.held(Key.LEFT)
KeyManager.pressed(Key.A, function():void { addEntity(_player) } );
ContactManager.beginContact("player", "landscape", function():void { _player.alpha = 0.5; } );
ContactManager.endContact("player", "landscape", function():void { _player.alpha = 1; } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment