- Discussion: How many computers are there in this room?
- Tutorial - Hello Processing (Link)
- Video - "What is a Computer?"(Video)
- Notes - Conditionals (Link)
- Project #1: Knight and Day (Assignment) [2]
- Skills: Shapes, Colors, Stroke, Conditionals
- Project #2 - Dancing Lights (Assignment) - [1]
- Skills: Comparison Operators, Random Numbers
- Project #3 - Supernova (Assignment) - [1]
- Skills: Int, Float, Boolean, Height, Width, Print
- Project #4 - Snake (Assignment) - [3]
- Skills: Logical Operators, Else If, Timers, Methods
- Project #5 - Zombie (Assignment) - [3]
- Skills: Text, Casting, Progress Bars
Coding Quiz #1 - Fall
Create a program that does the following:
- Creates a canvas 500 pixels wide and 500 pixels tall
- Sets a black background
- Draws two rectangles that are 50 pixels wide and as tall as the canvas
- One is on the left side of the screen, the other the right
- Both should be colored BROWN
- A circle should fall from the top of the screen
- It should move downward at the speed of 5 pixels per frame.
- There should be no trails
- The circle should have a new random color every frame.
- It should appear at a random location between the two brown rectangles, but never touch either of them.
- When it reaches the bottom of the screen, a new circle should appear at the top of the screen with a new position.
- Record Time: 2 min 45 seconds by Ben L.
Vocabulary & Concepts
- Canvas
- X & Y Coordinates
- Pixels
- Stroke
- RGB
- Conditional
- Variable
- Parameter
- Method
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.