https://github.com/shillysit/lit
A simple lighting engine for FlashPunk
https://github.com/shillysit/lit
Last synced: 3 months ago
JSON representation
A simple lighting engine for FlashPunk
- Host: GitHub
- URL: https://github.com/shillysit/lit
- Owner: SHiLLySiT
- Archived: true
- Created: 2013-06-27T01:31:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-29T06:50:06.000Z (almost 12 years ago)
- Last Synced: 2025-01-27T13:15:26.317Z (4 months ago)
- Language: ActionScript
- Size: 2.27 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lit
A simple lighting engine for FlashPunk.#### Features
* only the lights on screen are rendered
* supports different light images
* supports rotating lights#### Usage
Create a new lighting object and add it to the world:
```ActionScript
add(lighting = new Lighting(FP.screen.width, FP.screen.height));
```Then add some lights to it:
```ActionScript
var image:Image = new Image(LIGHT);
lighting.add(new Light(100, 100, image))
```#### Tips
* make lights rotate by changing their "rotate" property
* toggle lights on and off by setting their "active" property# Changelog
Version 1.0.0 (June 27th, 2013)
* Initial Commit