Set resolution to support retina display

This commit is contained in:
Shuaib Yunus
2016-12-19 13:05:33 +01:00
parent a7fa8aeb75
commit 5f22ef30b7
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
__pycache__
*.swp
*.pyc
.idea/

View File

@@ -1,5 +1,5 @@
//Create the renderer
const renderer = PIXI.autoDetectRenderer(256, 256);
const renderer = PIXI.autoDetectRenderer(256, 256, {resolution: 2});
renderer.view.style.position = 'absolute';
renderer.view.style.display = 'block';
renderer.autoResize = true;