How I Added Multiplayer to My Game (Sort Of)
Remember that game I was making where cubes occasionally turned into spheres? Well, I've leveled up - now TWO people can watch cubes turn into spheres simultaneously! That's right, I've added multiplayer, and only broke the space-time continuum twice in the process.
The good news: I successfully got two players to connect! The bad news: Player 2 keeps spawning inside Player 1.
Spent five hours debugging why players couldn't see each other, only to realize I forgot to actually send their positions over the network. They were all there, just... having their own private parallel universe party. Kind of like my code's version of social distancing.
The real breakthrough came when I finally figured out network serialization. Though I'm pretty sure I accidentally invented quantum entanglement in the process. Sometimes Player 2's actions happen before Player 1 does them. I'm either really bad at networking or really close to inventing time travel.
My favorite bug so far: when a player disconnects, instead of removing their character, they start floating towards the sky. I'm keeping that one. It's not a rage quit; it's an ascension to a higher plane of existence.
I like that you learn Godot .
!hiqvote
View or trade
BEER
.Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below
@nerdtopiade, the HiQ Smart Bot has recognized your request (1/2) and will start the voting trail.
In addition, @chiren gets !LOL from @hiq.redaktion.
Discord. And don't forget to vote HiQs fucking Witness! 😻For further questions, check out https://hiq-hive.com or join our
lolztoken.com
He drank his coffee before it was cool.
Credit: reddit
$LOLZ on behalf of hiq.smartbot
(1/8)
NEW: Join LOLZ's Daily Earn and Burn Contest and win $LOLZ@chiren, I sent you an