summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-22 21:44:58 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-22 21:45:17 +0100
commit5f9e8636e37d4add31141b2cc2bc39af7fecf8be (patch)
treea7db4057e77fe636f53fa225c9c26e059533998e /src
parent2c6cd362c32a2e9460e5ddebd85f050b9b5ab4e4 (diff)
downloadrpgedit-5f9e8636e37d4add31141b2cc2bc39af7fecf8be.tar
rpgedit-5f9e8636e37d4add31141b2cc2bc39af7fecf8be.zip
GameContext: remove animated test entity
Diffstat (limited to 'src')
-rw-r--r--src/controller/gamecontext.ts5
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,
);
}