capella
запушил(а) godot-port в capella/RedCore
2784f50a53 Add a Levels screen with best stars per level
A grid of level tiles shows the best stars for each level, highlights
the current one and lets the player replay any level up to the saved
one. The next 10 levels show locked, and a coloured dot marks levels
where a power or segment unlocks; tapping a locked tile says what
unlocks there.
The screen opens from a new Levels button on the home screen and on
the end-of-game menu (after a win or a game over). The end menu now
sits on a dark panel so it stays readable over the rings.
Replaying an old level never lowers the saved level, but a win still
resets the decay clock.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70c31513cb Add score, stars, juice, music and a new home screen; auto-save on win
- Auto-save the level on every win (the 12-hour decay stays); the Save
power-up is retired.
- Water arrives at level 15 as the first special segment; the others
keep a 50-level rhythm (ice 50 through magnet 300).
- As segments run out, the core pulls nearby balls in so the end of a
level doesn't drag.
- Score with a combo multiplier for breaks in a row without touching
the paddle (up to x5), floating points, and 1-3 stars per level by
time against a par. Best stars and best score are saved.
- Juice: coloured debris on breaks and screen shake on breaks,
explosions, lost balls and the core hit. Bigger power-up tokens.
- Home screen: decorative turning rings around the core, level, total
stars, best score, Continue, next unlock and a music toggle.
- Music: two loops synthesised by tools/make_music.py (menu and game),
crossfading through a global player; the setting is saved.
- Fix: collecting triple balls (or paddle size / big ball) changed
physics bodies inside a contact callback, which Godot refuses
("Can't change this state while flushing queries"). Collected powers
are now applied after the physics step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
be34c4e06a Add 10 powers, 7 segment kinds and a level progression that only gets harder
Powers: the super ball now only drops while an indestructible segment
is left. Ten new powers unlock between levels 2 and 40: slow-mo, catch,
shield, big ball, fireball, rush (a power-down), laser, freeze, bomb
ball and homing. Power-ups fall as lettered tokens and are picked by
weight from those unlocked; power-downs get likelier with the level.
Segments: a new kind every 50 levels, from 50 to 350: water (drains
over 3 hits and holds the ball briefly), ice, TNT (chain explosions),
rubber, ghost (phases in and out), moss (grows back once) and magnet.
Their share of each ring grows from 8% at level 50 to 50%.
Progression: the old generator cycled, dropping back to one ring at
level 120. Rings, ring speed, launch and top ball speed, indestructible
and special-segment share and power-down weight now only rise with the
level. The outer ring stays 6 ball diameters above the paddle, with
the core moving up to make room, so bounces off it stay catchable.
Paddle aiming: the ball leaves the paddle at an angle set by where it
hit (up to 60 degrees at the tips). This also fixes balls trapped
bouncing straight up and down between the paddle and the top wall.
Also rewords the level-decay message, which said "regrow" when the
saved level actually drops, and updates the README.
Balanced with bot simulations on a 540x1200 (Pixel 20:9) playfield:
win rate per attempt falls from 100% to 17% by level 400, about 17
hours of play to reach it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68a90eade8 Keep the rings at least 3.5 ball diameters above the paddle
At high levels the outer rings reached the paddle and even went below
it (level 75: 12 rings out to a 500 px radius). Rings are now made
thinner when needed so the outermost one stays at least 3.5 ball
diameters (105 px) above the paddle. Each level keeps its ring count,
so difficulty is unchanged; taller screens get thicker rings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cd05524d07 Make block and core collision match what is drawn
Blocks and the core were drawn 2 px inside their collision shapes, so
the ball bounced and the hit sound played before it visibly touched
them. Both now collide with exactly the shape that is drawn: the
rounded, gapped tile outline and the inset core circle.
Godot's polygon offset can emit repeated points, which made convex
decomposition of some rounded tiles fail, so those are removed. Very
short segments collapse their edges to a point instead of crossing
over themselves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 месяц назад