Difference between revisions of "Computer Science"
From WLCS
(→Thursday (9/26/13)) |
|||
Line 8: | Line 8: | ||
*# Do the above for every sprite | *# Do the above for every sprite | ||
* Introduction to Data & Variables | * Introduction to Data & Variables | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* Begin work on your Basic Frogger Game | * Begin work on your Basic Frogger Game | ||
*# Give your game a simple background | *# Give your game a simple background |
Revision as of 11:13, 26 September 2013
Contents
Thursday (9/26/13)
Agenda:
- Bouncing sprites animation review
- Introduction to Basic Game Programming
- Start game
- Run forever (game loop)
- Include rules in your game loop
- Do the above for every sprite
- Introduction to Data & Variables
- Begin work on your Basic Frogger Game
- Give your game a simple background
- Have your stage play some background music
- You will need several sprites.
- 1 player sprite will be the player and it will cross the screen by using the keyboard.
- 3-5 enemy sprites will be used to move back and forth horizontally or vertically across the screen (the number depends on how big you make them)
- When you play your game, you want to cross the entire screen without hitting the enemy sprites.
- Start the player off with 3 lives (HINT: use a variable)
- If you hit any of the enemy sprites:
- Subtract one life away
- Play a sound effect of getting hit
- Say "Ouch!"
- Move the player back to its starting location
- If lives hits 0, then say "Game Over" and end the game
- Play a sound effect for the "Game Over"
- If the player reaches the other side of the screen, then say "You win!"
- Play a sound effect for winning
- Hint: You can use all sorts of different ways to detect how you hit the other side of the screen
- Create a long sprite that you detect hitting OR...
- Check the y-coordinate of the sprite and if it is greater than the upper bound of the screen
Back to School Night (9/24/13)
Tuesday (9/24/13)
Agenda:
- Control Blocks
- repeat X times block
- forever block
- if statement blocks
- Forever + if on edge example
- Forever + if + keys example
- Bouncing sprites animation
- Your Scratch program should have at least 5 different sprites
- When the program starts, each sprite should point in a random direction (check out the Operators blocks)
- Each sprite should then continuously move around, bouncing off the edges
- Try out some different things like pen actions and color changes
- Add another sprite that you can control smoothly using the keyboard (we'll call this the player sprite)
- If a bouncing sprite touches the player sprite, then make the bouncing sprite disappear
Friday (9/20/13)
Agenda:
- Animation Evaluations
- Put your name on the post-it note that Mr. Bui will give you, and place it on the computer monitor
- Put your name at the top of the Animation Evaluation sheet
- Find 3 other peoples' animations to evaluate. Those people have to be in other rows in the room.
- Be sure to put their name in the different evaluation sections
- Be professional in your evaluation.
- Turn in the evaluation sheet when you are done.
Wednesday (9/18/13)
Agenda:
- Sprite Story Animations - Create an animation that retells a movie/story in simplified terms. In your animation, you must employ the following:
- Background image
- Sprites that move around
- Sprites that change costume
- Sprites and say/think
- A graphic or size effect being applied to sprites
- A sound should be played
- Make sure that your animations clearly have all of the above. You will be evaluating each other's animations on Friday (9/20/13).
Monday (9/16/13)
Agenda:
- Make sure you've demonstrated your Scratch - Moving and Drawing Assignment to Mr. Bui
- Stage / Background
- Sprite Looks
- Changing costumes
- Saying and Thinking
- Graphics and Size effects
- Broadcast and When I Receive blocks
- Wait command
- Sprite Story Animations - Create an animation that retells a movie/story in simplified terms. In your animation, you must employ the following:
- Background image
- Sprites that move around
- Sprites that change costume
- Sprites and say/think
- A graphic or size effect being applied to sprites
- A sound should be played
- Make sure that your animations clearly have all of the above. You will be evaluating each other's animations.
Thursday (9/12/13)
Warmup:
- Turn in your signed syllabus if you have it
- Due by the end of the week!
- Demonstrate your Scratch - Moving and Drawing Assignment to Mr. Bui
Agenda:
- Key pressing
- Sounds (you will need to use headphones for this unit!)
- Downloading a sound (e.g. Mario sound clips)
- Record your own sound
- Playing sounds in Scratch
- Complete and demo Scratch - Sound Board Assignment
Tuesday (9/10/13)
Warmup:
- Turn in your signed syllabus if you have it
- Due by the end of the week!
Agenda:
- Introduction to Scratch
- Create your Scratch account at: http://scratch.mit.edu/
- Sprites (costumes and direction)
- Basic movement
- Pen
- Scratch - Moving and Drawing Assignment
- Complete the assignment and demonstrate (demo) it to Mr. Bui
Friday (9/6/13)
Warmup:
- Turn in your syllabus if you have it signed
- If you have not already done so, complete the Student Survey
- Bring up your responses from the "Defining computer science" activity at the end of last class
- Review your responses
Agenda:
- "What is computer science?" discussion
- Different fields in computer science
- How do we solve problems?
- Share sandwich stories
- What lessons/problems did we run into?
- What does programming mean?
- Introduction to Scratch
- Create your Scratch account at: http://scratch.mit.edu/
- Sprites (costumes and direction)
- Basic movement
- Pen
- Scratch - Moving and Drawing Assignment
Homework:
- Signed syllabus sheet due by the end of next week (9/13/13). You may turn it in anytime before then.
Wednesday (9/4/13)
Agenda:
- Lab setup/config
- Login username is your first initial and lastname (e.g. pbui)
- Your password is your student ID number
- You may customize your account/desktop however you wish (school-appropriate)
- Acceptable-use policies apply in this lab!
- Complete the Student Survey
- Introductions
- Misc logistics
- 20/10 no pass policy
- Location of bathrooms
- Sign in/out sheets
- Computer Science I Syllabus
- IT Resources for Students (UserID: StudentID# and Password: Birthday)
- Google Apps - http://www.apsva.us/google
- Dropbox - http://www.dropbox.com
- etc.
- Defining computer science activity:
- Title the document: Defining CS
- Write your name the top of the Google Doc
- Define the term: "to compute" or "computation"
- List 5 people/things/systems that use computers (e.g. air traffic control)
- For each of the above people/things/systems, write down the information/data that they use (e.g. flight information)
- Share the document with
Homework:
- Signed syllabus sheet due by the end of next week (9/13/13). You may turn it in anytime before then.
Tuesday (9/3/13)
- Introductions
- Name cards
- Lab setup/config
- Login username is your first initial and lastname (e.g. pbui) (for today...use "guest")
- Your password is your student ID number (for today...no password)
- Go to Apple (upper left) -> System Preferences -> Accounts -> Change Password (we'll do this later)
- Acceptable-use policies apply in this lab!
- Complete the Student Surveys