hpi-swa-teaching / GameMecha

A library providing implementations for common patterns in Squeak/Smalltalk game development.
MIT License
12 stars 2 forks source link

add KeyHandler to the existing keytranslation [5] #38

Closed benrobby closed 6 years ago

benrobby commented 6 years ago

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:

benrobby commented 6 years ago

estimation: 5

benrobby commented 6 years ago

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...)