Skip to content

Commit 2ba6c9c

Browse files
committed
textelite 1.1 finalize load/save, add it to examplesd disk
1 parent 3eaf111 commit 2ba6c9c

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

examples/compiled/examples.d64

0 Bytes
Binary file not shown.

examples/compiled/textelite.prg

926 Bytes
Binary file not shown.

examples/textelite.p8

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
; Note: this program is compatible with C64 and CX16.
1111

12-
; TODO error check on load, now wipes cash and fuel etc when load fails
13-
; TODO finalize and test save/load game function
14-
1512
main {
1613

1714
const ubyte numforLave = 7 ; Lave is 7th generated planet in galaxy one
@@ -102,14 +99,14 @@ trader {
10299
txt.print("\ni/o error: ")
103100
diskio.status(8)
104101
txt.chrout('\n')
102+
return
105103
}
106104

107105
ship.cash = savedata.cash
108106
ship.Max_cargo = savedata.max_cargo
109107
ship.fuel = savedata.fuel
110108
memcopy(&savedata.cargo0, ship.cargohold, len(ship.cargohold))
111109
galaxy.travel_to(savedata.galaxy, savedata.planet)
112-
; TODO CHECK IF GALAXY AND MARKET ARE OKAY AFTER LOAD
113110

114111
planet.display(false)
115112
}

0 commit comments

Comments
 (0)