Enabling stricter lint on front

This commit is contained in:
David Négrier 2020-06-09 23:12:54 +02:00
parent 78c7e40889
commit 54f2518b5e
2 changed files with 9 additions and 5 deletions

View file

@ -16,6 +16,7 @@ import {PlayerAnimationNames} from "../Player/Animation";
import {PlayerMovement} from "./PlayerMovement";
import {PlayersPositionInterpolator} from "./PlayersPositionInterpolator";
import {RemotePlayer} from "../Entity/RemotePlayer";
import GameObject = Phaser.GameObjects.GameObject;
export enum Textures {
Player = "male1"
@ -347,7 +348,7 @@ export class GameScene extends Phaser.Scene {
createCollisionWithPlayer() {
//add collision layer
this.Layers.forEach((Layer: Phaser.Tilemaps.StaticTilemapLayer) => {
this.physics.add.collider(this.CurrentPlayer, Layer, (object1: any, object2: any) => {
this.physics.add.collider(this.CurrentPlayer, Layer, (object1: GameObject, object2: GameObject) => {
//this.CurrentPlayer.say("Collision with layer : "+ (object2 as Tile).layer.name)
});
Layer.setCollisionByProperty({collides: true});