diff options
| -rw-r--r-- | files.lua | 9 | ||||
| -rw-r--r-- | var.lua | 2 | ||||
| -rw-r--r-- | viewer.lua | 23 |
3 files changed, 34 insertions, 0 deletions
@@ -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 @@ -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} @@ -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 |
