diff options
| author | 1029chris <1029chris@gmail.com> | 2017-02-14 15:55:44 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2017-02-14 15:55:44 -0800 |
| commit | dcf61eedc3f19af5a98ffd78439306ffe205ad77 (patch) | |
| tree | d8154b113e47b15c150516310b0f7792275b63b7 /var.lua | |
| parent | b093ea581294319fff10025501e09b90c4af3926 (diff) | |
Added save game/load game system
game auto saves when fight ends
Diffstat (limited to 'var.lua')
| -rw-r--r-- | var.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -62,6 +62,7 @@ function loadVar() loadWin(8, 400, 300, "Video Player", nil, icons[16].video) loadWin(9, 250, 150, "Music Player", nil, icons[16].music) loadWin(10, 350, 500, "Document Viewer", nil, icons[16].document) + loadWin(11, 400, 600, "First Time Setup", nil, icons[16].help) win[4].crazy = false win[4].crazyLeft = false win[4].crazyUp = false @@ -134,6 +135,11 @@ function loadVar() internet.load = 0 internet.blinkTimer = 0 internet.blink = false + profile = {} + profile.setup = false + profile.name = "No Name" + profile.gender = "Person" + profile.pronoun = {they,them,their} v1.yes = false v1.timer = 0 v1.shakemin = 0 @@ -451,6 +457,7 @@ function loadRe() v1.turret[4] = {r=math.rad(-30),x=0,y=0,rt=math.rad(-30),t=0,tl=4} expl.frame = 1 loadVar() + loadSave() loadDia() scene = 0 end |
