How to write this code in LUA?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: How to write this code in LUA?

Post 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)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests