SlideShare a Scribd company logo
1 of 1
Download to read offline
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.

More Related Content

More from Ryan Worcester

More from Ryan Worcester (20)

Comic panels transitions
Comic panels transitionsComic panels transitions
Comic panels transitions
 
Mag ownership and distribution
Mag ownership and distributionMag ownership and distribution
Mag ownership and distribution
 
Total film page furniture
Total film page furnitureTotal film page furniture
Total film page furniture
 
Lwl page furniture
Lwl page furnitureLwl page furniture
Lwl page furniture
 
Total film flat plan
Total film flat planTotal film flat plan
Total film flat plan
 
Shame issue flat plan
Shame issue flat planShame issue flat plan
Shame issue flat plan
 
Page furniture
Page furniturePage furniture
Page furniture
 
History of film magazines
History of film magazinesHistory of film magazines
History of film magazines
 
Draft designs feedback
Draft designs feedbackDraft designs feedback
Draft designs feedback
 
Focus
FocusFocus
Focus
 
Composition
CompositionComposition
Composition
 
Lighting
LightingLighting
Lighting
 
Blue 7
Blue 7Blue 7
Blue 7
 
Breaking bad tshirt groups
Breaking bad tshirt groupsBreaking bad tshirt groups
Breaking bad tshirt groups
 
Titanfall production pipeline
Titanfall production pipelineTitanfall production pipeline
Titanfall production pipeline
 
20131104151638800 0018
20131104151638800 001820131104151638800 0018
20131104151638800 0018
 
20131104151638800 0017
20131104151638800 001720131104151638800 0017
20131104151638800 0017
 
20131104151638800 0016
20131104151638800 001620131104151638800 0016
20131104151638800 0016
 
20131104151638800 0015
20131104151638800 001520131104151638800 0015
20131104151638800 0015
 
20131104151638800 0014
20131104151638800 001420131104151638800 0014
20131104151638800 0014
 

Snake escape flowchart bug

  • 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.