From bf1cdb59c35f19c9dd4ce5ded5efdf1bfaf11795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 30 Jun 2019 01:08:13 +0300 Subject: [PATCH] Draw correct bg for slimes --- README | 1 + bundle/main.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README b/README index a589b00..ce0ccb0 100644 --- a/README +++ b/README @@ -13,6 +13,7 @@ Movement: j l m k . +space - do nothing for a turn r - restart q - quit c - configure keybindings diff --git a/bundle/main.lua b/bundle/main.lua index 6268911..d19a5e3 100644 --- a/bundle/main.lua +++ b/bundle/main.lua @@ -725,6 +725,8 @@ function drawCavern() love.graphics.setColor(0, 1, 0) love.graphics.ellipse('fill', x + 0.5 * x_scale, y + 0.5 * y_scale, 0.7 * x_scale/2, 0.7 * y_scale/2) elseif tile == tiletypes.slime then + love.graphics.setColor(0, 0, 0) + love.graphics.rectangle('fill', x, y, x_scale, y_scale) love.graphics.setColor(0, 0, 1) love.graphics.ellipse('fill', x + 0.5 * x_scale, y + 0.5 * y_scale, 0.8 * x_scale/2, 0.8 * y_scale/2) love.graphics.rectangle('fill', x + 0.1 * x_scale , y + 0.5 * y_scale, 0.8 * x_scale, 0.8 * y_scale/2) @@ -751,6 +753,8 @@ function drawCavern() love.graphics.setColor(0.2, 0.7, 0.2) love.graphics.ellipse('fill', x + 0.5 * x_scale, y + 0.5 * y_scale, 0.7 * x_scale/2, 0.7 * y_scale/2) elseif tile == tiletypes.slime then + love.graphics.setColor(0.2, 0.2, 0.2) + love.graphics.rectangle('fill', x, y, x_scale, y_scale) love.graphics.setColor(0.2, 0.2, 0.7) love.graphics.ellipse('fill', x + 0.5 * x_scale, y + 0.5 * y_scale, 0.8 * x_scale/2, 0.8 * y_scale/2) love.graphics.rectangle('fill', x + 0.1 * x_scale , y + 0.5 * y_scale, 0.8 * x_scale, 0.8 * y_scale/2)