added a rock

This commit is contained in:
kharhamel 2020-04-11 18:17:36 +02:00
parent 793e5318f7
commit 241cbd720a
6 changed files with 53 additions and 2 deletions

View file

@ -13,6 +13,7 @@ export enum UserInputEvent {
MoveRight,
MoveDown,
SpeedUp,
Interact,
}
//we cannot the map structure so we have to create a replacment
@ -43,6 +44,8 @@ export class UserInputManager {
{keyCode: Phaser.Input.Keyboard.KeyCodes.RIGHT, event: UserInputEvent.MoveRight, keyInstance: null},
{keyCode: Phaser.Input.Keyboard.KeyCodes.SHIFT, event: UserInputEvent.SpeedUp, keyInstance: null},
{keyCode: Phaser.Input.Keyboard.KeyCodes.E, event: UserInputEvent.Interact, keyInstance: null},
];
constructor(Scene : GameSceneInterface) {