两个玩家的回合制游戏的android [英] two player turn based game android
问题描述
我想打一个基于两个玩家的回合游戏(想想井字)为Android。我不知道如何实现手机与服务器之间的通信。我应该使用套接字或HTTP客户端?任何人可以指导。
问题与HTTP客户端是我必须定期轮询服务器,看是否有数据到达。是否有任何其他的方式,如果我使用的HTTP客户端从服务器推送数据?
I want to make a two player turn based game (think of tic tac toe) for android. I am not sure how to implement the communication between the mobile and the server. Should I use sockets or http client ? Can anybody guide. Issue with http client is I have to regularly poll the server to see if any data has arrived. Is there any other way to push the data from server if I am using http client ?
推荐答案
你为什么不检查出的为样板的Android /应用程序引擎设置这个链接。可能正是你需要的。
Why don't you check out this link for a boilerplate android/app-engine setup. Could be exactly what you need.
这篇关于两个玩家的回合制游戏的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!