updated deps and fixed autodensity
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<title>Pixi Hotwire</title>
|
||||
|
||||
<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">
|
||||
|
||||
<style>
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Application, Sprite } from 'pixi.js'
|
||||
const app = new Application({
|
||||
view: document.getElementById("pixi-canvas") as HTMLCanvasElement,
|
||||
resolution: window.devicePixelRatio || 1,
|
||||
autoDensity:true,
|
||||
backgroundColor: 0x6495ed,
|
||||
width: 640,
|
||||
height: 480
|
||||
|
||||
Reference in New Issue
Block a user