Code: [Select]function LevelLogic() while GameRunning() do Timer = GetGameTime() if LoopTime < Timer then GetAsteroid(0):AddSeedlings(1,2,1,1,1) LoopTime = LoopTime + 1 end coroutine.yield() endend
function LevelLogic() while GameRunning() do Timer = GetGameTime() if LoopTime < Timer then GetAsteroid(0):AddSeedlings(1,2,1,1,1) LoopTime = LoopTime + 1 end coroutine.yield() endend
function LevelSetup() -- Set Global Values Globals.G.Asteroids=(0) Globals.G.EnemyFactionsMin=(0) Globals.G.EnemyFactionsMax=(0) -- Asteroid 0 - starting asteroid a = AddAsteroidWithAttribs(0,0, 0.7,0.6,0.5) a.Owner = 1 a.TreeCap = 1 a:SetRadius(250) a.SendDistance = 2500 a:AddSeedlings(90,1,1,1,1)LoopTime = 0 endfunction LevelLogic() while GameRunning() do Timer = GetGameTime() if LoopTime < Timer then GetAsteroid(0):AddSeedlings(1,2,1,1,1) LoopTime = LoopTime + 1 end coroutine.yield() endend