added a rock
This commit is contained in:
parent
793e5318f7
commit
241cbd720a
6 changed files with 53 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue