Nice game. I am enjoying playing this today. Thanks for sharing. I like how easy it is to study your code, so well structured.
- Dav
Sea combat update
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat with player selection and personal TOP scores
Thanks for the praiseDav wrote:Nice game. I am enjoying playing this today. Thanks for sharing. I like how easy it is to study your code, so well structured.
- Dav
A structured approach based on user defined functions helps a lot if extensions have to be made.
I learned a lot by programming in PASCAL, long very long ago.
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat with player selection and personal TOP scores
I discovered that the text in the "For" button is misspelled. It should be "Fore"
So I changed it accordingly.Definition of fore and aft in English:
adverb
1At the front and rear (often used with reference to a ship or plane)
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat updated for launcher
I have adapted the program for usage with 'Launcher'.
See viewtopic.php?f=20&t=1499
The toolbar is now disabled, so the game can be aborted only by touching the 'Finish'-button.
Furthermore some minor changes are made.
The files on Dropbox are updated. See the first post in this series.
See viewtopic.php?f=20&t=1499
The toolbar is now disabled, so the game can be aborted only by touching the 'Finish'-button.
Furthermore some minor changes are made.
The files on Dropbox are updated. See the first post in this series.
Last edited by Dutchman on Fri Jan 20, 2023 12:27 pm, edited 1 time in total.
- rbytes
- Posts: 1338
- Joined: Sun May 31, 2015 12:11 am
- My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet - Location: Calgary, Canada
- Flag:
- Contact:
Re: Sea combat updated for launcher
I have Sea Combat running now, but I had to do some unnecessary code editing. The difficulty stemmed from the use of the restricted word "files" used to name your resources folder. I had to change the name of the launcher in the include statement. That immediately capitalized all of the occurrences of the word "files" in your code, and then when I ran it, it could not find the resources!
I debated downloading again with CAPSYNTAX off, but thought it might be faster just to change the name of the folder to FILES
That got me a little farther, but then the init file could not find the resources it needed. So more editing...
Yes, I could have turned off CAPSYNTAX before downloading, but I think it is a better idea for programmers to avoid using reserved words. I keep CAPSYNTAX on, and if I type a lowercase path name that then gets switched to caps, I modify it by just a letter or two so that it still explains its purpose but does not cause problems if the code is edited again.
Having said all that, I do enjoy your game. Nice graphics and gameplay.
I debated downloading again with CAPSYNTAX off, but thought it might be faster just to change the name of the folder to FILES
That got me a little farther, but then the init file could not find the resources it needed. So more editing...
Yes, I could have turned off CAPSYNTAX before downloading, but I think it is a better idea for programmers to avoid using reserved words. I keep CAPSYNTAX on, and if I type a lowercase path name that then gets switched to caps, I modify it by just a letter or two so that it still explains its purpose but does not cause problems if the code is edited again.
Having said all that, I do enjoy your game. Nice graphics and gameplay.
The only thing that gets me down is gravity...
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat updated for launcher
Good comment. Thanks
I will change 'files' to 'Sysfiles'.
I did not have the problem because I have CAPSYNTAX OFF. I tried it in the past, but got similar problems.
Furthermore I am used to capitalize the system syntax during typing.
I will change 'files' to 'Sysfiles'.
I did not have the problem because I have CAPSYNTAX OFF. I tried it in the past, but got similar problems.
Furthermore I am used to capitalize the system syntax during typing.
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat updated for launcher
I have changed the folder 'files' to 'Sysfiles' and made the related changes in the program code.
Thanks to Ricardobytes
Thanks to Ricardobytes
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat
I have added a screenshot of the exit-screen with high-scores of players
- Dutchman
- Posts: 851
- Joined: Mon May 06, 2013 9:21 am
- My devices: iMac, iPad Air, iPhone
- Location: Netherlands
- Flag:
Re: Sea combat update
There was an error in the player handling, due to the change of the "Files'-folder to 'Sysfolder'
It is corrected now.
It is corrected now.