archiemacintosh
Posts: 4
Joined: Sun Aug 11, 2013 5:01 pm

Gaming with pygame

Sun Aug 25, 2013 5:30 pm

I got my RPi for my birthday and have been programming with it ever since, lately I've tried programming a game - Snake or Nibbles. When I select the Run Module Shell appears and so does the game window but nothing else happens! Please help!!!

technoducky
Posts: 62
Joined: Sat Jan 26, 2013 7:29 pm
Contact: Website

Re: Gaming with pygame

Wed Sep 11, 2013 9:51 am

Some code may help.

User avatar
winkleink
Forum Moderator
Forum Moderator
Posts: 288
Joined: Mon Nov 07, 2011 9:12 am
Location: UK
Contact: Website

Re: Gaming with pygame

Wed Sep 11, 2013 10:12 am

Need a bit more information.
Is this a program you are creating yourself or one you are typing from another source (book,..)
Usually a terminal window will appear with an error message in it that you need to take into account.

Let us know what the error message is.
Also, if this is a program you are copying see if there are any references to troubleshooting it online.

The simplest way to see where your program is failing is by adding print statement through your code so you can see which bits are being executed OK before the code fails.

Finally, as per technoducky. Copy and Paste your code so we can see what may be causing the error.
Twitter:Winkleink
Google+: Winkleink

archiemacintosh
Posts: 4
Joined: Sun Aug 11, 2013 5:01 pm

Re: Gaming with pygame

Sat Sep 14, 2013 4:48 pm

I'm using the example from The Raspberry Pi User Guide, thanks for the tip I'll try looking up Troubleshooting.

Return to “General programming discussion”