问题描述
好吧所以我想制作一个游戏,我试图不透露它是什么但它需要游戏中某个级别的任何人正在玩的是能够在某种MMO中看到对方风格,但不是真的。
Okay so I would like to make a game, I'm trying not to divulge what it is but it requires anyone of a certain level in the game who is currently playing to be able to see each other in a sort of MMO style but not really.
例如:
假设我有玩家鲍勃,玛丽和罗布。假设Bob是4级,Mary是6级,Rob也是4级。顺便说一句,这些将在排行榜中显示。我想要的是鲍勃和罗布以及4级和当前正在玩的其他任何人在精灵套件中看到对方。我希望Mary能够和其他6级人员一起离开。
Suppose I have players Bob, Mary, and Rob. Suppose that Bob is level 4, Mary is level 6 and Rob is also level 4. These would be shown in leaderboards by the way. What I would like is for Bob and Rob and anyone else who is level 4 AND CURRENTLY PLAYING to see each other in a sprite kit seen. I would like Mary to be off with other level 6's.
我不知道从哪里开始。所以我的问题是:
I have little idea of where to start with this. So my questions are:
- 我是否应该使用Xcode或者我会更好地使用Unity?
- GameCenter是否具备此功能,或者我是否需要使用Parse或类似的东西
- 而且,请你指出正确的方向我的方法如何这会有用吗?
如果你能回答任何这个真棒!!!!!如果不是那么酷!提前致谢!
If you can answer any of this that would be AWESOME!!!!! If not that's cool too! Thanks in advance!
推荐答案
- Xcode是一个IDE,Unity是一个Game-Engime。
如果您从一开始就需要创建自己的游戏,则应使用IDE。但这确实很长,有时很难。有了Game-Engime,游戏的很大一部分已经被编程(物理,3D动画......),所以你可以把时间集中在你的游戏程序上。
If you need to create your own game since the beginning, you should use an IDE. But this is really LONG and sometime difficult. With a Game-Engime, a big part of the game is already programmed (physic, 3D animations...) so you can focus your time for program your game.
- 游戏中心用于分享游戏或分数。不在线播放。
在线播放时,您应该创建自己的服务器。
For play online, you should create your own server.
- 你知道如何编程吗?你擅长2D / 3D吗?
创建MMO游戏时,你必须是逻辑。
For create an MMO game, you must be logic.
-
首先,你应该创建一个客户。
First, you should create a client.
-
客户端是游戏
The client is the game
他包含声音,图形,脚本......
He contain the sounds, the graphics, the scripts...
其次,你应该创建一个服务器。
Second, you should create a server.
-
服务器已连接到所有客户端。
The server is connected to all clients.
他包含数据库(帐户,字符,HP,黄金...)
He contains the databases (Accounts, characters, HP, gold...)
那么从哪里开始?
当角色移动(来自客户端A)时,他将新位置发送到服务器。服务器将此位置发送给所有客户端。所以客户端B知道客户端A的字符在哪里并且可以绘制一个tileset(在你的例子中,只有当boolean sameLevel为true时才可以绘制tileset。)
When a character move (from the client A), he send his new position to the server. The server send this position to all the client. So the client B know where is the character of the client A and can draw a tileset (in your example, you can draw the tileset only if the boolean sameLevel is true).
看一下插座:
提示 - 我已经回答了一些类似的问题。即使编程语言有时不同,我给你链接,逻辑总是相同的,所以它可以帮助你:
-
这篇关于Xcode群众多人游戏(不是你可能想到的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!