Tutorial
Write your own Raspberry Pi game
Step 10 — Variables
Click on Variables and then the “Make a Variable” button. Call it “Score”. The score will now appear in the top-left corner of the game screen. Add a new “when ‘space’ key pressed” block from Control, clip on a “forever if” block; now go to Sensing and drag in a “touching” block. Choose “shark” from the dropdown.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
- Adobe Dreamweaver CC review: first look
- Huawei Ascend P6 review: first look
- Adobe Illustrator CC review: first look
- Let MPs tell us what they really want ISPs to block
- Adobe Photoshop CC review: first look
- WWDC 2013 and iOS 7 launch: live blog
- Sony VAIO Pro review: first look
- Want child porn blocked? Meet the IWF
- Is it worth upgrading a media centre to Windows 8?
- Flickr redesign: is it enough to tempt photographers back?
advertisement
Sponsored Links



















