3 ms·
I think I found a bug the original game didn't had (or my dad fixed on my version...), but suiciding results in you getting the score. (example: I suicided as "
by speeder 10y ago
I think I found a bug the original game didn't had (or my dad fixed on my version...), but suiciding results in you getting the score. (example: I suicided as "player 2", the "player 1" made his victory dance, but the score counted 1 point for player 2)
- kmill 10y agoThanks! Scorekeeping was always a part of the code I was unsure about, and I thought I saw some scoring inaccuracies while playing the game, but somehow never identified what they were. If you're curious, the HITSELF constant in the original game is 1, but I was testing a boolean against HITSELF using strict equality (===). Thus, you were just scored based on how many gorillas you hit with a banana. (fixed)
- kmill 10y agoActually, it turned out I just reversed who received each point! The bug was more subtle and came down to the fact that arguments are passed by reference in QBasic, so the DoShot function modifies the caller's PlayerNum variable when a gorilla is hit. This means there's just dead code in the scoring function.