I would like to keep the arrow control and add WASD control but failed. I change the code in Game.ts file in line 42
this.cursors = this.input.keyboard.createCursorKeys() to
Then I got error Type {} is missing the following properties from type 'CursorKeys': up, down, left, right, and 2 more.ts(2740)
I have no idea why I got this error, can someone pls help out?
I would like to keep the arrow control and add WASD control but failed. I change the code in Game.ts file in line 42
this.cursors = this.input.keyboard.createCursorKeys()
toThen I got error
Type {} is missing the following properties from type 'CursorKeys': up, down, left, right, and 2 more.ts(2740)
I have no idea why I got this error, can someone pls help out?