Archive | Python

14 August 2009 ~ Comments Off

PyGame Tutorials Update

So,  I created a dedicated repository on github to host the source code of my PyGame Tutorials Serie
You can clone all the tutorials using the following command :

git clone git://github.com/ncrovatti/Pygame-Tutorials.git

You can also browse the complete sources and ressources from the github repository if you prefer.
Eventually you will be able to see the upcoming tutorials [...]

Continue Reading

Tags: ,

11 August 2009 ~ 23 Comments

PyGame – Event Handling

PyGame – Event Handling

Introduction
To continue further into my PyGame exploration articles and tutorials,  I’ll try to come up with a complete Shmup game as example. I already covered Animated sprites and Parallax Scrolling in 2D games as a start you can look at the PyGame tutorials list page to see them all.
The goal of this article is [...]

Continue Reading

08 August 2009 ~ 5 Comments

PyGame – Parallax Scrolling in 2D games

PyGame – Parallax Scrolling in 2D games

Hi fellow reader, to start this article let me define what Parallax Scrolling is :
Parallax scrolling is a special scrolling technique in computer graphics, seen first in the 1982 arcade game Moon Patrol. In this pseudo-3D technique, background images move by the “camera” slower than foreground images, creating an illusion of depth in a 2D [...]

Continue Reading

22 July 2009 ~ 5 Comments

PyGame and Animated Sprites – Take 2

PyGame and Animated Sprites – Take 2

I made a demo to better illustrate the topic covered in my previous post : PyGame and Animated Sprites
Here’s a screenshot of the application :

Download the Source code of the demo :
explosion-spritetar.tar.gz

Continue Reading

21 July 2009 ~ 2 Comments

PyGame and Animated Sprites

An animated sprite is a serie of the same image slightly modified and displayed at a certain framerate per second.

Sample 5 frames Sprite representation:
—————————————–
|   1   |   2   |   3   |   4   |   5  |
| 16×16 | 16×16 | 16×16 | 16×16 | 16×16 |
|       |       |       |       |      |
—————————————–
For a  given framerate set [...]

Continue Reading

21 July 2009 ~ 2 Comments

Gama: Pythonic Shiny Thing

Gama: Pythonic Shiny Thing

Hello dear Shiny reader,
I just started learning Python a couple weeks ago. Well, I’m amazed. Pyhton’s Oriented Object Model is really flawless from my point of view. Multi-Heritance is like bottled awesomeness.
As a start project, I’m currently building a 2D RTS game/simulation named Gama using PyGame and GameObjects while following extremely good tutorials from It’s [...]

Continue Reading

Tags: , ,