Mr. Vela's Class
  • Home
  • Assignments
  • Personal Website Project
  • Tutorial Videos
  • HTML Tags
  • Bookmarks
  • Keyboard Shortcuts

​Daily Directions

ATLAS
Code.org
Office 365

Practicing Boolean Expressions

12/6/2018

1 Comment

 

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
1 Comment
John
12/14/2018 08:16:03 am

sup its John

Reply



Leave a Reply.

    Author

    Mr. Vela's Daily Assignments

    Archives

    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    October 2017
    September 2017
    August 2017

    RSS Feed

Proudly powered by Weebly
  • Home
  • Assignments
  • Personal Website Project
  • Tutorial Videos
  • HTML Tags
  • Bookmarks
  • Keyboard Shortcuts