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
Submarines Sea Combat, completed
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Submarines Sea Combat, completed
- Attachments
-
- screenshot of the game
- screenshot.png (192.29 KiB) Viewed 4786 times
-
- screenshot of exit-screen
- result.PNG (49.39 KiB) Viewed 4786 times
Last edited by Dutchman on Fri Feb 14, 2014 6:29 pm, edited 9 times in total.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Submarines Sea Combat
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
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
-
- Posts: 814
- Joined: Tue Apr 09, 2013 12:23 pm
- My devices: iPhone,iPad
Windows - Location: Groningen, Netherlands
- Flag:
Re: Submarines Sea Combat
LOL, look for the 2 flags, must be the 2nd WW.
Re: Submarines Sea Combat
Ultra very, very nice !
Imagine this great game with some sound effects : )
ehhh... and should be included in sample games
sB 3.x ....
Imagine this great game with some sound effects : )
ehhh... and should be included in sample games
sB 3.x ....
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Submarines Sea Combat
Actually there are some limitations what games (programs) can be included in samples.Operator wrote:and should be included in sample games
sB 3.x ....
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
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Submarines Sea Combat
Henko wrote:
By the way, I passed your 'HighScore' on number of posts
Congratulations! You found the small joke.LOL, look for the 2 flags, must be the 2nd WW.
By the way, I passed your 'HighScore' on number of posts
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Submarines Sea Combat
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
- 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
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Submarines Sea Combat, upgraded
Thank you!
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Submarines Sea Combat, updated for SB version 3.6
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
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