change the code to fit your needs. red food, blue snake and white is nothing
Variable Snake length is not exactly right it is + 1 the real length because the script has to subtract all tail blocks life by 1. Ask anything about the project and i will try to help you. :) V:0.0.2 added more comments and food function +10.11.2022 fixed small render issue and made snake go faster.