Author Topic: Say Hello to BattleShip 64!(updated to V0.7A 12/2)  (Read 5676 times)

0 Members and 1 Guest are viewing this topic.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Say Hello to BattleShip 64!(updated to V0.7A 12/2)
« 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!]
* battleship.gfx (Filesize: 400.25 KB, Downloads: 269)
* BattleShip64.bas (Filesize: 45.29 KB, Downloads: 225)
« Last Edit: December 02, 2018, 08:02:03 pm by Cobalt »
Granted after becoming radioactive I only have a half-life!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #1 on: November 29, 2018, 08:20:32 pm »
Can ships be placed vertically?

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #2 on: November 29, 2018, 08:23:49 pm »
Should be Space Bar, you have to have the ship picked up then press space before placing.
Granted after becoming radioactive I only have a half-life!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #3 on: November 29, 2018, 08:32:11 pm »
Hmm... 2 Battleships? (nice buttons)

 
B 64 hmm.PNG
« Last Edit: November 29, 2018, 08:33:28 pm by bplus »

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #4 on: November 29, 2018, 08:45:30 pm »
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?
« Last Edit: November 29, 2018, 08:47:57 pm by Cobalt »
Granted after becoming radioactive I only have a half-life!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #5 on: November 29, 2018, 08:53:18 pm »
I am having problems dragging ships over the board, but once things are setup goes quite smoothly!

Nice start! Might give it a title. ;)
 
Good start.PNG


Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #6 on: November 29, 2018, 09:02:29 pm »
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
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #7 on: November 29, 2018, 09:14:35 pm »
Pete I honestly expected to see your post say just:

"Hello"

:)
Granted after becoming radioactive I only have a half-life!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #8 on: November 29, 2018, 09:32:03 pm »
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

Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Say Hello to BattleShip 64!
« Reply #9 on: November 30, 2018, 03:24:07 pm »
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.
Granted after becoming radioactive I only have a half-life!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Say Hello to BattleShip 64!(updated to V0.2A 11/30)
« Reply #10 on: December 01, 2018, 10:55:38 am »
That was it, I guess I saw the mousedown pickup the ship and thought it had to be dropped onto target location.

Offline OldMoses

  • Seasoned Forum Regular
  • Posts: 469
    • View Profile
Re: Say Hello to BattleShip 64!(updated to V0.2A 11/30)
« Reply #11 on: December 02, 2018, 07:39:09 am »
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.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Say Hello to BattleShip 64!(updated to V0.2A 11/30)
« Reply #12 on: December 02, 2018, 08:04:33 pm »
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!
Granted after becoming radioactive I only have a half-life!