Janfiderheld / Snake-That-MO

Projektarbeit im Fach "Mobile Systeme" von Niclas Muss & Jan-Philipp Töberg an der Technischen Hochschule Ostwestfalen-Lippe im WS18/19
Apache License 2.0
7 stars 0 forks source link

Changing between Game and Menu works only twice #20

Closed Janfiderheld closed 5 years ago

Janfiderheld commented 5 years ago

Current situation: 1) The game is finished and the main menu is opened 2) you touch to start a new game 3) all snake body parts which are more than the starting amount are just lying around and only disappear when you collect coins to "gain" them back to the snake 4) you finish this game 5) the game crashes as soon as you want to start a third game in a row WHY!?

Janfiderheld commented 5 years ago

Testing today revealed that it only works once ¯_(ツ)_/¯ Fix idea: Create a new Array for the snake body Parts everytime the snake gets created

Janfiderheld commented 5 years ago

Since the newest fix the snake gets created correctly everytime, so there are no more obsolete body parts "lying around"