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 {
width: 100%;
height: 100%;
position: absolute;
background-color: black;
body {
width: 100vw;
height: 100vh;
margin: 0;
}
......@@ -5,12 +5,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/main.css" rel="stylesheet">
<script src="js/main.js" charset="utf-8"></script>
<title>Ötzi App</title>
</head>
<body>
<script src="js/main.js" charset="utf-8"></script>
<div id="gioco"></div>
</body>
</html>
\ No newline at end of file
......@@ -8,13 +8,11 @@ const backendEndpointURL = (endpoint) =>
let config = {
type: Phaser.AUTO,
width: 1200,
height: 800,
pixelArt: true,
backgroundColor: "#000",
scale: {
parent: "gioco",
mode: Phaser.Scale.SHOW_ALL,
},
autoCenter: Phaser.Scale.CENTER_BOTH,
scaleMode: Phaser.Scale.FIT,
physics: {
default: "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