INDEPENDENT STUDY : |
Monday/Tuesday - April 11th/12th, 2022
Objectives
Students will be able to:
- Identify a variable as a way to label and reference a value in a program
- Use variables in a program to store a piece of information that is used multiple times
PART 1: WARM-UP: PLEASE ANSWER ON GOOGLE CHROME:
- At the beginning of the course, we learned that input, output, storage, and processing were common to all computers. Where do you see input, output, storage, and processing in Game Lab?
PART 2: SHARE:
NOTES:
- input: values passed as parameters, typing into the Game Lab workspace
- output: shapes shown on the Game Lab screen
- storage: remembering the code
- processing: the If/then and matching that turn the code into the pictures on the screen
PART 3: REMARKS
Today we're going to focus on storage. We're going to look at variables, which are a very common way for computers to store information in a program.
PART 4: Key Vocabulary:
- variable - a label for a piece of information used in a program
PART 5: QUESTION OF THE DAY: WE WILL ANSWER THIS QUESTIONS AT THE END OF CLASS
- How can we use variables to store information in our programs?
PART 6: PLEASE HEAD OVER TO CODE.ORG/GAMELAB
PART 7: VIDEO: Questions to Consider
var score = 10
Note: the "=" is the assignment operator
We read it like this:
score "gets the value of"
or
score "gets"
Like a score, name, age, address.
- What are variables used to do?
- Variables are used to be able to use a computers memory and it can be used and updated throughout the program.
- How do you create a variable and assign it a value?
- First you create a variable
var score = 10
Note: the "=" is the assignment operator
We read it like this:
score "gets the value of"
or
score "gets"
- What can go into a variable?
Like a score, name, age, address.
PART 8
PART 9
PART 10:
PART 11:
PART 12
PART 13
EXIT TICKET: PLEASE ANSWER THE FOLLOWING QUESTIONS ON GOOGLE CLASSROOM:
Question of the Day:
- How can we use variables to store information in our programs?
- What is your own definition of a variable?
- Why are variables useful in programs?
WEDNESDAY - April 13th, 2022
Objectives
Students will be able to:
PART 1: WARM UP: PLEASE ANSWER ON GOOGLE CLASSROOM
PART 2: SHARE
NOTE: Have you ever thought of introducing randomness into your program? What are some examples in which you see randomness in a program? Think of video games....
PART 3: REMARKS:
PART4: PLEASE HEAD OVER TO GAME LAB
Students will be able to:
- Generate and use random numbers in a program
- Update a value stored in a variable
PART 1: WARM UP: PLEASE ANSWER ON GOOGLE CLASSROOM
- So far, our programs have done the same thing every time that we run them. Are there any times that you'd want a program to do something differently each time it was run?
PART 2: SHARE
NOTE: Have you ever thought of introducing randomness into your program? What are some examples in which you see randomness in a program? Think of video games....
PART 3: REMARKS:
- So far, we've wanted our programs to do exactly as we've coded, and most of our surprises have been bugs. Today we're going to look at how we can code random behaviors into our programs so that we can get some good surprises.
PART4: PLEASE HEAD OVER TO GAME LAB
PART 5
PART 6
PART 7
PART 8
PART 9
EXIT TICKET:
PLEASE ANSWER THE FOLLOWING QUESTIONS ON GOOGLE CLASSROOM:
QUESTION OF THE DAY:
- How can we make our programs behave differently each time they are run?
- So far, we've only looked at random numbers. Are there any other things that you might like to be random in your program?
Thursday/Friday - April 14th/15th, 2022
Objectives
Students will be able to:
- Please finish Wednesday's lesson
- Create and use a sprite
Part 0.5:
Please click on the link below and finish Wednesday's lesson.
Path 0.8:
Then do the lesson below:
Warm-up:
Review: So far we've written programs that put simple shapes on the screen. List of all of the different pieces of information that you have used to control how these shapes are drawn.
If you wanted to create programs with more detailed images, maybe even characters that you could interact with, what other pieces of information might you need in your code?
IF YOU ARE HAVING TROUBLE WITH THE WARM-UP, THINK OF THE FOLLOWING QUESTIONS
- How do you tell a shape where to go on the screen?
- How do you tell a shape what size it needs to be?
- How do you tell a shape what color it should be? What about its outline?
- What if you wanted to change any of those values during your program, or control other things like rotation?
PART 2: SHARE:
PART 3: Teacher Remarks:
Today we'll learn how to create characters in our animations called sprites. These sprites will help us keep track of all of the information that we need in our programs.
Part 4: QUESTION OF THE DAY:
How can we use sprites to help us keep track of lots of information in our programs?
PART 5: Video: Introduction to SpritesQuestions to Consider
PART 6:Key Vocabulary:
PART 7: OPEN UP GAME LAB BY CLICKING ON THE LINK BELOW THE IMAGE
- What is a sprite?
- What are properties?
- What problem do sprites solve?
PART 6:Key Vocabulary:
- Sprite - A character on the screen with properties that describe its location, movement, and look.
- Property - A label for a characteristic of a sprite, such as its location and appearance.
- Dot Notation - the way that sprites' properties are used in Game Lab, by connecting the sprite and property with a dot.
PART 7: OPEN UP GAME LAB BY CLICKING ON THE LINK BELOW THE IMAGE
PART 8:
Questions to Consider
Questions to Consider
- What is a sprite?
- What are properties?
- What problem do sprites solve?
PART 8:
PART 9:
PART 10:
PART 11:
Questions to Consider
Questions to Consider
- What are the steps to adding an image to a sprite?
- What are the different ways to get an image?
PART 12:
PART 13:
PART 14:
PART 15:
PART 16:
EXIT TICKET: ANSWER THE FOLLOWING QUESTION IN GOOGLE CLASSROOM:
Question of the Day: How can we use sprites to help us keep track of lots of information in our programs?
Prompt: So far we've been able to change a sprite's location and image. What else might you want to change about your sprites?
Question of the Day: How can we use sprites to help us keep track of lots of information in our programs?
Prompt: So far we've been able to change a sprite's location and image. What else might you want to change about your sprites?
Intro to Python:
Part 1: Create an account:
- Create an account by signing up with your Teach google email.
- Please select the google image
2. Then, select "Learn Python"
3. Click on the green button to " Enroll" in the Data Scientist class.
4. Grab headphones and begin your journey with Python
Exit ticket:
Show me your work.
Exit ticket:
Show me your work.