edtris/game/tiles.fnl
2021-02-07 16:56:19 -05:00

17 lines
447 B
Fennel

(local tiles
[{:name :empty
:draw (fn [])}
{:name :strongwall
:draw (fn [x y w h]
(love.graphics.setColor 0.4 0.4 0.4)
(love.graphics.rectangle :fill x y w h))}
{:name :weakwall
:draw (fn [x y w h]
(love.graphics.setColor 0.4 0.4 0.4)
(love.graphics.rectangle :fill x y w h))}
{:name :dot
:draw (fn [x y w h]
(love.graphics.setColor 1 1 1)
(love.graphics.circle :fill x y w 5))}
])