forked from vsergeyev/Rain
-
Notifications
You must be signed in to change notification settings - Fork 0
Rain Lua class to use with Corona SDK
License
zefranck/Rain-Snow-in-Lua-for-Corona-sdk
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Rain/Snow Lua class to use with Corona SDK ========================================== It is about creating rain or snow effect in your iPhone games. Play with drop width/length/color/speed :) Basic usage =========== local rain = require("rain") rain.new(group, {}) Pause rain ---------- rain.pause() Resume rain ----------- rain.resume() You can find example of usage in `main.lua` file. It is fully working example so just run it in the emulator. Rain config =========== Rain construction accepts several params: * snow - optional, make snow not rain * angle - rain angle, degrees * toRight - boolean, if rain is from left to right. Default is from right to left * speed - drop movement speed, float * floor - Y coord to specify your ground/bottom * length - drop length * width - drop thickness * alpha - transparency of the drop * color - drop color, defaulu is white * count - drops count to create Original version ================ Thanks to Vova Sergeyev (pydevside@gmail.com) ;)
About
Rain Lua class to use with Corona SDK
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Lua 100.0%