
So this week i started integrating the server into Jared’s new coding scheme. It took a while to get use to how everything is setup but once i got the basics down the ball started rolling.
So this week i made the game log directly into the server at start up. This was kind of tricky as the server requires a name to log in. Fortunately, .toString was invented.
The next task was to get the server to distinguish which player was which and lock the controls to a specific character. The server code logs the player in and then locks them into a character.
This is partially complete as i ran into a major roadblock. The server connects slower then the client by a fraction of a second. So, what happens is that the client will look for what number the player is and always return 0 because this happens before the player is connected. So as a temporary relief, i delayed the client/player lock to only happen after the player has hit space bar.
You can test the latest iteration here. Remember to disable security!
