简体   繁体   English

无法统一获得基于应用程序扭曲的实时回合游戏

[英]Not getting the turn in App warp for Real time turn based game in unity

I am newbie to the appwarp Async turn based game and I have already succeeded to create a turn based room dynamically but the listener from appwarp must call a method named 我是appwarp基于异步回合的游戏的新手,并且我已经成功地动态创建了一个基于回合的房间,但是appwarp的侦听器必须调用一个名为

public void onMoveCompleted(MoveEvent moveEvent);

but its not being called so that I would be able to switch the turn to another player. 但没有被调用,这样我就可以将回合切换到另一位玩家。

There is no example for the Realtime turn based multiplayer using Appwarp. 没有使用Appwarp的基于实时回合的多人游戏的示例。 If any one would have a prototype in unity it would be a great help for me. 如果有人将原型机统一起来,那将对我有很大的帮助。

Help is highly appreciated. 非常感谢您的帮助。 Thank you 谢谢

Here are the steps to get it completely working 以下是使其完全正常运行的步骤

  1. Initialise AppWarp SDK 初始化AppWarp SDK
  2. Setup Listeners and add them to callbacks 设置侦听器并将其添加到回调中
  3. Connect to AppWarp Server 连接到AppWarp服务器
  4. Create a Room 创建房间
  5. Join the room 加入房间
  6. Subscribe the room 订阅房间
  7. call startGame (Necessary when you are using turn based room) 致电startGame(在使用回合制房间时需要)

Repetitive Steps 重复步骤

  1. Start sending moves. 开始发送动作。
  2. Get moves from onMoveCompleted 从onMoveCompleted获取动作

there are quite a few samples for realtime turn based gaming using AppWarp. 使用AppWarp的实时回合制游戏有很多示例。 You can take a look at this post on a Windows Phone sample and follow the same for Unity (both are in C#). 您可以在Windows Phone示例中查看这篇文章,并在Unity中遵循相同的内容(均在C#中)。 It also introduces you to some concepts 它还向您介绍了一些概念

http://blogs.shephertz.com/2014/01/07/build-online-turn-based-games-using-appwarp/ http://blogs.shephertz.com/2014/01/07/build-online-turn-based-games-using-appwarp/

Another one in Lua (Corona) 另一个在Lua(Corona)

http://appwarp.shephertz.com/game-development-center/corona-realtime-turn-based-game-tutorial/ http://appwarp.shephertz.com/game-development-center/corona-realtime-turn-based-game-tutorial/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM