diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/controller/gamecontext.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/controller/gamecontext.ts b/src/controller/gamecontext.ts index 1a94e3e..9a68e25 100644 --- a/src/controller/gamecontext.ts +++ b/src/controller/gamecontext.ts @@ -18,22 +18,19 @@ export class GameContext implements CollidableGroup { const map = this.loadMap(renderer, 'test'); const loadPlayer = EntityContext.load(renderer, 'green_circle'); const loadEntity = EntityContext.load(renderer, 'red_circle'); - const loadEntity2 = EntityContext.load(renderer, 'square'); const [mapView, mapCollision] = await map; const player = await loadPlayer; const entity = await loadEntity; - const entity2 = await loadEntity2; vec2.set(player.pos, 7, 6); vec2.set(entity.pos, 4, 3); - vec2.set(entity2.pos, 4, 8); return new GameContext( renderer, mapView, player, - [entity, entity2], + [entity], mapCollision, ); } |