吃豆人的行动太快了 [英] Pac-Man is moving too fast

查看:64
本文介绍了吃豆人的行动太快了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#在每个回合使用基于节点的移动系统进行统一的pac-man克隆。问题是,而不是以一定的速度移动pac-man快速移动。

I am making a pac-man clone on unity using c# using a node based movement system at each turn. The problem is instead of moving at a set speed pac-man moved ridiculously fast.

任何人都可以帮忙。我已粘贴下面的代码。

could anybody please help. I have pasted the code below.




推荐答案

我不知道Unity引擎中包含什么,但你需要一些时间同步。它应该将你的游戏时间与实时同步,所以它在任何硬件上都是相同的速度,你可以控制速度。也许引擎中已有一些东西可以做到这一点。

I don't know what is included in unity engine but you need some time sync. It should sync you game tick with real time, so it's the same speed on any hardware und you can control the speed. Maybe there is already something in the engine to do this.

问候,Chris


这篇关于吃豆人的行动太快了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆