Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Tests with dynamic lighting for 2D sprites

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 BeamObject.py
Octocat-spinner-32 DraggableNode.py
Octocat-spinner-32 GameObject.py
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Scene.py
Octocat-spinner-32 main.py
Octocat-spinner-32 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.