Somehow I was able to complete all the tasks, but my snake doesn't grow. I can't post my code because I've "completed" the tasks. Does anyone know what could be causing the issue without seeing my code?
My Snake isn't Growing
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
AnnemiekFF
24 April 2020, 13:51solution
Probably in your public void move apple you forget to add the head to the snakeParts.
+3
Brad Hawk
27 April 2020, 05:03
Thank you! This was it!
+1
Angus McDonald
18 June 2020, 16:18
I had the same problem.. snake wasn't growing.. however my move(Apple) method was correct.
The issues was in my draw(Game game) method... was missing the for loop changing the colour of each new non-body segment. So I was growing invisibly and then suddenly dying mid-game running into my invisible tail.
0
MichalBartczak
24 April 2020, 09:04
Few day before, I have had the same problem. It is still does not solved :(
0