home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 47
/
047.d81
/
battleship
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
653b
|
23 lines
0 ifa=.thenpoke53280,.:poke53281,.
1 ifa=.thenprint"[147] [154]loading [158]battleship..."
2 ifa>2then131
10 ifa=.thena=1:load"unpacker",8,1
20 ifa=1thena=2:load"ship.shp",8,1
50 poke53280,.:poke53281,.
60 bm=40960:co=35840
70 poke249,bm/256:rem bitmap memory
80 poke250,co/256:rem color memory
90 poke251,0 :rem low byte of shp
100 poke252,64 :rem high byte of shp
105 print"[147]";:poke53280,6:poke53281,1
110 poke253,.:poke254,.
120 sys51456 :rem unpack that shape!
130 sys51459 :rem show that shape!
131 ifa=2thena=3:load"b.main",8,1
132 ifa=3thena=4:load"b.instr.",8,1
133 ifa=4thena=5:load"b.sprites",8,1
140 sys51459:sys1024*16
200 print"load"chr$(34)"hello connect"chr$(34)",8"
210 print"run"
220 poke631,13:poke632,13:poke198,2:end