Skip to content
Snippets Groups Projects
Commit 24c8873b authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: slightly adjust #fe viewport

parent e37a98a9
No related branches found
No related tags found
No related merge requests found
/* ¯\_(ツ)_/¯ */ /* ¯\_(ツ)_/¯ */
#gioco { body {
width: 100%; width: 100vw;
height: 100%; height: 100vh;
position: absolute; margin: 0;
background-color: black;
} }
...@@ -5,12 +5,11 @@ ...@@ -5,12 +5,11 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/main.css" rel="stylesheet"> <link href="css/main.css" rel="stylesheet">
<script src="js/main.js" charset="utf-8"></script>
<title>Ötzi App</title> <title>Ötzi App</title>
</head> </head>
<body> <body>
<script src="js/main.js" charset="utf-8"></script>
<div id="gioco"></div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -8,13 +8,11 @@ const backendEndpointURL = (endpoint) => ...@@ -8,13 +8,11 @@ const backendEndpointURL = (endpoint) =>
let config = { let config = {
type: Phaser.AUTO, type: Phaser.AUTO,
width: 1200,
height: 800,
pixelArt: true, pixelArt: true,
autoCenter: Phaser.Scale.CENTER_BOTH,
backgroundColor: "#000", scaleMode: Phaser.Scale.FIT,
scale: {
parent: "gioco",
mode: Phaser.Scale.SHOW_ALL,
},
physics: { physics: {
default: "arcade", default: "arcade",
arcade: { arcade: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment