View main.lua
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
math.randomseed( os.time( ) ) | |
a={} | |
i=0 | |
x1=0 | |
y1=0 | |
function trans2(self,theX,theY) | |
local xx = self.x | |
local yy = self.y |
View main.lua
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
starCtr = 0 | |
stars = {} | |
currTransSpeed = 500 | |
displayHeight = display.contentHeight | |
math.randomseed( os.time() ) | |
local function removeMe() --remove stars after reaching end of screen | |
for i=1,1100 do | |
if stars[i] ~= nil then | |
if stars[i].y >= displayHeight then |
View main.lua
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
currColor = "white" | |
local function save( ) | |
display.save( allGroup, "group.jpg" ) | |
end | |
local function loadVars(theSize) | |
math.randomseed( os.time( ) ) | |
allGroup = display.newGroup() | |
rectangles = {} | |
currW = theSize |