bubbles / files / src / icons / registry.ts
registry.ts
| 1 | export interface IconDef { |
| 2 | label: string; |
| 3 | /** Density relative to water (1.0). < 1 floats, > 1 sinks. */ |
| 4 | density: number; |
| 5 | /** Collision radius in pixels */ |
| 6 | radius: number; |
| 7 | } |
| 8 | |
| 9 | export const ICONS: IconDef[] = [ |
| 10 | { label: '⚽', density: 0.10, radius: 22 }, // soccer ball — bobs wildly |
| 11 | { label: '🪵', density: 0.50, radius: 28 }, // wood log — floats high |
| 12 | { label: '🍎', density: 0.80, radius: 26 }, // apple — floats |
| 13 | { label: '🍋', density: 0.85, radius: 24 }, // lemon — floats |
| 14 | { label: '🧊', density: 0.92, radius: 26 }, // ice — barely floats |
| 15 | { label: '🪨', density: 2.60, radius: 24 }, // rock — sinks |
| 16 | { label: '🪙', density: 3.50, radius: 22 }, // coin — sinks |
| 17 | { label: '⚓', density: 7.50, radius: 26 }, // anchor — sinks fast |
| 18 | { label: '🔩', density: 7.80, radius: 20 }, // bolt — sinks fast |
| 19 | ]; |