A long week of optimising and trying different methods. The difference is hardly noticeable but performance is better and the behaviour of the snake is more predictable. The short caterpillar is the old version, the long one is optimised.

https://www.youtube.com/watch?v=WT3n2MjWK0g

Trillipede – A week of code optimising
Tagged on: