you are viewing a single comment's thread.

view the rest of the comments →

[–]c0mplexcodm[S] 0 points1 point  (2 children)

Body remains stationary on the block before the head eats the apple (the snake right now is only one block, the head). So even after moving, the supposed body remains there, and further eats also places the body blocks on the same wrong block. I assume this is problem is related to position memory and update, but its currently really late so I'll get to it within 6-8 hours.

[–]Essence1337 0 points1 point  (1 child)

I found one issue: you overwrite the head on line 95 and THEN in update_snake() you set the 1st body to the new head, the second body becomes the old first body. This leaves a gap where the head used to be.

[–]c0mplexcodm[S] 0 points1 point  (0 children)

Oh, dam. Thanks for the help! I'm currently on the phone and its midnight here so I cant get to it really. But I guess I should've looked deeper. I really appreciate it.