pull/24/head^2
Your Name 11 months ago
parent d4302bdb58
commit 0acd544cb0

@ -70,8 +70,9 @@ class GameScene : SKScene {
func humanChoseMove(player:HumanPlayer){
while ( GameScene.lastMove == nil ) { }
return Move(of: player.id, fromRow: <#T##Int#>, andFromColumn: <#T##Int#>, toRow: <#T##Int#>, andToColumn: <#T##Int#>)
//return Move(of: player.id, fromRow: <#T##Int#>, andFromColumn: <#T##Int#>, toRow: <#T##Int#>, andToColumn: <#T##Int#>)
}
}

@ -59,8 +59,11 @@ class SpriteMoople : SKNode {
let posX = Int(round((localisation.x - (-400)) / 100))
let posY = Int(round((localisation.y - (-300)) / 100))
//GameScene.lastMove = Move(of:owner, fromRow:Int(self.cellPosition.x),andFromColumn:Int(self.cellPosition.y),toRow:posX, andToColumn:posY)
GameScene.lastMove = Move(of:.noOne, fromRow:Int(self.cellPosition.x),andFromColumn:Int(self.cellPosition.y),toRow:posX, andToColumn:posY)
self.cellPosition = CGPoint(x: posX, y: posY)
// Faire un retour en arrière si lastMove != nil
return
}
}

Binary file not shown.
Loading…
Cancel
Save