So I'm working an a massively multiplayer online game client, and I'm running into a little snag. Right now (in the early stages), every time a player moves, the new coordinates are sent to every user in the game. The game runs VERY slow with two players, and I was wondering if you could give me any pointers on how to optimize my code.
I've included a link to an archive with my code. You need python to run the server. To get the game running, cd into the server directory and type "python simpleserver.py". Then launch client and client copy to test it out with 2 users online. You control using arrow keys.
http://www.gamemakersgarage.com/downloads/vulcan.zip
You want to compile client.bmx if you're going to compile. network.bmx controls networking, and player.bmx controls player functions.
Thank you very much in advance for your help, and feel free to use the code you see in your games.
foosh
I've included a link to an archive with my code. You need python to run the server. To get the game running, cd into the server directory and type "python simpleserver.py". Then launch client and client copy to test it out with 2 users online. You control using arrow keys.
http://www.gamemakersgarage.com/downloads/vulcan.zip
You want to compile client.bmx if you're going to compile. network.bmx controls networking, and player.bmx controls player functions.
Thank you very much in advance for your help, and feel free to use the code you see in your games.
foosh