This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
starting:examples:ponggp [2017/10/02 05:45] simplesi |
starting:examples:ponggp [2017/10/02 05:47] (current) simplesi |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== PongGP ====== | ====== PongGP ====== | ||
- | {{:starting:examples:ponggp:screen1.png |}}This is a copy of the original Scratch Pong game, re-written in GP to show some of the differences and simularities between Scratch code and GP code | + | This is a copy of the original Scratch Pong game, re-written in GP to show some of the differences and similarities between Scratch and GP |
+ | {{:starting:examples:ponggp:screen1.png|}} | ||
There are 3 main differences between the two sets of code | There are 3 main differences between the two sets of code | ||
- The stage has been replaced by a single instance consisting of a red line | - The stage has been replaced by a single instance consisting of a red line | ||
- | - The costumes for the ball,padd and redline are drawn by GP itself | + | - The costumes for the ball,paddle and redline are drawn by GP itself |
- The forever loops have been replaced by while loops with waits at the end of the loops | - The forever loops have been replaced by while loops with waits at the end of the loops | ||
- The bouncing off the paddle code has been changed to reflect the difference in directions between Scratch and GP | - The bouncing off the paddle code has been changed to reflect the difference in directions between Scratch and GP |