updated deps and fixed autodensity
This commit is contained in:
1151
package-lock.json
generated
1151
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,11 +5,11 @@
|
|||||||
"build": "parcel build src/index.html"
|
"build": "parcel build src/index.html"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pixi.js": "^6.0.4"
|
"pixi.js": "^6.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"parcel-bundler": "^1.12.5",
|
"parcel-bundler": "^1.12.5",
|
||||||
"parcel-plugin-static-files-copy": "^2.6.0",
|
"parcel-plugin-static-files-copy": "^2.6.0",
|
||||||
"typescript": "^4.3.2"
|
"typescript": "^4.4.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<title>Pixi Hotwire</title>
|
<title>Pixi Hotwire</title>
|
||||||
|
|
||||||
<meta id="viewport" name="viewport"
|
<meta id="viewport" name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
content="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no, viewport-fit=cover" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { Application, Sprite } from 'pixi.js'
|
|||||||
const app = new Application({
|
const app = new Application({
|
||||||
view: document.getElementById("pixi-canvas") as HTMLCanvasElement,
|
view: document.getElementById("pixi-canvas") as HTMLCanvasElement,
|
||||||
resolution: window.devicePixelRatio || 1,
|
resolution: window.devicePixelRatio || 1,
|
||||||
|
autoDensity:true,
|
||||||
backgroundColor: 0x6495ed,
|
backgroundColor: 0x6495ed,
|
||||||
width: 640,
|
width: 640,
|
||||||
height: 480
|
height: 480
|
||||||
|
|||||||
Reference in New Issue
Block a user