From 5f9e8636e37d4add31141b2cc2bc39af7fecf8be Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 22 Nov 2018 21:44:58 +0100 Subject: GameContext: remove animated test entity --- src/controller/gamecontext.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/controller') 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, ); } -- cgit v1.2.3