Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tests with dynamic lighting for 2D sprites
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
BeamObject.py
DraggableNode.py
GameObject.py
LICENSE
README.md
Scene.py
main.py
sprite.png

README.md

Fun with dynamic lighting for 2D scenes.

Instructions

  • Click and drag the red handles to move lights/sprites
  • 'q' to toggle handles on/off
  • 'space' to add a new light under cursor
  • 'd' to delete the object attached to the node under cursor
  • 's' to add a sprite under the cursor
  • 'c' to view debug info about the light at cursor's position

Requires Python + Pygame!

TODO:

  • Blend lights' colors
  • Give direction to lights
  • Take lights' variance into account
  • More realistic calculation for light value depending on position in beam
  • More!
Something went wrong with that request. Please try again.