changed player collision size

This commit is contained in:
OfficialCHenry 2022-04-06 21:44:44 -04:00
parent 1679695b10
commit 1b6bbf8444

View File

@ -199,7 +199,7 @@ export default class GameLevel extends Scene {
this.playerSpawn = Vec2.ZERO;
}
this.player.position.copy(this.playerSpawn);
this.player.addPhysics(new AABB(Vec2.ZERO, new Vec2(14, 14)));
this.player.addPhysics(new AABB(Vec2.ZERO, new Vec2(32, 32))); //sets the collision shape
this.player.colliderOffset.set(0, 2);
this.player.addAI(PlayerController, {playerType: "platformer", tilemap: "Main"});