pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Shadows

Shadows - beta 1

John Eriksson (wmjoers)

Tags:

Description

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

Links

Home Page: http://arainyday.se
Source: http://arainyday.se/projects/python/Shadows/Shadows.py

Screenshot


click to view original size

Releases

Shadows - beta 1 - Aug 25, 2006

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

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