Skip to content

Commit

Permalink
fix blurriness
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Aug 4, 2024
1 parent 115972d commit 1ecf26e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ const game = new ex.Engine({
})
AudioManager.init();
// start game
game.start(loader);
game.start(loader).then(() => {
game.screen.pixelRatioOverride = 4;
game.screen.applyResolutionAndViewport();
});
2 changes: 1 addition & 1 deletion src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class DevLoader extends ex.Loader {
dispose() {}
}

export const loader =
export const loader = new DevLoader();
process.env.NODE_ENV === 'development' ? new DevLoader() : new ex.Loader()

for (const group of Object.values(Resources)) {
Expand Down

0 comments on commit 1ecf26e

Please sign in to comment.