我已经了解了android编程的基础知识,尤其是游戏方面的.现在我想尝试多人游戏.但我没有任何关于多人游戏的背景.所以我想问一些问题:
I already knew the basic of android programming, especially the one at game. now I want to try multiplayer game. but I dont have any background about multiplayer game. so I want have a number of question :
我还不打算制作任何复杂的游戏.可能只是多人井字游戏对我来说没问题.最重要的是我了解多人游戏编程的基础.:)
I don't plan to make any sophisticated game yet. may be just multiplayer tic tac toe is alright for me. the most important is that I understand the basic of multiplayer game programming. :)
我会阅读这个系列文章:
I would give this series of articles a read:
http://gafferongames.com/networking-for-game-programmers/
它主要是 C/C++,但你可以将它翻译成 Java.了解 Java 中的 UDP 套接字,例如:
It's mostly in C/C++, but you can translate it to Java. Learn about UDP sockets in Java, for example:
http://download.oracle.com/javase/tutorial/网络/数据报/index.html
这应该足以让您继续前进.我可能会进行客户端服务器设置.你可以做 P2P,但据我所知,这更难.
This should be enough to get you going. I would probably do client-server setup. You can do P2P but it's harder from what I've heard.
这篇关于如何制作多人游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!