Submarines Sea Combat, completed

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Submarines Sea Combat, completed

Post 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
Attachments
screenshot of the game
screenshot of the game
screenshot.png (192.29 KiB) Viewed 4826 times
screenshot of exit-screen
screenshot of exit-screen
result.PNG (49.39 KiB) Viewed 4826 times
Last edited by Dutchman on Fri Feb 14, 2014 6:29 pm, edited 9 times in total.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Submarines Sea Combat

Post 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

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Submarines Sea Combat

Post by Henko »

LOL, look for the 2 flags, must be the 2nd WW.

User avatar
Фант
Posts: 1363
Joined: Sat Nov 30, 2013 10:01 am
My devices: iPad 4 (iOS 9.3), iMac (MAC OS 11.03)
Location: Россия,Санкт-Петербург
Flag: Russia
Contact:

Re: Submarines Sea Combat

Post by Фант »

Bravo :!: :!: :!:

Operator
Posts: 138
Joined: Mon May 06, 2013 5:52 am

Re: Submarines Sea Combat

Post 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 ....

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Submarines Sea Combat

Post 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 :!:

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Submarines Sea Combat

Post 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

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Submarines Sea Combat

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Submarines Sea Combat, upgraded

Post by Mr. Kibernetik »

Thank you! :D

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Submarines Sea Combat, updated for SB version 3.6

Post 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

Post Reply