Network programming
gillesRoadmap100%
• released in beta •
A new "Server" tab in your microStudio project will allow you to implement a game server in microScript, then run it and test it - in real time, always. You won't have to install a real server, it will all happen with a simple click to start your server, then make your game clients join the server and start an online multiplayer game. When you will come to export your project, you will be able to export the server app as a standalone NodeJS application, ready to install on a "real" server.
Oh boy!That idea is great!
What would the server instill? Do you mean being able to create an online game which connects players through the server?
- Also, yes that sounds like a great idea! Good luck with it, considering all the stuff you've got on your plate...
Got a question about this upcoming feature, will we need Node.js to run servers? Because I have a Windows 7 32-bit laptop.
This would be super useful! I could implement multiplayer into my game Blocks.
:0 Yes this would be so cool! Glad to see it's already being worked on!
P.S. Will exported html files have server functionality? And also, how would you implement coding? Are there going to be "server-side" and "client-side" files that run separately? Are there going to be "cloud variables" (kind of like scratch has done)?
For anyone who wants to go ahead and make online games while we wait for this feature, you can get a WebSocket server on Heroku (or similar) and use system.javascript()
to connect to it.
Cons:
- Some of these services are paid
- You have to have a good understanding of JavaScript
- It's not possible yet to make this in MicroScript
Pros:
Links:
Note: This is just a temporary possible solution (I haven't tested it myself yet), I think this is a really amazing idea. I hope that this new feature comes out soon!
EDIT: This is possible now! Hooray!
Oh Boy! can't wait of all the possibilities of my games!
Networking is now available! However the "export server to standalone NodeJS app" isn't done yet, thus I am setting it to 90% done for now. The export will come soon enough, allowing me to set this to 100% :-)
Server export is now available thus I am setting this to 100% complete :-)
Still in beta because a couple bugs / missing features have been reported, related to disconnecting the client or closing the server. I will be looking into that shortly.