ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator peer-to-peer Multiplayer possible?
person icon
CopperCraftr
Guest
Quote
2024-09-22 14:55:22

Can it be possible making an peer-to-peer multiplayer on a coppercube engine, ive seen many coppercube examples with diffrent services to use, but can there be a more simple way of making a multiplayer way?

person icon
sam_grady
Registered User
Quote
2024-09-22 15:42:42

You can use Hamachi to create a local connection between two players.

person icon
okeoke
Registered User
Quote
2024-09-22 15:42:59

Well it should be doable. Probably, you should look into something like WebRTC.

https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API

Obviously, CopperCube doesn't support it out of the box, unless you're using webgl version, but there are multiple ways to work around that:

1. Write another application that establishes connection and then get data to coppercube game using http or file system
2. Use webgl with some sort of wrapper like electron or auri to produce exe
3. If you good at cpp and own studio version, there might be WebRTC bindings

person icon
CopperCraftr
Guest
Quote
2024-09-22 16:29:20

Ive recently tried using an apache server for an multiplayer game, you can acces it on itch.io

https://coppercraftr.itch.io/coppercube-simple-multiplayer


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |