aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-13 11:40:20 -0700
committer1029chris <1029chris@gmail.com>2016-04-13 11:40:20 -0700
commit85a2c861b5f49a12a46949b46b12d68f1f4359e6 (patch)
tree3e184442500cdaeaf317e96748120b033fcad8de
parent0b398a513a2b0114d424dbb650e9ed22d1ff7bfb (diff)
Added separate dialogue.lua file
Also, added more dialogue for Besr Friend Started adding some for the Virus.
-rw-r--r--assets.lua1
-rw-r--r--chat.lua2
-rw-r--r--dialogue.lua31
-rw-r--r--main.lua2
-rw-r--r--var.lua8
5 files changed, 35 insertions, 9 deletions
diff --git a/assets.lua b/assets.lua
index 1233797..14ed146 100644
--- a/assets.lua
+++ b/assets.lua
@@ -95,6 +95,7 @@ function loadAssets()
corner = love.graphics.newImage("assets/chat_bubble_corner.png"),
cornerSpike = love.graphics.newImage("assets/chat_bubble_cornerspike.png")
}
+ v1.msgs = {}
v1.c = {}
v1.c.idle = {}
v1.c.idle.fs = {}
diff --git a/chat.lua b/chat.lua
index 2a4455c..2405948 100644
--- a/chat.lua
+++ b/chat.lua
@@ -45,7 +45,7 @@ function sendMessage(id, message)
if win[1].ex == true or layer[1] ~= 1 then
notifyNow("CHAT NOTIFICATION", "New message from\nBest Friend:\n\n" .. message)
end
- if msg.c ~= 8 then
+ if msg.c ~= 21 then
msg.c = msg.c + 1
end
end
diff --git a/dialogue.lua b/dialogue.lua
new file mode 100644
index 0000000..00b5062
--- /dev/null
+++ b/dialogue.lua
@@ -0,0 +1,31 @@
+function loadDia()
+ msgs[1] = "Hey, Wazzup?"
+ msgs[2] = "Did you hear the news?"
+ msgs[3] = "There's a new Duty of Call game!"
+ msgs[4] = "It looks so cool!!"
+ msgs[5] = "Dude, u GOTTA check it out!"
+ msgs[6] = "Want to get it free?"
+ msgs[7] = "Search this on the web:"
+ msgs[8] = "www.freedownloads.com"
+ msgs[9] = "Are you checking it out??"
+ msgs[10] = "Go get it free! ITS SO GOOD!"
+ msgs[11] = "COME ON!! www.freedownloads.com"
+ msgs[12] = "The game depends on this!"
+ msgs[13] = "www.freedownloads.com OR ELSE!!"
+ msgs[14] = "Are u just gunna do nothing?"
+ msgs[15] = "Don't u want to play the game?"
+ msgs[16] = "WHAT'S TAKING U SO LONG!?"
+ msgs[17] = "www.freedownloads.com PLEASE!"
+ msgs[18] = "My very existence depends on u!"
+ msgs[19] = "I was created so you'd do this."
+ msgs[20] = "PLEASE Let me fulfill my purpose!"
+ msgs[21] = "www.freedownloads.com or I die."
+ v1.msgs[1] = "Well well well, who do we have here? Oh, and before I forget... Press ENTER to see my next message."
+ v1.msgs[2] = "Cliche introductions out of the way, I'm here to take over your computer!"
+ v1.msgs[3] = "Who the hell uses www.freedownloads.com anyways? How stupid are you?"
+ v1.msgs[4] = "Well, this shouldn't be too hard then. From this point forward, this computer is MINE! Ha! HAHA!"
+ v1.msgs[5] = "Don't even try fighting back! I'm the strongest virus out there!"
+ v1.msgs[6] = "Huh?"
+ v1.msgs[7] = "Antivirus huh? Maybe you aren't so stupid afterall!"
+ v1.msgs[8] = "But you're still pretty stupid."
+end
diff --git a/main.lua b/main.lua
index 4594683..cdcf9da 100644
--- a/main.lua
+++ b/main.lua
@@ -16,6 +16,7 @@ function love.load()
require "elements"
require "notification"
require "virus1"
+ require "dialogue"
love.graphics.setDefaultFilter("nearest", "nearest")
love.graphics.setBackgroundColor(0, 0, 0)
love.graphics.setNewFont()
@@ -33,6 +34,7 @@ function love.load()
love.keyboard.setKeyRepeat(true)
loadAssets()
loadVar()
+ loadDia()
end
function love.update(dt)
sys.w = love.graphics.getWidth()
diff --git a/var.lua b/var.lua
index 3cf53b9..ae9399e 100644
--- a/var.lua
+++ b/var.lua
@@ -120,14 +120,6 @@ function loadVar()
msg.c = 1
msg.msgs = {}
msgs = {}
- msgs[1] = "Hey, Wazzup?"
- msgs[2] = "Did you hear the news?"
- msgs[3] = "New Duty of Call game!"
- msgs[4] = "It looks so cool!"
- msgs[5] = "Check it out!"
- msgs[6] = "Want to get it free?"
- msgs[7] = "Search this on the web:"
- msgs[8] = "www.freedownloads.com"
internet.url = "www.homepage.com"
internet.urlold = internet.url
internet.urlc = internet.url