gamekit over the internet

后端 未结 2 1466
时光说笑
时光说笑 2020-12-29 16:04

the gamekit over wifi documentation talks about local wifi and that it\'s built on top of bonjour. Does that mean it does not work over the Internet, locating user/players i

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 16:32

    there are two things:

    • you can use gamekit to play with local devices using GKsessions
    • you can use gamekit to play over the internet using GKmatch

    both methods are very similar, but it's not the case of just changing a flag - you will have to write code for each. if you are smart, you can make a small interface which can use both, based on a flag. I've implemented it and it works fine

提交回复
热议问题