Hi 🙂
I try to transform my game in HTML5 responsive version "fullscreen" but I've a problem...
When I try with this HTML :
it don't work, there is a gap (may be 100px ?) between touch layer and visual layer... do you have an idea ?
I try to transform my game in HTML5 responsive version "fullscreen" but I've a problem...
When I try with this HTML :
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="icon/icon.png" type="image/png">
<link rel="apple-touch-icon" href="icon/icon.png">
<link rel="stylesheet" type="text/css" href="css/game.css">
<title>My Game</title>
<style>
html {
height: -webkit-fill-available;
}
#gameCanvas {
height: 100vh !important;
width: auto !important;
margin: 0px auto !important;
}
body {
padding: 0px;
margin: 0px;
height: 100vh !important;
}
</style>
</head>
<body style="background-color: black;">
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>
it don't work, there is a gap (may be 100px ?) between touch layer and visual layer... do you have an idea ?