Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Thanks guys. It also works on iOS, and even between mobile and desktop. (Well, naturally)
Things to be considered is to frequently ping each other, because sometime the connection might goes weird, or things like home button being pressed. So for example if ping timed out at 3 second, then pause the game and give "Connection error" at the screen. Like Dota.
I'm failed to bring this online, because even at local, it lags much. Probably if it's only 4 character like Smash Bros, it works better.
Comments
This is the game :
https://play.google.com/store/apps/details?id=com.elagotech.cosmoship1
https://deluxepixel.com
It also works on iOS, and even between mobile and desktop. (Well, naturally)
Things to be considered is to frequently ping each other, because sometime the connection might goes weird, or things like home button being pressed.
So for example if ping timed out at 3 second, then pause the game and give "Connection error" at the screen. Like Dota.
I'm failed to bring this online, because even at local, it lags much.
Probably if it's only 4 character like Smash Bros, it works better.
Tech used:
Gideros
Self-hosted server (nginx, nodejs, REST api)
This game is made for a brand in Vietnam, so it's not available on other stores.
http://www.guava7.com/app/pocket-billionaire/
Hi! Which library you used for the connection? Luasocket (socket.lua from Gideros)?
And in nodejs: http or net library for the server?
Thanks!
And as we used REST api, the connection is http.