The server will be one of the computers that are playing the game. Only two players involved here. I can't really use the frames, because the other person playing might have a crappy computer that doesn't keep up with the frame rate. And i'm pretty sure that i'll need to use millisecs() to time things :o)
I think averaging sounds like the best idea just now. Also, i was wondering. Do i send the players button presses to the server and he positions everything, then sends this positional data back to the client? Or do i just move and transmit the clients positional data to the server?
I think averaging sounds like the best idea just now. Also, i was wondering. Do i send the players button presses to the server and he positions everything, then sends this positional data back to the client? Or do i just move and transmit the clients positional data to the server?