Skip to content

developer--/KMM-Multiplayer-Game

Repository files navigation

KMM-Multiplayer-Game

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)

Screenshot 2022-03-06 at 01 15 21

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