Page 1 of 2

Submarines Sea Combat, completed

Posted: Fri Feb 07, 2014 11:07 am
by Dutchman
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

Re: Submarines Sea Combat

Posted: Fri Feb 07, 2014 1:34 pm
by Mr. Kibernetik
Very nice looking and interesting game!!

Yes, version 3.6 is on its way...

By the way, this first explosion could be used with alpha=0 to be invisible.
Or it could be used on a title of the game, to look more spectacular :D

Re: Submarines Sea Combat

Posted: Fri Feb 07, 2014 5:49 pm
by Henko
LOL, look for the 2 flags, must be the 2nd WW.

Re: Submarines Sea Combat

Posted: Fri Feb 07, 2014 7:53 pm
by Фант
Bravo :!: :!: :!:

Re: Submarines Sea Combat

Posted: Sat Feb 08, 2014 9:53 am
by Operator
Ultra very, very nice !
Imagine this great game with some sound effects : )
ehhh... and should be included in sample games
sB 3.x ....

Re: Submarines Sea Combat

Posted: Sat Feb 08, 2014 10:05 am
by Mr. Kibernetik
Operator wrote:and should be included in sample games
sB 3.x ....
Actually there are some limitations what games (programs) can be included in samples.
They should be iPad-iPhone universal and should not include heavy graphics (because it will make package weight heavy very fast). If application package is heavier than 50 MB then it cannot be updated by cellular Internet, only by WiFi. So anyway, number of included samples cannot grow limitless.
This is why we have Forum here - to share everything without limitations.
Another question - using very nice screenshots in App Store. Version 3.6 will have some wonderful images of applications made by users :!:

Re: Submarines Sea Combat

Posted: Sat Feb 08, 2014 10:29 am
by Dutchman
Henko wrote:
LOL, look for the 2 flags, must be the 2nd WW.
Congratulations! You found the small joke. :lol:
By the way, I passed your 'HighScore' on number of posts :D

Re: Submarines Sea Combat

Posted: Sat Feb 08, 2014 10:06 pm
by Dutchman
I have made an upgrade:
- 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 have reduced the speed.

The folder on DroopBox has been updated.
The screenshot in the original post has been replaced, showing the blown subs with bomb-craters.
Read the '- ReadMe.txt' file for more information.
Enjoy the game :D

Re: Submarines Sea Combat, upgraded

Posted: Sat Feb 08, 2014 10:39 pm
by Mr. Kibernetik
Thank you! :D

Re: Submarines Sea Combat, updated for SB version 3.6

Posted: Wed Feb 12, 2014 10:21 pm
by Dutchman
I have updated Sea Combat for SmartBasic version 3.6. See commented section in function 'Position'
Furthermore a surprise sprite has been added.

Smart Basic really is a great App. :!: :!:
The possibility to run the program via a desktop ikon is a wonderful surprise. Thanks :o