walls are white now lol

This commit is contained in:
Simon Kellet 2024-04-21 13:51:15 +01:00
parent 6915ac4ca2
commit 26acaad763

View File

@ -8,10 +8,6 @@ function Wall:new(x, y, w, h, lifetime)
self.lifetime = lifetime
end
function lerp(a, b, t)
return a + (b - a) * t
end
function Wall:update(dt)
--slowly decrease the lifetime of the wall
self.lifetime = self.lifetime - dt
@ -26,7 +22,7 @@ function Wall:update(dt)
end
function Wall:draw()
local rectangleColor = { 1, 0, 0 } -- Starting color (red)
local rectangleColor = { 1, 1, 1 }
love.graphics.setColor(rectangleColor) --white
love.graphics.rectangle("fill", self.x, self.y, self.w, self.h)
end