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
--# Particle | |
Particle = class() | |
--Class to deal with individual particles. Used for the starburst and raindrops | |
function Particle:init(x,y,xspd,yspd,type,fade) | |
-- you can accept and set parameters here | |
--map to the position of the 100 by 100 blocks in the sprite sheet. The location in the array refers to the type of particle | |
local map={} | |
map[1]={x=0, y=4}--stars | |
map[2]={x=2, y=4}--rain |