Tutorial
Write your own Raspberry Pi game
Step 09 — Edge detection
We want our fish to reappear if it hits the side of the screen. Drag an “if” block from Control inside the “forever” block, then go to the Sensing category and drag the “touching” block onto the “if”. Select “Edge” from the “touching” dropdown. Drag in a “go to x & y” block from Motion and configure it as in step 8.advertisement
Latest Features
- The world's most powerful computers
- Rise of the code schools
- Create a Python game for the Raspberry Pi
- Develop your skills in ICT
- Buyer's guide to tablets
- BenQ MW860USTi vs SMART LightRaise 40wi
- Buyer's guide to foreign language software
- Buyer's guide to all-in-one inkjet printers
- Buyer's guide to high-performance media PCs
- Five inspiring websites for ICT projects
- Hands on with the new Google Maps
- Nokia Lumia 925 review: first look
- Why I won't subscribe to Creative Cloud
- GoPro camera strapped to a remote-control helicopter: the ultimate boy's toy
- Acer Iconia A1 review: first look
- Acer Aspire P3 review: first look
- Acer Aspire R7 review: first look
- How we produce the PC Pro podcast
- Google Now draining iPhone battery
- The government website that doesn't work with IE, Chrome, Firefox, Safari, Macs or smartphones
advertisement
Sponsored Links



















