Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3409fdfa73
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.436 kb
Beach = class("Beach", Entity)
function Beach:initialize(position, tiles)
self.position = position
self.tiles = tiles
end
function Beach:draw()
love.graphics.push()
for x, row in pairs(self.tiles) do
for y, c in pairs(row) do
game.renderer:rectangle('fill', {255, 255, c, 255}, x-1, y-1)
game.renderer:print('.', {55, 55, 0, 240}, x-1, y-1)
end
end
love.graphics.pop()
end
function Beach:update()
end
Jump to Line
Something went wrong with that request. Please try again.