Last active
January 8, 2019 21:12
-
-
Save Minstfm/88cd321d9a56271a08204a719cc110d5 to your computer and use it in GitHub Desktop.
Falling Snow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p={} | |
function tabla() | |
rX, rY = 100, 100 | |
for i = 0,30 do | |
p[i]={ | |
xIni=math.random(400-rX*4,400+rX*4), yIni=math.random(100-rY*2,100+rY*2) | |
} | |
end | |
end | |
tabla() | |
function eventLoop() | |
for i=0,30 do | |
tfm.exec.displayParticle(0,p[i].xIni,p[i].yIni,0,math.random(0,2),0,0,name) | |
p[i].xIni, p[i].yIni = math.random(400-rX*4,400+rX*4), math.random(100-rY*2,100+rY*2) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment