Because every student should have the opportunity to learn how to code

User Tools

Site Tools


lev4:act_scrolling_s

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lev4:act_scrolling_s [2015/03/11 09:32]
jbschafer created
lev4:act_scrolling_s [2015/10/15 11:55] (current)
jbschafer
Line 11: Line 11:
  
 =====Instructions===== =====Instructions=====
-  - Open up a new program area in Scratch or begin by remixing our [[http://http://​scratch.mit.edu/​projects/​51757178/#editor|Pong Starter]] program.+  - Open up a new program area in Scratch or begin by remixing our [[https://​scratch.mit.edu/​projects/​51871028/#editor|Scrolling ​Starter]] program.
   - If you are creating this program completely on your own:   - If you are creating this program completely on your own:
-         * Add a sprite for a ball that will be bouncing around on the screen\\ {{..:pongBallStarter.png}} +         * Add a sprite for an object ​that will move through your world like a helicopter or flappy bird.\\ {{..:scrollheliimg.png}} 
-         * Add a sprite for the goal position a the end of the maze.\\ {{..:pongPaddleStarter.png}} +         * Add a sprite for the obstacles that you will be avoiding.\\ {{lev4:scrollbarimg.png}}\\ \\ You may want to make several different costumes for this object with the "​opening"​ at different places so that you can add some challenge to your game. 
-         ​* ​To get started, paint a backdrop ​that a solid colored ball along the bottom of the screen.\\  {{..:pongStageStarter.png}} +         ​* ​Design your basic backdrop.\\ ​ {{lev4:scrollbackimg.png}} 
-         * Put them all together so you have a simple ​pong game showing.\\ {{..:pongComplete.png}}+         * Put them all together so you have a simple game showing.\\ {{lev4:scrollfullimg.png}}
   - If you are using our sample starter code, take a look at what we have for these features.   - If you are using our sample starter code, take a look at what we have for these features.
-  - Add one of the the following code samples ​to the paddle so that it can respond ​to the user's controls. ​so that it knows to start the game in it's starting location when the green flag is pressed.\\ {{..:mazeToStart.png}}\\  +  - Now consider ​the following code
-  - Add the following code to the ball so that the player can move the ball around the maze.\\ {{..:pongMouseCode.png}}\\ \\ {{..:pongKeyboardCode.png}} +         * We need to add some code to your object (bird, helicopter, etc) so that it falls with gravity.\\ {{:lev4:​scrollgravity.png}} 
-  - Add the following ​code to the ball to have it move around the screen when the game starts\\ {{..:pongBallMovement.png}}\\  +         * Then we need to allow the item to be interactive - that is, to "​fly"​ when a key is pressed.\\ {{:lev4:scrollflap.png}} 
-  - Add the following code to the ball to have it bounce off the paddle.\\ ​{{..:pongBallBounce.png}}\\  +         * Next, we need to add the code that uses clones of your obstacles ​to produce multiple random obstacles over time.\\ {{:lev4:​scrollbarcontrol.png}} ​ {{:lev4:​scrollbarmotion.png}} 
-  - Add the following code to the ball to have it detect ​that it has missed the paddle and is on the bottom of the screen.\\ {{..:pongBallDead.png}}\\ +         * Finally, we need to have code that detects when you crash into an obstacle. \\  {{:lev4:​scrollcrash.png}}
  
-Great. ​ Now you have a basic Pong game.  Try some of these modifications.+ 
 +Great. ​ Now you have a basic scrolling ​game.  Try some of these modifications.
  
  
-  * How do you add difficulty to the game by adding speed to the ball every so often? ​ (Hint, you can count bounces or use a timer) 
-  * How do you add difficulty by changing the size of the paddle every so often? 
   * Make a variable to keep score.   * Make a variable to keep score.
 +  * How do you add difficulty to the game by increasing speed of the obstacles or the rate at which the helicopter drops? ​ (Hint, you can watch the score or use a timer)
   * Can you add in the concept of multiple lives?   * Can you add in the concept of multiple lives?
-  * What would you need to do to modify ​the code so that the ball looks at where it is on the screen to decide if it is on the bottom rather than looking for color?+  * How can you add levels by changing ​the backdrops or the types of obstacles.
  
  
Line 48: Line 48:
 The studio for this activity is located at: The studio for this activity is located at:
  
-  * [[http://​scratch.mit.edu/​studios/​1022288|http://​scratch.mit.edu/​studios/​1022288]]+  * [[http://​scratch.mit.edu/​studios/​1024270|http://​scratch.mit.edu/​studios/​1024270]]
  
 =====Credits===== =====Credits=====
 This project is based on materials from the the [[http://​scratched.gse.harvard.edu/​guide/​files/​CreativeComputing20141015.pdf|Creative Computing curriculum]] by Brennan, Balch, and Chung. This project is based on materials from the the [[http://​scratched.gse.harvard.edu/​guide/​files/​CreativeComputing20141015.pdf|Creative Computing curriculum]] by Brennan, Balch, and Chung.
lev4/act_scrolling_s.1426084375.txt.gz · Last modified: 2015/03/11 09:32 by jbschafer