Skip to content

Instantly share code, notes, and snippets.

@dimmduh
Created June 12, 2012 11:58
Show Gist options
  • Save dimmduh/2917114 to your computer and use it in GitHub Desktop.
Save dimmduh/2917114 to your computer and use it in GitHub Desktop.
--usefull functions
function p(t)
print( t )
end
--@see http://lua-users.org/wiki/MathLibraryTutorial
math.randomseed( os.time() )
_W, _H = display.contentWidth, display.contentHeight
require "sprite"
require ("inc/utils");
require ("inc/worm");
require ("inc/enemygenerator");
--background
local bg = display.newImage("img/bg.png", 0, 0)
bg:toBack()
enemies = {}
local enemyGenerator = EnemyGenerator:new( { x = 0, y = _H / 2} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment