This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lev4:act_scrolling_s [2015/03/11 09:48] jbschafer |
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/51871028/#editor|Scrolling 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 an object that will move through your world like a helicopter or flappy bird.\\ {{..:scrollHeliImg.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 obstacles that you will be avoiding.\\ {{..: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. | + | * 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. |
- | * Design your basic backdrop.\\ {{..:scrollBackImg.png}} | + | * Design your basic backdrop.\\ {{lev4:scrollbackimg.png}} |
- | * Put them all together so you have a simple pong game showing.\\ {{..:scrollFullImg.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. | ||
- | - | + | - Now consider the following code: |
+ | * We need to add some code to your object (bird, helicopter, etc) so that it falls with gravity.\\ {{:lev4:scrollgravity.png}} | ||
+ | * Then we need to allow the item to be interactive - that is, to "fly" when a key is pressed.\\ {{:lev4:scrollflap.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}} | ||
+ | * Finally, we need to have code that detects when you crash into an obstacle. \\ {{:lev4:scrollcrash.png}} | ||
Great. Now you have a basic scrolling game. Try some of these modifications. | Great. Now you have a basic scrolling game. Try some of these modifications. |