Я протестировал на трех промтах две мощные модели в этом видео:
https://youtu.be/n9wPSuO2SR8
1. Музыкальная шкатулка:
Create a single-file browser project called "Tiny Clockwork Music Box".
The page should show a stylized 3D music box mechanism on a tabletop. The user should be able to rotate and zoom the camera and watch the mechanism play.
Requirements:
Use Three.js.
Everything must be in one index.html file.
The scene should include a base, visible gears, a rotating pinned cylinder, small metal tines or bells, a dancing figurine, a wind-up key, and decorative props.
Turning the key should start the mechanism.
Gears should rotate together in believable ratios.
Pins on the cylinder should trigger small hammers or tines in sequence.
The figurine should rotate or dance in sync with the mechanism.
Objects should be grounded and mechanically connected.
The visual style should be polished, charming, readable, and slightly magical.
The project should run immediately in a modern browser.
Focus on clear mechanical relationships, synchronized motion, and a satisfying miniature presentation.
2. Бильярд 2D:
Create a single self-contained HTML file with a top-down 2D billiards (pool) game with the following requirements:
**GAMEPLAY:**
- Standard pool table with 15 colored balls + 1 white cue ball
- Player vs AI opponent (taking turns)
- Shot power control: click and hold on cue ball, drag to aim (shows direction arrow), release to shoot â power determined by drag distance (show power bar)
- Realistic physics: ball-to-ball collisions, wall bouncing, friction/deceleration
- 6 pockets (corner and side) that sink balls
- AI opponent makes calculated shots with slight randomness to feel beatable
- Turn logic: pot a ball = shoot again; scratch (cue ball in pocket) = opponent places cue ball
**VISUALS (top-down view):**
- Green felt table with wooden rail border
- Balls rendered as colored circles with numbers (stripes and solids)
- Animated dotted aim line from cue ball in drag direction
- Power meter UI on the side
- Scoreboard showing Player vs AI potted balls
- Visual feedback: ball trails, pocket flash on sink, shake on hard hit
**UI:**
- "Your Turn" / "AI's Turn" indicator
- Current score for each side
- Game over screen (8-ball rules: pot the 8-ball last to win)
- Restart button
**TECHNICAL:**
- Pure HTML + CSS + JavaScript, no libraries
- Canvas-based rendering (requestAnimationFrame)
- All in one `.html` file, no external dependencies