From 260c99a47be458cffcefd2cf9170447b2a45739f Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Thu, 21 Jul 2016 22:52:40 -0700 Subject: Added added 2 documents --- files.lua | 9 +++++++++ var.lua | 2 ++ viewer.lua | 23 +++++++++++++++++++++++ 3 files changed, 34 insertions(+) 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 -- cgit