Important alert: (current site time 7/16/2013 1:15:54 AM EDT)
 

winzip icon

[ Best NavalBattle Game ]

Email
Submitted on: 1/21/2005 11:25:26 AM
By: Can Cilli 
Level: Advanced
User Rating: By 43 Users
Compatibility: VB 6.0
Views: 35625
author picture
(About the author)
 
     This is the best Naval Battle game ever created. There are 6 different ships and two kind of weapons. You can play against an intelligent computer or a friend on the same PC. Or you can play with someone through LAN or Internet. Also it saves top 10 high scores for single player games. Lastly, it has some secrets waiting to be found. Please vote for it and dont forget to give feedback!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
1/21/2005 11:44:57 AM

Great! Thanks for sharing!
(If this comment was disrespectful, please report it.)

 
1/21/2005 1:53:57 PMDaniel M

Wow looks cool! im going to check it out right now... any sound implementation..?
(If this comment was disrespectful, please report it.)

 
1/21/2005 2:14:45 PMDaniel M

5 globes, just checked it out and it's great! Nicely done. Sound features would be nice.
(If this comment was disrespectful, please report it.)

 
1/22/2005 7:33:59 AMThe_Burner

5 Globes
Very Good Man
Congratulations
(If this comment was disrespectful, please report it.)

 
1/22/2005 10:06:53 AMTan Jiunn Yann

It's good and nice interface and gui that i ad ever seen. This game sometimes buggy, cause the program not responding, maybe the AI section.

I vote u 5.
(If this comment was disrespectful, please report it.)

 
1/24/2005 9:49:10 AMmichael doering

Hello,
I`ve tested only the 1 Player modus.

I voted you for the idea of this game
5 balls, but the code is very poor.
Suggestion for V2 :-)
Use 'Option Explicit' for every
form,modules,classes etc.

Use 'prefixes', Example
myBackBuffer is a long and Public
glBackBuffer as Long or
glngBackBuffer as Long

When you declare a Variable without a Type then this is a 'Variant'
Example :backpage,playernum,playername

Over 90% of variables are 'Variants'
This type of variables are the slowest
and consume the maximum of resources.

Indent your Code, write Comments

Sound features,
for a Hit,Destroyed,Missing Hit etc.

Any way, keep up this good work and
I`m still waiting for the V2 :-)

regards
michael
(If this comment was disrespectful, please report it.)

 
1/24/2005 10:09:56 AMmichael doering

Me again,

when you close the game then
you use the 'End' statement
at the procedure frm_Main_QueryUnload.

Please do not use this statement,
comment this out and you can see,
the app hang`s and you must kill the app
from the Taskmanager.

I think any Forms,Classes,Objects are
not set 'Nothing' and so the app
can`t close them self.
(If this comment was disrespectful, please report it.)

 
1/24/2005 4:55:26 PMCan Cilli

thanks for your atteintion michael,
i know, the code is poor. due to that reason, i doubted about submitting the code for a long time.
when i started to writing this game, i was only trying, i wasnt expecting such a good result, so i didnt pay attention to variables or anything. moreover i changed the code too many times. so the codes are too long, i couldnt find time to simplify them.
V2 is a good idea, now i am on semester break, and i can work on it. i will try to code it again.

for your last entry:
i am not using xp, but a friend tested it on xp. he didnt report me anything like that, but i will be concerned about it.
(If this comment was disrespectful, please report it.)

 
1/24/2005 6:52:56 PMmichael doering

Hello,

>for your last entry:
>i am
>not using xp, but a friend tested it >on
>xp. he didnt report me anything like
>that, but i will be concerned about it.

this App will hang on every OS,
you can test it.
mdl_Main_SubMain
If Not App.PrevInstance then
'Your Code
Else
MsgBox "It`s me again :-)"
End if

Start the game and close it immediately,
now start the game again and you can see the MsgBox.

The difference is,
the second start hangs not,
the app can terminate themselves.

I have seen,
every Form has the 'End' Statement.
Unfortunately when you use this statement, the App will terminate
immediate and you can`t clean up
any Object`s , Forms, Classes etc.
The Result is, the App hangs.

Please see my Statements not as
criticism, you have alot of time invested and I think the statements help you for a cleaner and faster App.

regards
Michael
(If this comment was disrespectful, please report it.)

 
1/28/2005 11:42:35 AMnated

Thanks for sharing. Good luck with V2!!
(If this comment was disrespectful, please report it.)

 
5/11/2005 4:47:31 AM

Good, i like it
(If this comment was disrespectful, please report it.)

 
10/10/2005 6:42:14 AMCurious

PERFECT! - This has taught a 'LAN newbie' a GREAT deal! Thank you!
(If this comment was disrespectful, please report it.)

 
9/18/2006 10:35:22 AMDante Milano Souto

Very Good, thank's for sharing. Maybe you can transform this in a online game (ActiveX Document).
(If this comment was disrespectful, please report it.)

 
10/11/2006 1:57:30 AMJhay

Hi
Nice Game
Nice GUI, Nice concepts and Nice CHEATS... lol

I rate it excellent.
(If this comment was disrespectful, please report it.)

 
1/7/2007 5:19:18 AMDiaa

well done!
I liked the UI very much.
Game response is very good.
The only comment is about the coding. I think that you should make it more readable and friendly. Many lines seem to be THICK and others are very long. This could be confusing to you yourself!
(If this comment was disrespectful, please report it.)

 
4/22/2007 2:29:36 AMRyan27

Very nice, 5 from me :D
(If this comment was disrespectful, please report it.)

 
12/8/2009 6:53:19 PMohailo

5 Scrotoms from me...this is great!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.