GameContext: remove animated test entity
This commit is contained in:
parent
2c6cd362c3
commit
5f9e8636e3
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
Reference in a new issue