-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
54 lines (33 loc) · 993 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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]