Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have action config for Controllable Module #9

Open
STRd6 opened this issue May 28, 2012 · 1 comment
Open

Have action config for Controllable Module #9

STRd6 opened this issue May 28, 2012 · 1 comment

Comments

@STRd6
Copy link
Member

STRd6 commented May 28, 2012

controls:
  left: ["a", "left"]
  right: "right"
  ...

We may want to bind keys to methods on the object such as:

controls:
  jump: "space"

self.jump = ->
  # I'm Jumping
@STRd6
Copy link
Member Author

STRd6 commented May 28, 2012

A related thing we can do is alias actionDown and actionPressed inside the autogenerated entity source file.

{actionDown, actionPressed} = self

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant