From 432ce5428f357f31ae090d55c5183b4eccd5a37c Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 17 Aug 2023 22:42:09 -0600 Subject: increase collision performance _heavily_ --- engine/entities/Floor.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engine/entities/Floor.ts') diff --git a/engine/entities/Floor.ts b/engine/entities/Floor.ts index 44587e6..b204ce0 100644 --- a/engine/entities/Floor.ts +++ b/engine/entities/Floor.ts @@ -23,7 +23,10 @@ export class Floor extends Entity { this.addComponent( new BoundingBox( - { x: 300, y: 300 }, + { + x: 300, + y: 300, + }, { width, height: Floor.spriteSpec.height }, ), ); -- cgit v1.3