iPhone - 自行车物理游戏

发布于 2024-09-14 18:54:49 字数 260 浏览 6 评论 0原文

我想做一个游戏,让你骑自行车下山 - 使用加速度计来控制骑手的倾斜度和踏板/刹车按钮(有点像 Moto X Meyhem)。

有谁知道我可以在哪里找到我必须做的事情的教程/文档。 (不知道从哪里开始)

我想我需要的是:模拟自行车的物理特性(骑手的惯性和倾斜),弄清楚自行车如何与地形相互作用(即摩擦和加速度),以及如何存储地形实际表面的信息。

我可以使用 Cocos2d 和 Chipmunk 吗?有什么指示、想法、建议吗?感谢您的任何帮助,并提前非常感谢。

I want to make a game where you ride a bicycle down a hill - using accelerometer for rider tilt and a pedal/brake button (vaguely like Moto X Meyhem).

Does any one have any ideas where i can find tutorials/documentation of the things that i would have to do. (don't know where to start)

I guess what i need is: To simulate physics of the bike (inertia & tilt of rider), figure out how the bike interacts with the terrain (ie friction & acceleration), and how to store the information of the actual surface of the terrain.

Could i use Cocos2d and Chipmunk? Any pointers, ideas, suggestions? Any help is appreciated and thanks very much in advanced.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风和你 2024-09-21 18:54:49

首先从一个更简单的基于物理的项目开始。你永远不会发现你完成的项目太简单了。首先做一个简单的弹跳球游戏 - 下山,进入水桶。当您稍后参加自行车比赛时,您将会控制很多物理问题。您一次想要处理的问题只有这么多。

Cocos2d 或 Unity 是很好的起点。

期待你的游戏!

Start with a simpler physics based project first. You will never find that you've done too easy a project. Do a simple bouncing ball game first - down a hill, into buckets. You'll have a lot of the physics issues under control when you later go to the bicycle game. There are only so many problems that you'll want to deal with at one time.

Cocos2d or Unity are great starting points.

Look forward to your games!

我为君王 2024-09-21 18:54:49

进入cocos2d页面并下载所有示例。浏览它们直到你理解它们。

如果这是您的第一个编程任务,那么您已经付出了很多努力。

Go to the cocos2d page and download all the examples. Run through them until you understand them.

If this is your first programming task, then you have bitten off a lot.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文