Trash Sling Game
details
summary
Interactive game where players launch a stick figure into a trash can.
tags
prompt
This is an interactive game where players use a mouse-controlled slingshot to launch a stick figure into a trash can. The stick figure consists of a head, torso, arms, and legs linked by constraints, and its flight is tracked with a live graph showing height versus distance. Players earn a point for landing in the trash can. The game includes adjustable slingshot power and angle controls, a score counter, automatic retry after each throw, and engaging sound effects when the figure lands. The app language is English.
original prompt
Create a game where players launch a stick-figure person into a trash can using a slingshot, powered by Matter.js for physics simulation. The figure has a head, torso, arms, and legs connected with constraints to stay intact, and a live graph plots its height vs. distance during flight. Players get +1 point for landing in the trash can, with adjustable slingshot power and angle for real-time experimentation. The stick-figure is built with Matter.js bodies (circles for head, rectangles for limbs/torso) linked by constraints to keep it together. A trash can sits on the right side, and the graph updates live as the figure flies, resetting each throw. Add a score counter, a retry button, and sound effects for a satisfying “thud” when it lands in the can! Q: How should the slingshot adjustments be implemented—through sliders, input fields, or another form of interactive control? A: mouse Q: Where do you want the live graph, score counter, and retry button positioned on the screen? A: score, auto-retry Q: Do you have any particular requirements or triggers for the sound effects and game resetting behavior after a throw? A: sounds will be cool to have
generation cost summary
model name: o3-mini-medium
response time: 33.96 sec.
result tokens: 6,689
cost: $0.02992770