shifty1966
Posts: 23
Joined: Wed Dec 26, 2012 1:26 pm
Location: Derbyshire

pygame

Sun Mar 03, 2013 5:24 pm

I'm using the pre-loaded SD card from element14. Does it have pygame included? If so, is does anyone know of a really simple (as in complete programming novice) user guide for it.

If it isn't included, is there a similarly numpty-proof guide to installing it onto either the card or a flash drive?

Thanks, and apologies for being a bit useless.

gordon77
Posts: 4177
Joined: Sun Aug 05, 2012 3:12 pm

Re: pygame

Sun Mar 03, 2013 5:41 pm

I don't know if its that version but it is in the latest if you install that. Note its for python 2.7 not v3.

Gordon77

gordon77
Posts: 4177
Joined: Sun Aug 05, 2012 3:12 pm

Re: pygame

Sun Mar 03, 2013 5:57 pm

I found this useful to get started

http://inventwithpython.com/pygamecheatsheet.png

shifty1966
Posts: 23
Joined: Wed Dec 26, 2012 1:26 pm
Location: Derbyshire

Re: pygame

Sun Mar 03, 2013 6:04 pm

Got to say that cheatsheet looks a bit busy and intimidating for a complete novice. Thanks for taking the time though.

gordon77
Posts: 4177
Joined: Sun Aug 05, 2012 3:12 pm

Re: pygame

Sun Mar 03, 2013 6:30 pm

OK. I found it a good reference.

Are you trying to do anything in particular ?

Gordon77

shifty1966
Posts: 23
Joined: Wed Dec 26, 2012 1:26 pm
Location: Derbyshire

Re: pygame

Sun Mar 03, 2013 6:51 pm

Just been following the Python exercises in the first couple of issues of The MagPi. Still don't know enough about programming to try anything off my own bat.

I'd never done any programming at all before getting my Pi, so it really does need to be as basic (no pun intended) as possible.

shifty1966
Posts: 23
Joined: Wed Dec 26, 2012 1:26 pm
Location: Derbyshire

Re: pygame

Sun Mar 03, 2013 7:27 pm

Having just been looking through the Python Pit articles in the pdf's of The MagPi, it looks like I may need to rethink things.

Other than the very first issue, it looks like some prior knowledge of programming is needed, which I don't have.

I was hoping to be able to avoid spending 30-odd quid on a book in order to learn Python, but it's looking at the moment like I might just have to bite the bullet.

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: pygame

Sun Mar 03, 2013 8:05 pm

Around the time I got my first Pi, last april, it was my birthday, so I asked for a particular python book, as its always difficult to buy a present for the guy who has everything ;)
Anyway, I got a quarter of the way throught it, but now whenever I,m trying to do something in particular, I just google it. There's loads of tutorials and help out out there.
And python is so versatile too - with plenty of add on libraries and tools. So if you want to avoid spending any money, you don't need to.
Then again, it is nice to have a book sometimes.............

Texy ;)
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

shifty1966
Posts: 23
Joined: Wed Dec 26, 2012 1:26 pm
Location: Derbyshire

Re: pygame

Sun Mar 03, 2013 8:11 pm

My problem is, because I'n completely new to programming, not just to Python, I really need to learn from the ground up. That being the case I can't just think of a project and work out how to get there as I don't even understand the basics of programming.

A real "idiot's guide" is what's needed :lol:


Philly
Posts: 8
Joined: Thu Feb 28, 2013 9:17 pm

Re: pygame

Sun Mar 03, 2013 8:59 pm

I too am a complete novice, I got the book Raspberry PI User Guide by Eben Upton and Gareth Halfacree which I have found very usefull.

Part of it explains some basic python code that prints "Hello World" plus making a simple calculator, making a snake game and a program to monitor users connected to an internet relay chat channel.

It also mentions further reading at
The official Beginners Guide to Python at http://wiki.python.org/moin/BeginnersGuige

Other places are mentioned as well.

As I said, as a complete novice I recommend this bit of reading.

Hope this helps

Phil

Philly
Posts: 8
Joined: Thu Feb 28, 2013 9:17 pm

Re: pygame

Sun Mar 03, 2013 9:03 pm

whoops typo should have been

http://wiki.python.org/moin/BeginnersGuide

soz :)

User avatar
croston
Posts: 703
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: pygame

Sun Mar 03, 2013 9:05 pm

Or there is the Raspberry Pi Educational Manual:
http://downloads.raspberrypi.org/Raspbe ... Manual.pdf

shifty1966
Posts: 23
Joined: Wed Dec 26, 2012 1:26 pm
Location: Derbyshire

Re: pygame

Mon Mar 04, 2013 6:03 am

I've got the Raspberry Pi user guide. It seems OK as far as it goes, but doesn't really explain why you're doing what you're doing, so although I could do the exercises, I didn't come away with much of an understanding.

I'll give the Educational Manual a go and see how I get on.

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: pygame

Mon Mar 04, 2013 4:52 pm

Maybe try this http://learnpythonthehardway.org/

The 'official' Python tutorial is not too bad either (but then again, I have previous programming experience from other languages, so might not see this similarly) http://docs.python.org/2/tutorial/
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

User avatar
BirchJD
Posts: 158
Joined: Tue Nov 13, 2012 7:43 pm

Re: pygame

Mon Mar 04, 2013 8:02 pm

I think this series of videos are very good. And you can pause and rewind which is very helpful:

http://www.youtube.com/playlist?list=PL ... GdEP3bAWzO
http://www.newsdownload.co.uk/

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

Re: pygame

Mon Mar 04, 2013 8:55 pm

At the link there are 2 books available as PDF downloads and of you like them you can buy the print versions on Amazon.

Invent Your Own Computer Games with Python
Gives a great introduction to Python and assumes no knowledge.

Making Games with Python & Pygame
This obviously covers pygame.
The games are actually the ones provided in the Raspbian distro so you would have the source if you have Raspbian.

The pair of these books are great.
http://inventwithpython.com/
Twitter:Winkleink
Google+: Winkleink

Return to “Python”