changed player collision size
This commit is contained in:
		
							parent
							
								
									1679695b10
								
							
						
					
					
						commit
						1b6bbf8444
					
				|  | @ -199,7 +199,7 @@ export default class GameLevel extends Scene { | ||||||
|             this.playerSpawn = Vec2.ZERO; |             this.playerSpawn = Vec2.ZERO; | ||||||
|         } |         } | ||||||
|         this.player.position.copy(this.playerSpawn); |         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.colliderOffset.set(0, 2); | ||||||
|         this.player.addAI(PlayerController, {playerType: "platformer", tilemap: "Main"}); |         this.player.addAI(PlayerController, {playerType: "platformer", tilemap: "Main"}); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user