mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
Build 29084571
This commit is contained in:
parent
1252bbca06
commit
603ebf319a
7 changed files with 12 additions and 8 deletions
|
@ -27,6 +27,7 @@ Other translation are very welcome, contact me if you'd like to submit one.
|
||||||
|
|
||||||
## Done
|
## Done
|
||||||
|
|
||||||
|
- automatic detection of the number of steps required for physics
|
||||||
- trial runs detection fix
|
- trial runs detection fix
|
||||||
|
|
||||||
## 29083397
|
## 29083397
|
||||||
|
|
|
@ -29,8 +29,8 @@ android {
|
||||||
applicationId = "me.lecaro.breakout"
|
applicationId = "me.lecaro.breakout"
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 29083446
|
versionCode = 29084571
|
||||||
versionName = "29083446"
|
versionName = "29084571"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
useSupportLibrary = true
|
useSupportLibrary = true
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
// The version of the cache.
|
// The version of the cache.
|
||||||
const VERSION = "29083446";
|
const VERSION = "29084571";
|
||||||
|
|
||||||
// The name of the cache
|
// The name of the cache
|
||||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
"29083446"
|
"29084571"
|
||||||
|
|
|
@ -449,8 +449,11 @@ export function tick() {
|
||||||
if (gameState.running) {
|
if (gameState.running) {
|
||||||
gameState.levelTime += timeDeltaMs * frames;
|
gameState.levelTime += timeDeltaMs * frames;
|
||||||
gameState.runStatistics.runTime += timeDeltaMs * frames;
|
gameState.runStatistics.runTime += timeDeltaMs * frames;
|
||||||
const maxBallSpeed = Math.sqrt(Math.max(0,...gameState.balls.map(({vx,vy})=>vx*vx+vy*vy)))*frames
|
const maxBallSpeed =
|
||||||
const steps = Math.ceil( maxBallSpeed / 8)
|
Math.sqrt(
|
||||||
|
Math.max(0, ...gameState.balls.map(({ vx, vy }) => vx * vx + vy * vy)),
|
||||||
|
) * frames;
|
||||||
|
const steps = Math.ceil(maxBallSpeed / 8);
|
||||||
for (let i = 0; i < steps; i++) gameStateTick(gameState, frames / steps);
|
for (let i = 0; i < steps; i++) gameStateTick(gameState, frames / steps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue