Skip to content

Commit

Permalink
Make both scenarios build
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Sep 16, 2024
1 parent 3e993c5 commit 9224972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/scenarios/borealisTribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export default async function runScenario(game: Game) {
game.matterEngine.world,
Assets.get('island1')
);
// TODO: Eventually pan this width but for now match the screen
const bg = await game.addEntity(Background.create(game.viewport.screenWidth*2, game.viewport.screenHeight*1.5, [20, 21, 50, 35], terrain));

const bg = await game.addEntity(Background.create(game.viewport.screenWidth, game.viewport.screenHeight, game.viewport, [20, 21, 50, 35], terrain));
await game.addEntity(terrain);
bg.addToWorld(parent);
bg.addToWorld(game.pixiApp.stage, parent);
terrain.addToWorld(parent);

const water = await game.addEntity(new Water(worldWidth,worldHeight));
Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/grenadeIsland.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default async function runScenario(game: Game) {
game.matterEngine.world,
Assets.get('terrain2')
);
// TODO: Eventually pan this width but for now match the screen

const bg = await game.addEntity(Background.create(game.viewport.screenWidth, game.viewport.screenHeight, game.viewport, [20, 21, 50, 35], terrain));
await game.addEntity(terrain);
bg.addToWorld(game.pixiApp.stage, parent);
Expand Down

0 comments on commit 9224972

Please sign in to comment.