inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 20, 2014 10:04:33 GMT -8
The sound really wouldnt make sense anyways since shots have to be verified by the other player. in order to keep boat placement secret, it isnt stored in the thread key itself. there isnt a way to get to it. you fire your shots, and it stores where you sent them. but it doesnt know if you hit anything until the other player logs in and verifies the results. then when he makes his shots it saves his choices. when you log back in, it shows you what the results were of your last attempt, then looks at pending shots, then lets you go again.
so in other words, there would be a lag between firing shots and knowing what their result was. the closest I could manage would be a small shake effect as it read incoming shot data and generated results.
I have always been an opponent of sound on websites. which is why I have never attempted to fill a plugin request for a music player in the profile or sound effect on an action. sounds are great when you are playing some sort of action game with a lot of movement. but a game like solitare doesnt need sounds. tic-tac-toe doesnt need sounds. chess doesnt need sounds. God of war needs sounds. Grand Theft Auto needs sounds. If I can think of a way to make it where someone else can add sounds on actions, I will leave it for someone else to write in a companion plugin for sounds.
Im still currently working on the drag and drop aspect of the placements. I had to spend some time looking for default game pieces. which arent ideal, but they are working ok for now. you will still be able to replace them in your own copies. bistray said he might have better pieces I can use from pics on his site.
I DO appreciate all the suggestions however. I think this will turn out great and inspire other games of its type.
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Jul 20, 2014 20:15:54 GMT -8
I have always been under the impression that the game 'Battleships' is a pad and pencil game and no-one can claim copyright. Hasbro made a version of the game, but had to call it 'Battleship' so that they could claim copyright. Heck you can call it Seek and Destroy for all I care, it looks like it will be a lot of fun. Excited abut this, Wormopolis.
|
|
inherit
194160
0
Mar 23, 2015 9:54:45 GMT -8
blc
2,641
May 2013
blc
|
Post by blc on Jul 20, 2014 20:20:44 GMT -8
I disliked that electronic Battleship game for the exact same reason. It was always much more fun with pen and paper than it was with electronic sounds and flashing lights.. I always had the feeling of 'oh, just get on with it already'. Some games do not need 'enhancements', and I personally think Battleships is one of them. We must have had the one in between because ours was not paper and pencil, yet it didn't have flashing lights either.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Jul 20, 2014 21:26:24 GMT -8
The sound really wouldnt make sense anyways since shots have to be verified by the other player. in order to keep boat placement secret, it isnt stored in the thread key itself. there isnt a way to get to it. you fire your shots, and it stores where you sent them. but it doesnt know if you hit anything until the other player logs in and verifies the results. then when he makes his shots it saves his choices. when you log back in, it shows you what the results were of your last attempt, then looks at pending shots, then lets you go again. so in other words, there would be a lag between firing shots and knowing what their result was. the closest I could manage would be a small shake effect as it read incoming shot data and generated results. I have always been an opponent of sound on websites. which is why I have never attempted to fill a plugin request for a music player in the profile or sound effect on an action. sounds are great when you are playing some sort of action game with a lot of movement. but a game like solitare doesnt need sounds. tic-tac-toe doesnt need sounds. chess doesnt need sounds. God of war needs sounds. Grand Theft Auto needs sounds. If I can think of a way to make it where someone else can add sounds on actions, I will leave it for someone else to write in a companion plugin for sounds. Im still currently working on the drag and drop aspect of the placements. I had to spend some time looking for default game pieces. which arent ideal, but they are working ok for now. you will still be able to replace them in your own copies. bistray said he might have better pieces I can use from pics on his site. I DO appreciate all the suggestions however. I think this will turn out great and inspire other games of its type. Yeah if there was enough hype for sounds I would make a companion plugin for it. It's not that hard to tap into html with Jquery that I probably wouldn't even need access to your functions to add event handlers to them. But I think a minor shake would be awesome. www.w3schools.com/HTML/html5_draganddrop.asp This really is the easiest drag and drop setup. Where variable data is the id of whatever is being dropped and $(ev.target) is whatever its being dropped into. I know I'll be adding it to my forum when it's completed.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 20, 2014 22:20:35 GMT -8
Chess already uses jQuery drag and drop. I have a lot of practice with that one, so Im using it again. You can setup which elements are draggable, which ones are droppable, and even have it bind an event to the drop. everything has a indentifier too, so you can check WHAT you are dragging, WHERE you are dragging to, and even restrict the area on the page you can drag. which is why if you try and drag a chess piece to a square it isnt allowed, it just snaps back where it started.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 20, 2014 23:28:03 GMT -8
I just thought of an option where you get as many shots as you have ships left. so 5 ships means you get 5 shots per turn. you lose a ship, you get 4 shots.
definitely going to make that an option.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 28, 2014 10:06:13 GMT -8
updating for those still interested. I have it choosing players and generating thread. Ship-placer is up and almost have all the kinks worked out:_ As you drag from the dock, it highlights green on the grid for the size of ship. it doesnt always center the image on the cursor though, still working that one out. as soon as you let go of the mouse it drops the ship where the green is. if you ctrl-click the ship it rotates it 90 degrees (except in IE8 because apparently I have to do sneaky stuff). dragging rotated ships around will still show the green area for placing. let me tell you working all tthat out has taken a LOT of time.. if you try to drag to an area already occupied by a ship it highlights the area red and wont allow the drop. it will return the image back to where it came from. still have to work out some bugs with rotating so it doesnt rotate onto a ship or out of bounds but that shouldnt be too bad since I have half of that done for normal orientation. once all the ships are placed It will unlock that button at the bottom to continue. then next part will be saving some data and submitting the post so the opponent can place their boats. like chess, there wont be any native notification system, but later at some point a companion can be made. anyways.. I know it doesnt seem like much, but there was a lot of complications in getting rotated pieces to be dragged around since draggable doesnt like transformed images.
|
|
inherit
169267
0
Nov 25, 2024 15:26:25 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Jul 28, 2014 13:09:19 GMT -8
Wow! Jason This is off the chain! Can't wait to play it.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 28, 2014 20:50:19 GMT -8
This looks GREAT!
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 27, 2024 1:34:07 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 29, 2014 15:10:14 GMT -8
I just have to pop in and say ShootieBoats. This.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 29, 2014 16:20:16 GMT -8
I got IE8 to not look off kilter when rotated (though it does odd things to the image) and it somehow made IE9 go wonky.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Aug 1, 2014 14:04:15 GMT -8
Just pointing out, that the sound and shake effects was a joke. My post wasn't serious for those that were agreeing with it
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Aug 1, 2014 16:00:57 GMT -8
I was just going to use a shake animation on the result field. sounds someone else can have fun with.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Aug 6, 2014 0:28:06 GMT -8
ok.. so update on the way to releasing an alpha. after both players have placed their ships, the first player gets to make the first shots. the white and red are already made shots resulting in hits (red) and misses (white) and as you click the boxes it puts a yellow peg. clicking the box again will remove the peg. depending on how many shots you configure the games to have, the "Im done" button will go active when all pegs are placed. I have it in there for shots=number of boats, as well as making it where each boat contributes a number of shots, but neither of those work yet. after you click Im done, it reloads the page and says its waiting for the other player to attack. everyone can see the hits and misses on each players boards but no one will be able to see where the ships actually are. Im probably going to have it show a second grid below for the players that also shows the pegs on top of their ships (but only their own grid). as the other player comes back to the thread, if they had made previous shots it alerts them how many hits and misses they got, then alerts them about incoming shots. it will bring up a grid with their ships on it, and place the yellow pegs for each of the incoming shots on the grid. then it animates each yellow peg and turns it white or red depending on if their is a ship underneath it. if a hit happens, I added in a little shake animation. I still need to have it track when a ship is actually destroyed and alert the player they lost a ship, as well as alert the other player when they destroyed one. after the animations are done, you click "shoot back!" and it opens the shoot dialog again. so I have a little ways to go before I can release an alpha for anyone to toy with. I also have stuff in there for multiple themes, but it currently only uses the first theme since I havent thought of a way to add some sort of selection process for multiple themes yet. you can also name each ship whatever you want, and have dimensions that arent limited to one dimension (like have a carrier that is 2x5 cells). all of the rotate stuff is working in all browsers including IE8 (though the process for that does weird things to images). the thread view will also put "your turn" to the left of the thread name for a quick look at which games you need to attend. since I dont have it tracking when a ship is destroyed, there is also no current way to end the game... but hopefully that will be easy once I figure out how Im going to do that.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Aug 10, 2014 11:57:20 GMT -8
|
|