Lesson 2
Goals
Pasos
Step 1: Now back to our snakes
var snake = [{ top: 0, left: 0}];var drawableSnake = { color: "green", pixels: snake }; var drawableObjects = [drawableSnake]; CHUNK.draw(drawableObjects);Expected Results
What your snake.js file should look like:
var snake = [{ top: 0, left: 0}]; var drawableSnake = { color: "green", pixels: snake }; var drawableObjects = [drawableSnake]; CHUNK.draw(drawableObjects);How the game should work so far:
Step 2: What is CHUNK?
Step 3: Understanding the Code
var snake = [{ top: 0, left: 0}]; var drawableSnake = { color: "green", pixels: snake }; var drawableObjects = [drawableSnake]; CHUNK.draw(drawableObjects);Step 4: Comments
Step 5: Play Time!
Next Step:
Go on to Lesson 3