mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-22 04:56:15 -04:00
Automatic deploy 29002301
This commit is contained in:
parent
2c35062762
commit
6962495e59
5 changed files with 12 additions and 6 deletions
|
@ -76,6 +76,7 @@ There's also an easy mode for kids (slower ball) and a color-blind mode (no colo
|
||||||
- lights shadows
|
- lights shadows
|
||||||
- keyboard support
|
- keyboard support
|
||||||
- Offline mode web for iphone
|
- Offline mode web for iphone
|
||||||
|
- controller support on web/mobile
|
||||||
- webgl rendering
|
- webgl rendering
|
||||||
- enable export of gameplay capture in webview
|
- enable export of gameplay capture in webview
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@ android {
|
||||||
applicationId = "me.lecaro.breakout"
|
applicationId = "me.lecaro.breakout"
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 29002295
|
versionCode = 29002301
|
||||||
versionName = "29002295"
|
versionName = "29002301"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
useSupportLibrary = true
|
useSupportLibrary = true
|
||||||
|
|
|
@ -131,6 +131,8 @@ background.addEventListener("load", () => {
|
||||||
needsRender = true
|
needsRender = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const fitSize = () => {
|
const fitSize = () => {
|
||||||
const {width, height} = canvas.getBoundingClientRect();
|
const {width, height} = canvas.getBoundingClientRect();
|
||||||
canvas.width = width;
|
canvas.width = width;
|
||||||
|
@ -154,6 +156,8 @@ const fitSize = () => {
|
||||||
flashes = [];
|
flashes = [];
|
||||||
pause()
|
pause()
|
||||||
putBallsAtPuck();
|
putBallsAtPuck();
|
||||||
|
// For safari mobile https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
||||||
|
document.documentElement.style.setProperty('--vh', `${window.innerHeight * 0.01}px`);
|
||||||
};
|
};
|
||||||
window.addEventListener("resize", fitSize);
|
window.addEventListener("resize", fitSize);
|
||||||
|
|
||||||
|
|
|
@ -8,16 +8,16 @@
|
||||||
/>
|
/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<title>Breakout 71</title>
|
<title>Breakout 71</title>
|
||||||
<link rel="stylesheet" href="style.css?v=29002295" />
|
<link rel="stylesheet" href="style.css?v=29002301" />
|
||||||
<link rel="icon" href="./icon.svg" />
|
<link rel="icon" href="./icon.svg" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<button id="menu">☰<span> menu</span></button>
|
<button id="menu">☰<span> menu</span></button>
|
||||||
<button id="score"></button>
|
<button id="score"></button>
|
||||||
<canvas id="game"></canvas>
|
<canvas id="game"></canvas>
|
||||||
<script>window.appVersion="?v=29002295".slice(3)</script>
|
<script>window.appVersion="?v=29002301".slice(3)</script>
|
||||||
<script src="gif.js"></script>
|
<script src="gif.js"></script>
|
||||||
<script src="levels.js?v=29002295"></script>
|
<script src="levels.js?v=29002301"></script>
|
||||||
<script src="game.js?v=29002295"></script>
|
<script src="game.js?v=29002301"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -25,6 +25,7 @@ body {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
height: calc(var(--vh, 1vh) * 100);
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue