Skip to main content

Surface-based destructible terrain

A surface-based method of handling destructible terrain.


Francesco Mastellone
(effeemme)
For an hypothetic nonexistent reader who can't figure the twenty lines of code out, this simply blits a circle of X color onto a surface whose colorkey was previously set to X.

Coming up: destructible terrain based on rectangle subdivision. It's better than the surface approach if you actually want this terrain to be useful for stuff like checking whether a platformer character is on it.

The spiffy terrain images are GIMP-powered. Clouds are brushes on a gradient, terrain is brushes, smudges, and unsharp masking.

Links

Home Page
http://www.istillhavegotnohomepage.it

Releases

Surface-based destructible terrain 1.0 — 30 Sep, 2008

Pygame.org account Comments