Mr. Vela's Class
  • Home
  • FireAlplaca Final Project
  • FireAlpaca Basics

​Daily Directions

ATLAS
Code.org
Office 365

Practicing Boolean Expressions

12/6/2018

 

Step 1: Copy and paste this code into Unit 3, Lesson 11, #12:

var apple = createSprite(100, 200);
apple.setAnimation("apple");
apple.scale = .45;
apple.rotation = 55;

var pear = createSprite(300, 200);
pear.setAnimation("pear");
pear.scale = .45;
pear.rotation = -55;

console.log("hello, students!  Place boolean expression here.");

drawSprites();

Step 2: Complete the worksheet handed out in class.  Click here to download it.


Step 3: Complete Lesson 11, #2 thru #8


Step 4: Copy and paste the following code, and also download this picture and upload to code.org:

var apple = createSprite(55, 50);
apple.setAnimation("apple");
apple.scale = .15;

function draw() {
  background("lightblue");
  fill("green");  
  rect(0, 300, 400, 100);
  fill("brown");
  rect(150, 100, 100, 200);
  fill("green");
  ellipse(200, -50, 400, 400);
  
  apple.y = apple.y + 10;
  
  drawSprites()
}
Picture

Step 5: Make the apple stop on the ground and splatter by creating an "if-statement" in the function draw loop.

Hint:  You'll need to make the apple.x = a specific number.
Another hint:  You'll need to add a sprite.setAnimation block and change the animation of the apple to splatter.
Picture

Step 6: Complete Lesson 11, #11 and #12.


Step 7: Pick one of the following:
Option 1:  Go to Hour Of Code, Dance Party and create a dance video.  Download it and email it to me.


Option 2:  Create a digital christmas card like the one below using animation techniques.  Go to Lesson 11, lesson extras.
​

Example Digital Card

Picture

Code Needed

Picture
Picture

Pictures Needed

Picture
Picture
Picture
John
12/14/2018 08:16:03 am

sup its John


Comments are closed.
Proudly powered by Weebly
  • Home
  • FireAlplaca Final Project
  • FireAlpaca Basics