OmarShehata / I-Spy-A-Ghost

An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for Ludum Dare
MIT License
58 stars 20 forks source link

Getting ID null #1

Open ghost opened 5 years ago

OmarShehata commented 5 years ago

Just saw this - if you're still running into this issue, let me know!

earlin commented 4 years ago

I am currently, in your hosted version, and it shows a null ID.

earlin commented 4 years ago

I am however just interested in how you fitted the peerjs calls in phaserjs because I need that for a pet project of mine.

OmarShehata commented 4 years ago

Thanks @earlin , I see this too. I wonder if PeerJS updated something in the last 4 years that isn't backwards compatible.. I'd be happy to review a pull request if anyone wants to take a look at this.

I do have a separate multiplayer with PhaserJS tutorial here that uses Socket.io you might find useful: https://code.tutsplus.com/tutorials/create-a-multiplayer-pirate-shooter-game-in-your-browser--cms-23311

earlin commented 4 years ago

I am actually investigating WebRTC for now, but I will look into WebSockets afterwards.