This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
lev4:act_scrolling_s [2015/10/15 11:49] jbschafer |
lev4:act_scrolling_s [2015/10/15 11:55] (current) jbschafer |
||
---|---|---|---|
Line 16: | Line 16: | ||
* 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. | * 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.\\ {{lev4:scrollbackimg.png}} | * Design your basic backdrop.\\ {{lev4:scrollbackimg.png}} | ||
- | * Put them all together so you have a simple pong game showing.\\ {{lev4: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: | |
- | 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}} |
- | - 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}} |
- | - 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}} |
- | - 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}} |
- | - Finally, we need to have code that detects when you crash into an obstacle.\\ {{:lev4:scrollcrash.png|}}\\ | + | |