Page 2 of 2

Re: How to write this code in LUA?

Posted: Mon Mar 14, 2011 7:56 pm
by BlackBulletIV
And also the createEnemy() function is made pretty pointless. You could just these forms:

Code: Select all

Enemy(x1, x2, y1, y2) -- or...
Enemy:new(x1, x2, y1, y2)