Is it possible?
Author |
Message |
TheLostSoul
|
Posted: Fri May 19, 2006 10:17 am Post subject: Is it possible? |
|
|
Me and a friend are looking to make Battleship for our final project in class and we were not sure what language it would be better to do it in. We never learned much for graphics in Java and didn't learn any animation in VB.
Either way we have a bit more to learn, I was just wondering if anyone could tell me if it would even be possible to make a decent Battleship in VB.
It would be layed out like
[Area for Your ships(10x10)][Open space][Area for Computers Ships(10x10)]
Our only problem is figuring out how to do the placing of the ships, as well as the grids for each(So we can find the ships to 'hit' or 'miss' them). If you have any information that can help us, please do. Not I am not asking you to do it for me, I just mainly want to know if this is do-able for two intermediate programers.
Thank you very much. Later. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Fri May 19, 2006 11:53 am Post subject: (No subject) |
|
|
it's doable.
just keep it as simple as you can.
you need a solid understanding of 2D arrays (grids) though, and figure out how to make an array of buttons (VB elements can be grouped in arrays) and how to map that list to your 2D grid. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
GlobeTrotter
|
Posted: Fri May 19, 2006 3:03 pm Post subject: (No subject) |
|
|
Yeah, it is definately possible to do so in VB6. I would not bother with animations. Just try and make a solid, error-proof game with a nice layout. One thing to remember, though, is that control arrays in VB6 can only be one-dimensional, so you will have to create some functions to wrap the control array into a 2D array. |
|
|
|
|
|
|
|