1. Snake Escape Flowchart Bug
There is a bug within the health/life
system of the game. My flow chart
never mentions what my health starts
as and so if you died and started
again, your health would start at 0%,
meaning the game will end again.
Also, if the players health somehow
reached minus 0, they technically
would still be alive as their health
isnʼt the value of 0.
I solved this by adding a “Set life to
100” process at the start of the game.
I also changed the decision to “Is
your life greater than 0?”, meaning if
your life to equal to or less than the
value of 0, you die. Once the game
restarts, your life is set back to 100
again due to the process at the start.
Even though this Bug fix makes the
game playable again, the “death”
state could be simplified for easier
coding. There are 2 ways to die in the
game, either you touch too many
poisonous plants until your life
reaches 0 or you touch a snake. If I
made the flow chart say that if you
touch a snake, 100 life is subtracted
and then link it to the “is your life
greater than 0?” decision, it would be
easier to add a death animation as
we would only have to link it to the
one decision.