Most people have probably played Battlships at one time or another, and we have Steven to thank for transferring the popular game to the Amstrad. It provides two levels of difficulty with operation through either the joystick or cursor keys. We have tested the program successfully on both the 464 and 6128. How It Works - 150-320 Initial Input Section, Choice for instructions, Joystick or Keyboard & Difficulty level.
- 320-420 Draws the Game grid.
- 420-570 Print ammunition & difficulty level reminder onto screen.
- 580-710 Prints co-ordinates onto game grid.
- 720-830 Draw ships onto Right Hand Side of screen.
- 840-1180 Handles Keyboard/Joystick input of type of ammunition & your co-ordinates.
- 1190-1250 Tests and prints whether co-ordinates have been used before and if there is a hidden ship at this location.
- 1260-1340 Erases ships on left hand side when fully destroyed.
- 1350-1440 Prints the results of your shot onto the grid whether hit/miss.
- 1450-1490 Erases a bomb when one fired.
- 1500-1600 Erases a torpedo when one is fired.
- 1610-1670 Fires a Horizontal Torpedo.
- 1680-1730 Fires a Vertical Torpedo.
- 1740-1960 This is the main routine where the computer hides the ships.
- 1970-2200 Symbols for ships on left hand side of screen.
- 2200-2350 Instructions Routine.
- 2360-2420 Instruction stepping routine.
- 2430-2540 Lose routine, also uncovers any ships not yet revealed.
- 2550-2670 Win routine. Plays tune and prints a message.
- 2680-2760 Data for win tune.
- 2770-2830 Lose tune routine.
- 2840-2870 Lose routine's tune data.
TAU |