垃圾投掷游戏

概要

鼠标控制弹弓投射火柴人进垃圾桶的互动游戏。

提示

这是一个互动游戏,玩家使用鼠标控制的弹弓将火柴人投掷进垃圾桶。火柴人由头部、躯干、手臂和腿组成,并通过约束相连,其飞行轨迹通过实时图表显示高度与距离。玩家将火柴人落到垃圾桶中得分。游戏包括可调节的弹弓力度和角度控制、计分器、每次投掷后的自动重试,以及火柴人落地时的动感音效。应用语言为英语。

原始提示

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

生成成本概要

模型名称: o3-mini-medium

响应时间: 33.96 sec.

结果令牌: 6,689

成本: $0.02992770