aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets.lua4
-rw-r--r--assets/eye_thing.pngbin0 -> 1751 bytes
-rw-r--r--assets/virus1_idle_noeye.pngbin0 -> 1662620 bytes
-rw-r--r--assets/virus1_pupil.pngbin0 -> 272 bytes
-rw-r--r--virus1.lua2
5 files changed, 5 insertions, 1 deletions
diff --git a/assets.lua b/assets.lua
index cf7bf30..c337a97 100644
--- a/assets.lua
+++ b/assets.lua
@@ -105,7 +105,9 @@ function loadAssets()
v1.c.chat.char = 0
v1.c.idle = {}
v1.c.idle.fs = {}
- v1.c.idle.pic = love.graphics.newImage("assets/virus1_idle.png")
+ v1.c.idle.pic = love.graphics.newImage("assets/virus1_idle_noeye.png")
+ v1.c.pupil = love.graphics.newImage("assets/virus1_pupil.png")
+ v1.c.eye = love.graphics.newImage("assets/eye_thing.png")
v1.c.idle.f = 1
loadAnimation(v1.c.idle.pic, v1.c.idle.fs, 98, 10, 200, 200)
v1.c.monitorspin = {}
diff --git a/assets/eye_thing.png b/assets/eye_thing.png
new file mode 100644
index 0000000..d7e6a23
--- /dev/null
+++ b/assets/eye_thing.png
Binary files differ
diff --git a/assets/virus1_idle_noeye.png b/assets/virus1_idle_noeye.png
new file mode 100644
index 0000000..4d4c237
--- /dev/null
+++ b/assets/virus1_idle_noeye.png
Binary files differ
diff --git a/assets/virus1_pupil.png b/assets/virus1_pupil.png
new file mode 100644
index 0000000..7cf7b36
--- /dev/null
+++ b/assets/virus1_pupil.png
Binary files differ
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)