edtris/game/tiles.fnl

17 lines
447 B
Plaintext
Raw Normal View History

2021-02-07 21:56:19 +00:00
(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))}
])