Re: Platformer game engine (a proper one, really!)
Posted: Tue Aug 04, 2015 9:03 pm
I would think it'd be easier and faster to just do:
You wouldn't need to replace love.graphics.draw or use unpack every time you draw something.
Untested of course, but it should work. Since drawq was removed and draw was given the ability to detect when the second argument is a quad and automatically uses quad drawing in that case. So it's the only change really. So the code above should work if placed right at the top of main.lua.
Code: Select all
love.graphics.drawq = love.graphics.drawq or love.graphics.draw
Untested of course, but it should work. Since drawq was removed and draw was given the ability to detect when the second argument is a quad and automatically uses quad drawing in that case. So it's the only change really. So the code above should work if placed right at the top of main.lua.