From 8725935026565e3a0398041be41307f9587d2f9d Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Sun, 24 Apr 2016 13:58:13 -0700 Subject: Moved chat bubble code to elements.lua --- virus1.lua | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'virus1.lua') 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}) -- cgit