Pages

Sunday, May 20, 2012

Pygame

I've written two games in python with pygame module for my classes at university. They are clones of well known titles - SpaceInvaders and Arkanoid. Pygame is quite nice wrapper for well known SDL library, designed for writting 2d games. Unfortunately it has poor performance due to problems with (the lack of) hardware acceleration. Python isn't the demon of speed too. However, it is very intuitive and simple to learn. Just enough for prototyping and simple applications.
To run the games you need 32-bit version of python3.2 and appropriate version of pygame.

Monday, December 5, 2011

Fighting with OpenGL #2

I've got a new version of my 'engine'. I've rewritten a quite big part of code and added a few new features. Among others:
+directional and ambient lighting
+materials (currently just framework)
+procedurally generated meshes (box and sphere)
+integrated zlib and pnglib

I have some fun with generating a sphere mesh. I am starting from the octahedron, tessalates it few times and normalizes new vertices, so they "puffs" creating more and more precise sphere model. I've got many problems with generating indices for those vertices, but at last I've managed to do it.

Thursday, October 20, 2011

Fighting with OpenGL #1

After a long break, I return to 3d graphics programming. An application, which you see on the picture at right, is a demo of my 3d engine (I know that some may smiling now...). The screen shows a simple diffuse-shadowed cube, rendered with the use of the light pre-pass technique. First it renders the geometry (depth and normals) to one texture, next computes lighting from this texture and store in in the other one. In the last phase, geometry is rendered once more, but now all required information are available (e.g. information about lights), so we get final result.

Saturday, October 1, 2011

Pacman #4

I've send my pacman game on WSoC. It is compo organised by community of http://warsztat.gd/. I won't probably develop the game more, so there is wsoc version.

Wednesday, September 21, 2011

Pacman #3

OK, version 1.9 is there. Major changes are:
+added "shield" when the ghost hit us,
+added fruits, when you eat fruits you get extra points and sometimes a bonus and from time to time a penalty,
+added bonuses (high speed, double points, lives),
+game is more balanced than previously
+fixed some minor bugs.

Friday, September 16, 2011

Pacman #2

There is new version of my pacman game. Exactly it is a level editor and the gameplay is locked. You can download it from here and play a while.
LMB - add object
RMB - remove object
1 - 8 - change object type
R/F - change color
A/D - prev/next level
0 - eraser
Enter - save

Wednesday, September 14, 2011

Pacman #1

I've finished first version of my pacman game. You can download it from here. This is clone of the game (one of my favourites) from Commodore 64, which I played when I was young. The game requires OpenGL 3.3 compatible graphic card.