Prompt
Build a playable Angry Birds-style game as ONE self-contained HTML file (index.html) with inline CSS and JavaScript. No external libraries, no CDN links, no image/audio files — draw everything with canvas primitives or emoji and synthesize any sound with WebAudio. Requirements: 1. Slingshot mechanic: click-drag a bird back from the slingshot, see a dotted predicted trajectory while dragging, release to launch. Show a rubber-band band drawn between the two fork prongs and the bird. 2. Physics implemented by you (gravity, circle-vs-circle and circle-vs-box collisions, restitution, friction, sleeping bodies). Do not approximate with a single parabola — blocks must topple, stack, and fall realistically. Fixed timestep with accumulator so behaviour is frame-rate independent. 3. Destructible blocks: wood/stone/glass with different hit points and mass; damage from impact speed; blocks break into debris, and debris should not explode the body count into a lag spiral (cap debris, remove offscreen bodies). 4. Three levels defined in a JS array of level objects (ground, block layout, pig positions, birds available). Win when all pigs are popped; lose when birds run out. Show a level-complete overlay with score and a Next Level button. 5. Score, star rating per level (1-3 stars by score threshold), restart button, and a visible bird count. Deliverable: a single file that runs by double-clicking it. Done looks like: I open it, drag and release, the bird arcs and knocks over a tower, a pig pops, and I can finish all three levels without touching the console. No uncaught errors in the console.