Sample usage is pretty similar:
In Android
val socketEventsProcessor = SocketEventsProcessor()
socketEventsProcessor.connect()
socketEventsProcessor.sendData(Events.Request.ON_TAP, "Hello from Android")
socketEventsProcessor.onTapEventReceived = { response -> String
println("Response from socket server in Android $response")
}
In iOS
let socketProcessor = SocketEventsProcessor()
socketProcessor.connect()
socketProcessor.sendData(eventRequest: Events.Request.onTap, data: "Hello from iOS")
socketProcessor.onTapEventReceived = { (response) -> Void in
print("Response from socket server in iOS \(data)")
}
gameplay.mp4
iOS with SwiftUI (iOS dev help would be great)
Todo
- Display winner in Rally mode
- Radnomize stone falls in Crash Out mode
- Make UI for iOS
- etc
Back-End repo https://github.com/developer--/Multiplayer-Game-Server