Sea combat update

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: Sea combat with player selection and personal TOP scores

Post by Dav »

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

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

Re: Sea combat with player selection and personal TOP scores

Post by Dutchman »

Dav 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
Thanks for the praise :D
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. ;)

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

Re: Sea combat with player selection and personal TOP scores

Post by Dutchman »

I discovered that the text in the "For" button is misspelled. It should be "Fore" ;)
Definition of fore and aft in English:
adverb
1At the front and rear (often used with reference to a ship or plane)
So I changed it accordingly.

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

Re: Sea combat updated for launcher

Post by Dutchman »

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.
Last edited by Dutchman on Fri Jan 20, 2023 12:27 pm, edited 1 time in total.

User avatar
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: Canada
Contact:

Re: Sea combat updated for launcher

Post by rbytes »

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. :D
The only thing that gets me down is gravity...

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

Re: Sea combat updated for launcher

Post by Dutchman »

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.

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

Re: Sea combat updated for launcher

Post by Dutchman »

I have changed the folder 'files' to 'Sysfiles' and made the related changes in the program code.
Thanks to Ricardobytes

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

Re: Sea combat

Post by Dutchman »

I have added a screenshot of the exit-screen with high-scores of players

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

Re: Sea combat update

Post by Dutchman »

There was an error in the player handling, due to the change of the "Files'-folder to 'Sysfolder' :oops:
It is corrected now.

Post Reply