Here's my BATTLE SHIPS program for a trip down memory lane.
Use CLOAD
Due to my Dragon 32's limited memory, I could only fit the following into the code:
Full graphics & sound;
1 Player vs. the Dragon;
Move cursor with arrows;
Shoot with the space bar;
Enemy ships appear after being obliterated;
Your ships disappear after being slaughtered;
The computer randomly places his 4 ships (lengths vary from 5 units to 2 units);
Your ships are also placed randomly (lack of memory);
You get 1 shot - if you score a hit - you'll get another shot (you'll need it);
The computer gets 3 shots at a time; it will never repeat the same shot;
The 12 x 12 grid means the computer should destroy you in max 40 turns;
At the end of the game, press the space bar to start the game again.
Enjoy! Feedback welcome...
Regards, Cloete
BATTLE SHIPS for a trip down memory lane
-
- Posts: 35
- Joined: Mon Jan 16, 2012 6:49 am
- Location: Pretoria, Gauteng Province, South Africa
BATTLE SHIPS for a trip down memory lane
- Attachments
-
- BATTLE SHIPS 8Bit - Compressed.zip
- Hope the download is a success.
- (1.3 MiB) Downloaded 228 times
Last edited by Cloete on Mon Feb 27, 2012 3:11 pm, edited 1 time in total.
Re: BATTLE SHIPS for a trip down memory lane
I'm getting an ?FM error when trying to load this with XRoar. Haven't had a chance to try it on an actual Dragon 32 yet though.
CLOADM ""
->
F BATTLE S
?FM ERROR
OK
CLOADM ""
->
F BATTLE S
?FM ERROR
OK
Re: BATTLE SHIPS for a trip down memory lane
The game is written in BASIC. Load the game with CLOAD instead of CLOADM.Rink wrote:I'm getting an ?FM error when trying to load this with XRoar. Haven't had a chance to try it on an actual Dragon 32 yet though.
CLOADM ""
->
F BATTLE S
?FM ERROR
OK
Re: BATTLE SHIPS for a trip down memory lane
I did try that originally.
CLOAD
->
S
?IO ERROR
OK
CLOAD "" (sometimes returns as above, othertimes)
->
F BATTLE S
?IO ERROR
OK
My system doesn't seem to like that .wav at all. Running XRoar 0.26 btw - I'll try updating and let you know what happens.
CLOAD
->
S
?IO ERROR
OK
CLOAD "" (sometimes returns as above, othertimes)
->
F BATTLE S
?IO ERROR
OK
My system doesn't seem to like that .wav at all. Running XRoar 0.26 btw - I'll try updating and let you know what happens.
Re: BATTLE SHIPS for a trip down memory lane
Ok. Works fine on Windows XRoar v0.27 but apparently not v0.26.
All the best.
Edit: Yeah, pretty cool game Cloete. That's a nice version of Battleships there.
All the best.
Edit: Yeah, pretty cool game Cloete. That's a nice version of Battleships there.
Re: BATTLE SHIPS for a trip down memory lane
I have attached a copy of the .CAS file which will work with any emulator. Also included in the archive is a Tandy CoCo version of the game.Rink wrote:I did try that originally.
CLOAD
->
S
?IO ERROR
OK
CLOAD "" (sometimes returns as above, othertimes)
->
F BATTLE S
?IO ERROR
OK
My system doesn't seem to like that .wav at all. Running XRoar 0.26 btw - I'll try updating and let you know what happens.
EDIT: Attachment removed.
Last edited by zephyr on Sat Jun 09, 2012 2:40 am, edited 2 times in total.
Re: BATTLE SHIPS for a trip down memory lane
Here's a slightly modified version of the game which has been converted to .cas file. I fixed a bug which had crept in during the code size optimization stage, and made a few minor modifications to the code. Both CoCo and Dragon compatible versions are included.
- Attachments
-
- BattleShips_v2.zip
- (24.54 KiB) Downloaded 217 times