As a SWA student I want to be able to use register methods/blocks to make my game objects react to input independently and in a beautiful way. Differentiation from keyvalue translation is important.
Morphs have a on: send: to
Similiar to that I want to register functions to my KeyHandler which are called when a specific button is down/up.
Example:
self registerToKeyHandlerOn: Character arrowUp state: #down send: #jump to: self
Acceptance:
[ ] can register a method to a key and once key is pressed the method gets executed
[ ] specify whether this should act like keystroke or like keyup/keydown
not needed anymore, keyStroke should be covered by swa students themselves, usage of existing keyhandler will be shown in example game (self game and return self in game...)
As a SWA student I want to be able to use register methods/blocks to make my game objects react to input independently and in a beautiful way. Differentiation from keyvalue translation is important. Morphs have a on: send: to
Similiar to that I want to register functions to my KeyHandler which are called when a specific button is down/up. Example: self registerToKeyHandlerOn: Character arrowUp state: #down send: #jump to: self
Acceptance: