How do I make Yoté in JavaFX

Question from Bruno Machado#9013

Hi everyone, I want to develop the Yoté game in java fx with scenebuilder and sockets, but I'm having trouble figuring out how to make each client's interface change every moment. How can I do this kind of communication with the server in javafx? thank you all

Have a dedicated thread poll the socket for the current state on an interval and communicate that to your UI thread.

I don't know the JavaFX specifics but the general concept is to constantly poll on a thread (or have the server push) and then update your model of the game accordingly.


<- Index