[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] very easy snippets to start: where from i can get?
Maybe these examples will help you get an idea of simple Python
programming? They are based on ancient line-numbered BASIC
code which is in the Text Adventure Game book, linked to on the
web page:
http://www.geocities.com/ek.bhaaluu/python/index.html
There is no PyGame used in those games, but they should be
easy to read, since they are based on BASIC from the 80's.
I am a hobbyist programmer, so the Python code is not very Pythonistic.
However, the code runs okay on my GNU/Linux computer running
Python 2.4.4.
A very good PyGame tutorial is called
GAME PROGRAMMING by Andy Harris [ISBN-13: 978-0-470-06822-9]
All the source code for the PyGame example programs in the book are
located here::
http://www.cs.iupui.edu/~aharris/pygame/
That site also has some PowerPoint slides that cover the major points
that are in the book.
The best Python tutorial, IMHO, is PYTHON PROGRAMMING FOR THE
ABSOLUTE BEGINNER by Michael Dawson [ISBN-13: 978-1-59863-112-8].
Unfortunately, the source code for that book is not available anywhere
that I know of, however, you may be able to find some code snippets
if you do a Google Code Search:
http://www.google.com/codesearch/advanced_code_search
Of course, the PyGame site has some beginning tutorials:
http://www.python.org/
Also, this is a nice Python tutorial:
http://www.learningpython.com/
Especially interesting are the step-by-step tutorials
http://www.learningpython.com/2006/03/12/creating-a-game-in-python-using-pygame-part-one/
Happy Programming!
--
b h a a l u u at g m a i l dot c o m
Kid on Bus: What are you gonna do today, Napoleon?
Napoleon Dynamite: Whatever I feel like I wanna do. Gosh!
On Fri, Jul 25, 2008 at 7:12 AM, Paulo Silva <nitrofurano@xxxxxxxxx> wrote:
>
> my coding style (if it can be named as this) is deeply based on
> hobbystic ansi-basic from 80's - i'm a bit unknown of definitions, but
> maybe it's procedural (i can't find definition from google)?
>
> thanks!
> Paulo
>