Draw correct bg for slimes

This commit is contained in:
Juhani Krekelä 2019-06-30 01:08:13 +03:00
parent 2935139060
commit bf1cdb59c3
2 changed files with 5 additions and 0 deletions

1
README
View File

@ -13,6 +13,7 @@ Movement:
j l
m k .
space - do nothing for a turn
r - restart
q - quit
c - configure keybindings

View File

@ -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)