本地多人 XNA
我正在考虑制作由 Microsoft XNA studio 分发的平台游戏入门套件;进入本地平台游戏。
我正在尝试弄清楚如何在游戏中添加另一个玩家,以便有两个玩家。
有没有人以前做过这个或知道如何做到这一点?
谢谢
I am thinking about making the platformer starter kit distributed by Microsoft XNA studio; into a local platformer game.
I'm trying to figure out how to add another player in the game so that there are two players.
Has anyone done this before or know how to do this?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要有第二个玩家对象,您可以将其与第一个玩家对象分开跟踪。然后,您需要响应来自第二个控制器的控制,或者不同于第一个玩家对象的一组单独的键盘输入。
要获取第二个玩家的控件(使用 Xbox 360 控制器),您可以使用:
MSDN
You would need to have a second player object that you would track separately from the first player object. Then you would need to respond to controls from the second controller, or a separate set of keyboard input than the first player object.
To get the controls for the second player (using the Xbox 360 controller) you could use:
MSDN