Posted October 27, 2022 by Mossieur Patate
#bogue #mise à jour
For the curious: this was really only one instruction (although this did impact the game)! I found out the reason while creating Maudits Fantômes / Cursed Ghosts: since Love2D colours are Lua tables rather than numbers, the assignment was giving a reference to the colour and allowed it to be changed when it should not. Ironically, I had already programmed a utility function for copying tables/lists by value instead of by reference, but overlooked using it for this specific instruction.
Transferring the current bug notice below for reference.
The ‘chameleons’ sometimes use the colour of another area; I could not pinpoint the origin of this bug, as things seem to go well with few chameleons, and this happens when there are more. Perhaps changing the colour mode too often (with setColor
) does this, but this would be weird, since colour stays absolutely correct or the hats and glasses… Still, the game feels playable and hard enough even with this!