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 /virus2.lua | |
| parent | b093ea581294319fff10025501e09b90c4af3926 (diff) | |
Added save game/load game system
game auto saves when fight ends
Diffstat (limited to 'virus2.lua')
| -rw-r--r-- | virus2.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -322,6 +322,8 @@ function drawVirusFight2() if v1.explodeEndFrame >= 20 then v2.start = false if v2.c.health == -20 then + local prevSave = love.filesystem.read("savegame.txt") + love.filesystem.write("savegame.txt", prevSave .. "v2.complete = true;virus2Lose = " .. virus2Lose .. ";") scene = 1 win[4].w = 200 antivirus.status = "Virus Defeated" |
