pygame is
Simple DirectMedia Layer is
Site Swing

Shadows - beta 1

John Eriksson (wmjoers)



Small demo that shows a way to implement some nice light masking. Draw obstacles with the mouse. Move the light with the arrow keys.


Home Page:


click to view original size


Shadows - beta 1 - Aug 25, 2006 account Comments

If you wish to leave a comment with your account, please sign in first.

July 30, 2008 1:47am - Jordan Trudgett - nickname: (tgfcoder)
Really nice :) Now all you need to do is..
1) trace rays in 60 degrees rather than 360.. for the way the guy is facing..
2) create epic first person shooter

Easy! XD
August 26, 2006 4:07pm - Pete Shinners - nickname: (shredwheat) - 4/5
This is smooth. I need to investigate the code so I can understand how to do this myself.
August 25, 2006 6:45pm - Richard Jones - nickname: (richard)
It also looks similar to the shadowing used in Phil Hassey's LD48 entry Escape from Anathema Mines. Your code is very readable. Why not add it to the cookbook? It's short enough...
August 25, 2006 2:20pm - Matti Eiden - nickname: (snaip) - 5/5
Nice work, reminds me a lot of the lightning used in Nox. Yep yep, very nice indeed.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)