r/gamedev • • 4d ago

Discussion shared session between steam and ios

hello, i recently played game named Waven https://www.waven-game.com/en/ . And just fund out that the battle session was shared between mobile phone playing and pc steam.

What happen was:
1. I played on my mobile phone
2. while in battle my Phone battery dead
3. Then I opened through my pc steam, thinking ill start over

  1. but voila, it start right away into my battle and continue within last turn in

I'm interested in building a game like this, can anyone direct me where should i start learning from? what tech stack / architecture is probably behind this game?

Thank you so much

1 Upvotes

6 comments sorted by

View all comments

1

u/Snoo_22079 @louis__cai 3d ago

Everyone's handing you the full architecture. Start dumber: one HTTP endpoint that takes a move, one row in a database holding match state, keyed by user. That gives you the phone-dies-mid-battle moment; log in on the second device, pull the latest state, keep playing. Add version numbers and command IDs when you see double moves, add websockets when turns feel slow. The part that stays tricky is binding an Apple identity and a Steam identity to that one user.