I dont know if corona and appWarp have less samples to deal with cause what appwarp shows on their corona api are just the most basics. I am having hard time returning room properties. Can someone post any sample codes on how to declare and use these following functions?
it’s pretty simple to use appwarp with corona, for instance
if you want to join a lobby you just call 1 line:
appWarpClient.subscribeLobby()
you should have ofc a listener to check if you really go in or not for that:
local function onSubscribeLobbyDone(resultCode ) if(resultCode == WarpResponseResultCode.SUCCESS) then -- your code here if you entered else -- error message end end appWarpClient.addRequestListener("onSubscribeLobbyDone", onSubscribeLobbyDone)
all the requests there respect this principals. i learned from the example they had. from there all are the same.
you need first to:
appWarpClient.initialize(API\_KEY, SECRET\_KEY)
and
appWarpClient.connectWithUserName(user) -- regista-se com o nome que foi dado como parametro
then you can use anyother request from them.
it’s pretty simple to use appwarp with corona, for instance
if you want to join a lobby you just call 1 line:
appWarpClient.subscribeLobby()
you should have ofc a listener to check if you really go in or not for that:
local function onSubscribeLobbyDone(resultCode ) if(resultCode == WarpResponseResultCode.SUCCESS) then -- your code here if you entered else -- error message end end appWarpClient.addRequestListener("onSubscribeLobbyDone", onSubscribeLobbyDone)
all the requests there respect this principals. i learned from the example they had. from there all are the same.
you need first to:
appWarpClient.initialize(API\_KEY, SECRET\_KEY)
and
appWarpClient.connectWithUserName(user) -- regista-se com o nome que foi dado como parametro
then you can use anyother request from them.