Platformer game engine (a proper one, really!)

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Platformer game engine (a proper one, really!)

Post by Jasoco »

I would think it'd be easier and faster to just do:

Code: Select all

love.graphics.drawq = love.graphics.drawq or love.graphics.draw
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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 211 guests