Submarines Sea Combat, completed
Posted: Fri Feb 07, 2014 11:07 am
I have made a game with a destroyer and submarines.
It is made for iPad in SmartBasic for version 3.5 and adapted to version 3.6
Version 3.6 solved some peculiarities and gave new features due to the 'FLIP' facility.
I consider the game now as completed.
You'll find the folder Submarines on https://www.dropbox.com/sh/1dso9k80mvoanev/YC7jtEcXTe
The file - ReadMe.txt gives some info on usage and program-structure.
The file Sea Combat.txt is the program to run.
Winning scores are stored in file.
After finishing the game, the winning scores are listed and some statistics are given.
It can happen that the program will stop with the message "Low Memory".
This problem can be solved by switching off all apps and restarting SmartBasic.
During debugging this happened quite often, probably by undeleted sprites and buttons.
During normal finishing the sprites and buttons are deleted in the proper way and the program restarts without problems.
M O D I F I C A T I O N S
20140208
- crater stamped on blown sub
- subs with 3D-behaviour can only be hit in a restricted central area.
- Game points count added with storage of best scores
- Looptime increased to 25 msec. Additional functions reduced the speed.
20140212
- Surprise sprite added
- Updated for SB version 3.6. See commented part in function 'Position'
20140214
- Winning scores are now listed if program ends
- Escaped submarines are flipped and restart now from escape-position.
- Direction of submarines is now randomised at start-up (FLIP or not FLIP).
- Crater stamping is adapted for flipped submarines. That was not a trivial task!
- Looptime control increased to 40msec. Obviously 'FLIP' takes a lot of time
It is made for iPad in SmartBasic for version 3.5 and adapted to version 3.6
Version 3.6 solved some peculiarities and gave new features due to the 'FLIP' facility.
I consider the game now as completed.
You'll find the folder Submarines on https://www.dropbox.com/sh/1dso9k80mvoanev/YC7jtEcXTe
The file - ReadMe.txt gives some info on usage and program-structure.
The file Sea Combat.txt is the program to run.
Winning scores are stored in file.
After finishing the game, the winning scores are listed and some statistics are given.
It can happen that the program will stop with the message "Low Memory".
This problem can be solved by switching off all apps and restarting SmartBasic.
During debugging this happened quite often, probably by undeleted sprites and buttons.
During normal finishing the sprites and buttons are deleted in the proper way and the program restarts without problems.
M O D I F I C A T I O N S
20140208
- crater stamped on blown sub
- subs with 3D-behaviour can only be hit in a restricted central area.
- Game points count added with storage of best scores
- Looptime increased to 25 msec. Additional functions reduced the speed.
20140212
- Surprise sprite added
- Updated for SB version 3.6. See commented part in function 'Position'
20140214
- Winning scores are now listed if program ends
- Escaped submarines are flipped and restart now from escape-position.
- Direction of submarines is now randomised at start-up (FLIP or not FLIP).
- Crater stamping is adapted for flipped submarines. That was not a trivial task!
- Looptime control increased to 40msec. Obviously 'FLIP' takes a lot of time