ScratchData LogoScratchData
Back to Paddle2SeeFixIt's profile

Clone Snake

PAPaddle2SeeFixIt•Created February 26, 2013
Clone Snake
1
0
462 views
View on Scratch

Instructions

Use the arrow keys to steer your blue Snake to the green food dots. Don't run over your own tail or touch the edges.

Description

I was trying to make a version of Snake that used clones...but I couldn't see a good way to get the clones to follow one another. So I decided to use Lists to keep track of the position of each one...and each time the snake moves, it just goes to the position of the snake segment ahead of it (except for the head of course). It came out kind of jerky...but it kind of works. I'd be interested in seeing better approaches :) I've played it up to 110 segments - it was still working pretty fast at that point.

Project Details

Project ID10062190
CreatedFebruary 26, 2013
Last ModifiedFebruary 26, 2013
SharedMarch 1, 2013
Visibilityvisible
CommentsAllowed