Difference between revisions of "IB Computer Science 1"
From WLCS
Line 4: | Line 4: | ||
* Keyboard & Image Practice | * Keyboard & Image Practice | ||
*# Create a Processing program named MarioSideScroller | *# Create a Processing program named MarioSideScroller | ||
− | *# Download the [[Media: | + | *# Download the [[Media:Mario-1-1.gif]] and add the file to your Processing program |
*# Create global variables: bg_x and bg_y (initialize both to 0) | *# Create global variables: bg_x and bg_y (initialize both to 0) | ||
*# Set your window size to 600 x 448 (the image has a height of 448 pixels) | *# Set your window size to 600 x 448 (the image has a height of 448 pixels) |
Revision as of 21:23, 10 November 2016
Contents
Monday (11/14/16)
Agenda:
- Complete Input: Keyboard Variables
- Keyboard & Image Practice
- Create a Processing program named MarioSideScroller
- Download the Media:Mario-1-1.gif and add the file to your Processing program
- Create global variables: bg_x and bg_y (initialize both to 0)
- Set your window size to 600 x 448 (the image has a height of 448 pixels)
- Load your downloaded image
- Within draw(), display the image at location: bg_x, bg_y
- Add keyboard detecting code:
- if the RIGHT key is pressed, then decrease bg_x by 10
- if the LEFT key is pressed, then increase bg_x by 10
- Test your program...what did you create?
Wednesday - Thursday (11/9/16 - 11/10/16)
Agenda:
- StudentVUE updated
- Complete Input: Mouse Variables & Functions
- Complete Input: Keyboard Variables
Friday - Monday (11/4/16 - 11/7/16)
Agenda:
- Complete and demo of Ping with sounds and images by the end of the week (individually!)
- Add a background image
- Change the ball and paddle to images
- Add sounds to the ball bouncing off the walls and paddle
- Add background music
- Add a game over sound (use noLoop() to stop the draw() function from looping)
- Processing (Python) Reference
- Input (Mouse & Keyboard) Variables & Functions
- Complete Input: Mouse Variables & Functions
- Complete Input: Keyboard Variables
Wednesday - Thursday (11/2/16 - 11/3/16)
Agenda:
- 1st Quarter Exam
- Complete and demo of Ping with sounds and images by the end of the week (individually!)
- Add a background image
- Change the ball and paddle to images
- Add sounds to the ball bouncing off the walls and paddle
- Add background music
- Add a game over sound (use noLoop() to stop the draw() function from looping)
- Input: Mouse Variables & Functions
- Input: Keyboard Variables
Tuesday (11/1/16)
Agenda:
- Quarter Exam - Wednesday, Thursday (11/2/16, 11/3/16) - comprised of 2 major components:
- Completion and demo of Ping with sounds and images by the end of the week (individually!)
- Add a background image
- Change the ball and paddle to images
- Add sounds to the ball bouncing off the walls and paddle
- Add background music
- Add a game over sound (use noLoop() to stop the draw() function from looping)
- Closed-book, closed-note component:
- You could be given various snippets of Processing code, and you will be asked to draw the resulting image
- You could be given incomplete Processing code, and you will be asked to complete the code
- Completion and demo of Ping with sounds and images by the end of the week (individually!)
- Input: Mouse Variables & Functions
- Input: Keyboard Variables