Skip to content

Commit

Permalink
fix snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Nov 14, 2021
1 parent 480d9ab commit 0df6268
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tilemap/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ for (let cell of tilemap.data) {

const loader = new ex.Loader([kennyRougeLikePack])
game.start(loader).then(() => {
game.currentScene.camera.pos = ex.vec(5 * 16, 5 * 16);
game.currentScene.camera.zoom = 4;
game.currentScene.add(tilemap);
});
});

0 comments on commit 0df6268

Please sign in to comment.