QB64.org Forum
Active Forums => Programs => Topic started by: Cobalt on November 29, 2018, 06:43:25 pm
-
here is a little tid bit I'm calling BattleShip 64! (notice a pattern in my naming!)
Play BattleShip against a stupid computer opponent. I say 'stupid' because it has no AI beyond making sure it doesn't shoot the same place twice.
Eventual goal is to have the option of LAN play and maybe one day Internet play.
So have at it, see if it breaks. needs sound, would love to be able to use short video clips (DAV's video player example isn't working for me) but for now its a rather quiet simple game.
Latest update adds a menu, with limited instruction screen.
the network options are NOW in place. First successful game played over LAN!
Update: V0.7A 12/2/2018 8:01 EST [network play Version!]
-
Can ships be placed vertically?
-
Should be Space Bar, you have to have the ship picked up then press space before placing.
-
Hmm... 2 Battleships? (nice buttons)
-
opps, forgot about that. you should still be able to play it, not like the computer can win anyway.
yeah I remember that now, forgot that you can pick up the ship from the empty spot on the 'yard' was going to set a lock flag for that. be just a few mins and I'll have that fixed
or.. that is how you managed to do that right? or did you find the autoplace command?
-
I am having problems dragging ships over the board, but once things are setup goes quite smoothly!
Nice start! Might give it a title. ;)
-
Again, this is why I wish we had phone app ability. If Rob were only super-super-human. Oh well.
When I used to play, if my sub got sunk I'd just say it was submerged. As it turns out, I'm a PITA in more places than just here.
Pete
-
Pete I honestly expected to see your post say just:
"Hello"
:)
-
Hello! :D
Yeah, great game, I love the intro screen. I had no problem with drag and drop; however, Mark has more experience with drag than I do. (Martian the Martian). Anyway, you can drag a ship onto the RESET button and when you click it, it resets... but the ship you are dragging stays on screen. In other words, it needs more idiot proofing. Not that I'm some sort of ordinary idiot. I'm a beta tester, which by definition is a professional idiot.
Pete
-
I am having problems dragging ships over the board, but once things are setup goes quite smoothly!
Make sure you simply click on the ship image, don't hold the button down. its Click, move to location, Click.
not sure if that is the issue.
-
That was it, I guess I saw the mousedown pickup the ship and thought it had to be dropped onto target location.
-
This is very nicely done. I won the first game after sustaining heavy damage, the second I smoked the computer with only three hits to myself. If you get the AI up to speed, it will be deadly. It seems to me that a modified "path finding" algorithm could be a good way to make the computer a serious opponent.
The only issue I saw was the menu flicker in the opening screen.
-
The only issue I saw was the menu flicker in the opening screen.
That is odd, I had not noticed any there. I will have to take a closer look for flicker.
well if the computer can not meet your needs invite a friend over for some LAN play cause the network play is now in place!