ScratchData LogoScratchData
Back to AlSweigart's profile

Snake

ALAlSweigart•Created October 2, 2015
Snake
20
20
816 views
View on Scratch

Instructions

Use the arrow keys to guide the snake to eat the apples. Each apple make the snake grow longer. Don't crash into yourself or the walls!

Description

Learn to program games with this free online Scratch course: https://inventwithscratch.com/class This program works because the "body" sprite constantly moves to the "head" sprite and clones itself. After a short wait, the clone turns to a lighter shade of green. If the head detects it touches this lighter green, the program knows the snake has crashed into itself. After another short pause, the clone disappears. Since the clones all disappear in order, it gives the illusion of the snake body moving.

Project Details

Project ID79885980
CreatedOctober 2, 2015
Last ModifiedDecember 6, 2016
SharedOctober 2, 2015
Visibilityvisible
CommentsAllowed