Hello all,
I want to create a battleship game and i have the player SchemeMap and inside the player there is the board SchemeArray with the coordinates
How can i listen for change.
The whole object players is not updated and sent to the clients when i change field inside board and this syntax i think is old and doesn't work
his.room.listen("players/:id/:attribute", function (change: ObjectState) {
if(change.path["attribute"] == "direction"){
callback(change, thisScene);
}
});
how should i sent updates to the client regarding the board ?