Extensive UI changes
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 28s
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 28s
This commit is contained in:
parent
6fc0a01c56
commit
ddea7fc512
16 changed files with 675 additions and 493 deletions
|
|
@ -102,7 +102,8 @@ export function createBubbleWorld(initialCount = 0, random = Math.random) {
|
|||
}
|
||||
function step(delta = 1000 / 60) {
|
||||
spawnTime += delta;
|
||||
if (balls.length < target && spawnTime >= 45) {
|
||||
// Two 60 Hz frames per bubble, previously three: 50% more arrivals/second.
|
||||
if (balls.length < target && spawnTime >= 1000 / 30) {
|
||||
spawnTime = 0;
|
||||
// Each new bubble enters at the upper inside edge, then falls naturally.
|
||||
const x = 160 + (random() - 0.5) * 55;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue