Hold your fire, I'm doing most of this on my own.
I've already modded entity.lua and main.lua to tell the game there's another graphic for the gel dispenser. The game doesn't give me any errors on startup, and even recognizes that I want to assign a "graphic" rightclickvalue to the gel dispensers.
The problem is this line in geldispenser.lua:
Code: Select all
function geldispenser:draw()
if self.dir == "down" then
love.graphics.draw(geldispenserimg, math.floor((self.cox-xscroll-1)*16*scale), (self.coy-1.5)*16*scale, 0, scale, scale, 0, 0)
elseif self.dir == "right" then
love.graphics.draw(geldispenserimg, math.floor((self.cox-xscroll-1)*16*scale), (self.coy+.5)*16*scale, math.pi*1.5, scale, scale, 0, 0)
elseif self.dir == "left" then
love.graphics.draw(geldispenserimg, math.floor((self.cox-xscroll+1)*16*scale), (self.coy-1.5)*16*scale, math.pi*0.5, scale, scale, 0, 0)
end
end
Obviously, this is less of a problem with self-drawable entities that don't depend on physics code. :D
Any hints or tips are greatly appreciated.