Give the chip a box it fits in, and a spin that settles
The chip window was 60 x 44 with the curl tumbling about its centre. The curl reaches 24.2 units from that pivot once the stroke is counted, so a half height of 22 clipped the top and bottom off it on every turn. The box is now 52 x 58 with the pivot at (26, 33), measured off the actual Bezier curve rather than its control points. The shadow sits at 15.1 below the pivot, which is where the curl comes to rest, so the chip lands on its own shadow instead of floating above it. The endless rotation is gone. Each bat now adds one or two whole turns in the direction it was hit and coasts to a stop, so the resting silhouette is always the same one, the one the shadow was placed under. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b9553f6d4
commit
f6ecf0ddbf
6 files changed
+49
-33
No files matched your search
+3
-3
@@ -10,10 +10,10 @@ Window {
|
||||
required property CatController cat
|
||||
required property AppSettings settings
|
||||
|
||||
readonly property int chipSize: Math.round(settings.catSize * 0.45)
|
||||
readonly property int chipSize: Math.round(settings.catSize * 0.46)
|
||||
|
||||
width: chipSize
|
||||
height: Math.round(chipSize * 0.73)
|
||||
height: Math.round(chipSize * CatDefs.chipAspect)
|
||||
x: cat.chipX - width / 2
|
||||
y: Screen.desktopAvailableHeight - height - settings.bottomMargin
|
||||
color: "transparent"
|
||||
@@ -29,6 +29,6 @@ Window {
|
||||
|
||||
Chip {
|
||||
anchors.fill: parent
|
||||
kick: win.cat.chipKick
|
||||
spin: win.cat.chipSpin
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user