Hi, great game and code, anyway couple questions, I did a multiplayer game in js using webrtc with peerjs, I can connect multiple players to one id without using any server (just give the generated ID to the others),also signaling with webrtc throught peerjs. Should be possible doing this on Godot? thx
I made a game!
Throw fireballs! Deploy shields! Win?
Put in a name and click "Host", share your game code with a friend have have them join in.
If you just want to run around and shoot fireballs all by yourself (and who doesn't?) you can also click the "Training Mode" button!
Did you know this game is open source? Check it out on GitHub!
|26 days ago
|Windows, Linux, HTML5
|Blender, Audacity, Godot, GIMP
|3D, arena, Dark, First-Person, Low-poly, Multiplayer, Pixel Art, Retro, webgl, webrtc
|A few minutes
|Ad-hoc networked multiplayer
Click download now to get access to the following files:
Log in with itch.io to leave a comment.
PeerJS still uses a server, it's just that they run one for you so you don't have to set up your own. Using PeerJS from godot would require porting their library and negotiation protocol over. Not impossible, but a fair amount of work.
Thanks for the reply, I don't mean to port PeerJS on godot, anyway I'm trying to connect more than 2 players on your project.
We Played this Multiplayer Fps Game, WebGL & WebRtc native Godot 3+ export Html5 Wasm, WebSocket Server-Signaling: Godot-Plugin or Js-Host, thanks for share-ing Dev-Blogs. Follow Like 2.
Hey, great game. How do handle mouse inputs? Whenever I try to export for html5, I fail to make anything respond to mouse inputs, while keyboard inputs work fine.
Just… the normal way, I think? You can check out the project on github and take a peek at the code if you want! https://github.com/NuclearLighthouseStudios/Screenhead-Arena
how do you handle signalling? do you host a websocket? can webrtc of godot run on android?
Signalling is handled by a small websocket server written in node.js. I'm not sure if there is a native implementation of the webrtc library for android.
I found out there is a library for android but not implemented to godot yet https://github.com/godotengine/webrtc-native/issues/9 check out the last comment . I saw the server.js code already, meant do you host the code for just this game or bought a vps?
Hey, just played it. And runs smoothly ! I've been working with Godot for some months now making a multiplayer game but I'm having some problems using the traditional methods that Godot provides. WebRTC appears to be a solution for easy connection through the internet without dealing with NAT traversing, NAT punch through etc. Any chance you could share the network part of the game ? Some real world example would be very beneficial. If it's not possible could you point to some good example ? Thanks.
Hey! I haven't done anything official or anything, but check out this reddit thread and the linked zip file.
That's basically the networking part of Screenhead Arena, just cleaned up a little. If there is interest I might also put this on itch as a slightly more official thing with a proper explanation?
Unsettling atmosphere with a great aesthtic. Super cool that this works on browser.
i have no F11. i have chromebook