Game Programming Section
Here you will find some code related to game programming, mostly
in Python and using PyGame (SDL Wrapper for Python). They are
not real games or projects, but examples to introduce people to
this wonderful area that is game programming. These examples
should be multiplataform, if you cannot run them on your
plataform, please contact-me. Note that some examples lack a
tutorial and some may have a tutorial, but in Portuguese, even
some comments are in this language, but the code itself is in
English and should be easy enough to learn by reading it.
Examples Description
- pingpong
-
This is a ping pong game, it's a simple example of dirty
rectangles, since it doesn't redraw the screen every
time. This example is easy enough to get started, it have
less than 500 lines of code.
- pingpong-net
-
This is a modified version of the aforementioned
pingpong, but this one is to be played over
network. It uses XML-RPC to avoid coding
protocols, thus making the development easier. This example
is a little more complex then the non-network version, but
it's still easy to understand and have less than 900 lines
of code.
- jogo
-
This is a complete tutorial of Game development, it gives an
overview on how to split up things, plan classes, make it
extensible, etc. It uses an incremental approach, each
version have a diff to the previous so you can see
more easily what changed. The tutorial itself is in
Portuguese, as the comments, but the code (variable,
methods, classes, ...) are in English, so you can follow it,
just read the code.
References