aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elements.lua18
-rw-r--r--virus1.lua18
2 files changed, 18 insertions, 18 deletions
diff --git a/elements.lua b/elements.lua
index 976e1c1..1471e3e 100644
--- a/elements.lua
+++ b/elements.lua
@@ -48,3 +48,21 @@ function drawBlueBox(x, y, w, h, t)
love.graphics.setColor(0, 0, 80)
love.graphics.line(x, y+h, x+w, y+h, x+w, y)
end
+function drawBubble(x,y,w,h,m)
+ love.graphics.setColor(255,255,255)
+ love.graphics.rectangle("fill", x+20, y, w-40, h)
+ love.graphics.rectangle("fill", x, y+20, w, h-40)
+ love.graphics.draw(v1.corner, x, y, 0, 2)
+ love.graphics.draw(v1.corner, x+w, y, 0, -2, 2)
+ love.graphics.draw(v1.corner, x+w, y+h, 0, -2, -2)
+ love.graphics.draw(v1.cornerSpike, x, y+h-20, 0, 2)
+ love.graphics.setColor(0,0,0)
+ love.graphics.setLineWidth(1.5)
+ love.graphics.line(x+20, y+1, x+w-20, y+1)
+ love.graphics.line(x+30, y+h-1, x+w-20, y+h-1)
+ love.graphics.line(x+1, y+20, x+1, y+h-20)
+ love.graphics.line(x+w-1, y+20, x+w-1, y+h-20)
+ love.graphics.setFont(pixeloperator)
+ love.graphics.printf(m,x+15,y+15,w-30)
+ love.graphics.setFont(pressstart)
+end
diff --git a/virus1.lua b/virus1.lua
index 16e9904..7cbac88 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -268,24 +268,6 @@ function drawVirusFight1()
end
drawBullets()
end
-function drawBubble(x,y,w,h,m)
- love.graphics.setColor(255,255,255)
- love.graphics.rectangle("fill", x+20, y, w-40, h)
- love.graphics.rectangle("fill", x, y+20, w, h-40)
- love.graphics.draw(v1.corner, x, y, 0, 2)
- love.graphics.draw(v1.corner, x+w, y, 0, -2, 2)
- love.graphics.draw(v1.corner, x+w, y+h, 0, -2, -2)
- love.graphics.draw(v1.cornerSpike, x, y+h-20, 0, 2)
- love.graphics.setColor(0,0,0)
- love.graphics.setLineWidth(1.5)
- love.graphics.line(x+20, y+1, x+w-20, y+1)
- love.graphics.line(x+30, y+h-1, x+w-20, y+h-1)
- love.graphics.line(x+1, y+20, x+1, y+h-20)
- love.graphics.line(x+w-1, y+20, x+w-1, y+h-20)
- love.graphics.setFont(pixeloperator)
- love.graphics.printf(m,x+15,y+15,w-30)
- love.graphics.setFont(pressstart)
-end
function addBullet(x,y,a,s,t)
if t == "av" then
table.insert(av.bullets, 1, {x=x,y=y,a=a,s=s,spx=0,spy=0,rm=false})