Skip to content

vsergeyev/Rain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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


Any suggestions?
================

Vova Sergeyev, [email protected]

About

Rain Lua class to use with Corona SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages