aboutsummaryrefslogtreecommitdiff
path: root/virus1.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-19 19:28:51 -0700
committer1029chris <1029chris@gmail.com>2016-04-19 19:28:51 -0700
commit52aabb377965f327cf580c5d183e3265d686ddf5 (patch)
treefb15f8089f565f4819d81c7ed6f1797a6b668d9a /virus1.lua
parent37f3f6f4a8fb8f84f46d8f31f469721604a5cc08 (diff)
Added movable eye to virus
Diffstat (limited to 'virus1.lua')
-rw-r--r--virus1.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/virus1.lua b/virus1.lua
index 662a143..de67b9d 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -36,6 +36,8 @@ function drawVirusFight1()
love.graphics.setColor(0,0,0,100)
playAnimation(v1.c.idle, true, v1.c.x-40, v1.c.y+40, v1.c.r, v1.c.s, 100, 100, 0.5)
love.graphics.setColor(255,255,255)
+ love.graphics.draw(v1.c.eye, v1.c.x-32, v1.c.y-50, v1.c.r, v1.c.s*0.9, v1.c.s*1.1)
+ love.graphics.draw(v1.c.pupil, v1.c.x+7+math.random(0,0.5), v1.c.y-28+math.random(0,0.5), v1.c.r, v1.c.s*1.2, v1.c.s*1.2, 3, 11)
playAnimation(v1.c.idle, true, v1.c.x, v1.c.y, v1.c.r, v1.c.s, 100, 100, 0.5)
if v1.c.shine.s < -50 and v1.msgs[v1.c.chat.msgs] ~= nil then
drawBubble(v1.c.x+40, v1.c.y-165, 300, 110, v1.c.chat.msg)