1) A windows, mac, and linux compatible library that speaks to a Java or C++ server
2) A javascript library (39js) that runs in a browser and speaks to a NodeJS server (a server that runs javascript).
I'm personally not a fan of NodeJS or javascript in general and I wanted the binary versions of the game to be able to talk to the web versions. So I set out to write a library that works on windows, mac, linux, and in a browser that speaks to a Java server. The sever is based on Netty and will listen to websockets as well as TCP sockets. So it can listen to 39dll or the javascript socket.io library.
I'm modelling the API after 39dll since there are a number of Game Maker games already written for this library. I prefer a java server, so that's what I'm coding, but I get the impression that a lot of the servers are written in C++. With my Java server as an example, someone should be able to write the C++ version and have a completely compatible library that developers can plug their game into and have it suddenly work in a browser.
I currently have the socket.io to java code working. The next step is to incorporate 39net (a java version of a 39 dll server) and switch between the two communication modes depending on what platform the game is running on.
This has been a costly investment, but it will pay off in the long run and I couldn't pass up the opportunity to debut my first open source project and help a niche of developers who are looking for a solution like this.
No comments:
Post a Comment