From 1b6bbf8444843d0cd00278bc74072a40ef3b7229 Mon Sep 17 00:00:00 2001 From: OfficialCHenry Date: Wed, 6 Apr 2022 21:44:44 -0400 Subject: [PATCH] changed player collision size --- src/shattered_sword/Scenes/GameLevel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shattered_sword/Scenes/GameLevel.ts b/src/shattered_sword/Scenes/GameLevel.ts index 26651e9..599129d 100644 --- a/src/shattered_sword/Scenes/GameLevel.ts +++ b/src/shattered_sword/Scenes/GameLevel.ts @@ -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"});