Skip to content

zefranck/Rain-Snow-in-Lua-for-Corona-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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


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

No packages published

Languages

  • Lua 100.0%