aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-07-21 22:52:40 -0700
committer1029chris <1029chris@gmail.com>2016-07-21 22:52:40 -0700
commit260c99a47be458cffcefd2cf9170447b2a45739f (patch)
tree345c33f5539f16f1bb26a8169e5d712a39a1141d
parent6201455b32dee57659bc8bb0f0fc4aff6f34c081 (diff)
Added added 2 documents
-rw-r--r--files.lua9
-rw-r--r--var.lua2
-rw-r--r--viewer.lua23
3 files changed, 34 insertions, 0 deletions
diff --git a/files.lua b/files.lua
index fd5542e..cc23b26 100644
--- a/files.lua
+++ b/files.lua
@@ -86,6 +86,15 @@ function updateFiles()
win[7].update = true
end
openFileWindow(7)
+ elseif files == f.documents then
+ if i == 1 and doc.doc ~= doc.help then
+ doc.doc = doc.help
+ win[10].update = true
+ elseif i == 2 and doc.doc ~= doc.credits then
+ doc.doc = doc.credits
+ win[10].update = true
+ end
+ openFileWindow(10)
elseif files == f.videos then
if i == 1 and vplay.v ~= video.attacktortoise then
if vplay.v ~= 0 then
diff --git a/var.lua b/var.lua
index 19196a8..5fa6677 100644
--- a/var.lua
+++ b/var.lua
@@ -251,6 +251,8 @@ function loadVar()
f.pictures[1] = {name="cat.jpg",x=0,y=0,hl=false}
f.pictures[2] = {name="art.jpg",x=0,y=0,hl=false}
f.documents = {}
+ f.documents[1] = {name="Help",x=0,y=0,hl=false}
+ f.documents[2] = {name="Credits",x=0,y=0,hl=false}
f.music = {}
f.music[1] = {name="chill.mp3",x=0,y=0,hl=false}
f.music[2] = {name="rage.mp3",x=0,y=0,hl=false}
diff --git a/viewer.lua b/viewer.lua
index 4e51729..890979a 100644
--- a/viewer.lua
+++ b/viewer.lua
@@ -188,3 +188,26 @@ function updateMusic()
mplay.volpx = mplay.volx
end
end
+function loadDocuments()
+ doc.help = "This game functions like a parody of the Windows 98 operating system, with " ..
+ "similarly styled programs and such. Using your antivirus, you fend off " ..
+ "different computer viruses whose sole purpose is to destroy your computer. If you can't beat them in time, you lose! " ..
+ "To control the antivirus, you drag it around " ..
+ "like you would a window on your computer, and press the fire button to shoot " ..
+ "your enemies! The health bar on the bottom indicates the viruses health, and the timer " ..
+ "displays how much time is left. A difficulty setting is present in the settings menu, " ..
+ "if you are finding it too challenging/easy. To activate the fight, follow the instructions from " ..
+ "your best friend, in the chat window. Good luck, and have fun!"
+ doc.credits = [[Created By
+ Chris B.
+
+ Created With
+ Love2D, Blender, GIMP, Audacity, and Atom
+
+ Music
+ ‘Thrills And Spills’ By Jay Man - OurMusicBox
+ ‘Storm Chasers’ By Silent Partner
+
+ Sound Effects
+ Freesound.org and the Youtube Audio Library]]
+end