M
maartenvt
Guest
Hi guys,
So I have been thinking about creating a small multiplayer game in GML, with a server which I can run on my pc and a client that players use to play the actual game (which are short 1v1 matches). The server would be an authoritative server, so it would run any game that is taking place and send updates to the clients, and the clients would check if their predictions match up with the authoritative results and conform to these if their predictions were different ( see http://www.gabrielgambetta.com/fpm1.html ).
Now I was thinking, if the server has to run multiple matches at the same time, how would I go about implementing this? It seems to me I could not use objects, any standard GML collision functions, the room editor etc. OR i would have to run these matches in the same room next to each other which would be really wonky...
Another option would be using data structures instead of objects, and my own collision functions, but this begs the question why I would still be using GML and not something like java? The only thing I would be using from GML are the drawing, surface and sound functions.
Maybe there is a way (an extension or DLL or something) to make the server start a new room without closing the 'main server room' for each seperate match? Or it would not even need to be displayed, as long as the server does the necessary calculations.
What are your thoughts on this issue? I would really like some input before starting to create something in GMS while GMS is not at all suited for the job.
Thanks in advance!
Maarten
So I have been thinking about creating a small multiplayer game in GML, with a server which I can run on my pc and a client that players use to play the actual game (which are short 1v1 matches). The server would be an authoritative server, so it would run any game that is taking place and send updates to the clients, and the clients would check if their predictions match up with the authoritative results and conform to these if their predictions were different ( see http://www.gabrielgambetta.com/fpm1.html ).
Now I was thinking, if the server has to run multiple matches at the same time, how would I go about implementing this? It seems to me I could not use objects, any standard GML collision functions, the room editor etc. OR i would have to run these matches in the same room next to each other which would be really wonky...
Another option would be using data structures instead of objects, and my own collision functions, but this begs the question why I would still be using GML and not something like java? The only thing I would be using from GML are the drawing, surface and sound functions.
Maybe there is a way (an extension or DLL or something) to make the server start a new room without closing the 'main server room' for each seperate match? Or it would not even need to be displayed, as long as the server does the necessary calculations.
What are your thoughts on this issue? I would really like some input before starting to create something in GMS while GMS is not at all suited for the job.
Thanks in advance!
Maarten