Post

Replies

Boosts

Views

Activity

Reply to Removing open match using Game Center functionality - why?
Thanks for your reply. Yes I am taking about list of matches for Turn-Based games on iOS. Currently both Forfeit and Remove ( slide left) options are available to a player. The term "Forfeit" sets the expectation that the local player is quitting the match. The term "Remove" / slide left appears to provide redundant functionality for two player Game matches that have not yet ended. I am using GKTurnBasedMatchMakerViewController and have a two player game so a player removing a match is effectively the same as a player forfeiting a match. Perhaps this functionality is useful for games with more than two players. I just wanted to make sure I am not missing something in the interpretation of "Remove"
Jan ’23
Reply to Inexplicable Fence Hang
I have no idea why there is some embedded "[ ] (https://www.example.com/) in my original post above. I don't remember adding that indeed no idea what that website is. I am unable to edit to remove that junk. Cleaned up code is : import var plyr : AVAudioPlayer? let pth = Bundle.main.path(forResource: "MusicFileName", ofType: "mpg")! let url = URL(fileURLWithPath: pth) do { plyr = try AVAudioPlayer(contentsOf: url) plyr?.prepareToPlay() plyr?.play() } catch { // print error etc. }
Sep ’24