mirror of
https://github.com/tiennm99/try-claudekit.git
synced 2026-04-17 13:21:43 +00:00
Fix fruits falling through the floor by replacing single-step physics with fixed-timestep sub-stepping (16.67ms steps, max 5 per frame). Add escaped-body cleanup as safety net. Tune physics constants for better feel (higher density, more bounce, less float). Update fruit radii to match the community-standard ratios (TomboFry/ moonfloof clones) scaled to our 400px container. Update colors to match real fruit appearances. Fix "Grapes" → "Grape" per wiki.
1.2 KiB
1.2 KiB
How to Play
- Move your mouse (or touch on mobile) to position the fruit
- Click/tap to drop it into the container
- When two identical fruits touch, they merge into the next larger fruit
- Game ends when fruits stack above the danger line
Fruit Chain
Cherry → Strawberry → Grape → Dekopon → Persimmon → Apple → Pear → Peach → Pineapple → Melon → Watermelon
| Tier | Fruit | Radius | Color | Merge Points |
|---|---|---|---|---|
| 0 | Cherry | 12px | Red | 1 |
| 1 | Strawberry | 17px | Pink-Red | 3 |
| 2 | Grape | 21px | Purple | 6 |
| 3 | Dekopon | 29px | Orange | 10 |
| 4 | Persimmon | 33px | Orange-Red | 15 |
| 5 | Apple | 37px | Red | 21 |
| 6 | Pear | 44px | Yellow-Green | 28 |
| 7 | Peach | 50px | Peach | 36 |
| 8 | Pineapple | 67px | Yellow | 45 |
| 9 | Melon | 83px | Green | 55 |
| 10 | Watermelon | 100px | Dark Green | 66 |
Radii are scaled from the community-standard values (24–192px) to fit the 400px container. Points match the Nintendo Switch scoring.
Only the 5 smallest fruits (Cherry through Persimmon) appear as drop candidates. When two Watermelons merge, they disappear and award 66 bonus points.