added other players models and fixed collision with other entities
This commit is contained in:
parent
6e27377b07
commit
2b2b615e7b
3 changed files with 20 additions and 3 deletions
10
front/src/Phaser/NonPlayer/NonPlayer.ts
Normal file
10
front/src/Phaser/NonPlayer/NonPlayer.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import {PlayableCaracter} from "../Entity/PlayableCaracter";
|
||||
import {Textures} from "../Game/GameScene";
|
||||
|
||||
export class NonPlayer extends PlayableCaracter {
|
||||
|
||||
constructor(scene: Phaser.Scene, x: number, y: number) {
|
||||
super(scene, x, y, Textures.Player, 26);
|
||||
this.setSize(32, 32); //edit the hitbox to better match the caracter model
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue