If a game has the same lines of code across all players, then why do some bugs only affect certain players?

758 viewsOtherTechnology

I was playing a game earlier when a friend was experiencing a bug. Wouldn’t it make sense for me to be experiencing the same bug since were playing the same game that’s coded with the same lines of code?

In: Technology

24 Answers

Anonymous 0 Comments

Some bugs can be very hard to encounter.

Imagine I’m programming a boss fight. At the end of the fight, if the player has more than 50% of his life left, I play a big celebration animation. If the player has less than 50%, I play a more somber animation. I test my code ; it works flawlessly.

I ship my game. The vast majority of players go through the fight fine, but some players experience a weird bug where nothing happens after the fight and the game soft locks.

Those players ended the fight with exactly 50% of their life left. There was a bug in my logic that was highly conditional and hard to spot.

You are viewing 1 out of 24 answers, click here to view all answers.