Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Battleship Solitaire  (Read 6667 times)
0 Members and 1 Guest are viewing this topic.
Offline grimpirate

Senior Newbie

Projects: 1

« Posted 2013-06-16 23:57:40 »

Been working on this for some time now and it can hardly be called finished to be honest. However, it's got all the button logic working for the one puzzle it currently has hard-coded into it.

For an explanation on this game see here.

I decided to make it as my first complete Java game since it seemed fairly feasible given my skill set. Also, I really enjoy the game and I found there weren't many implementations available online.

Latest Version

Game can be executed with (once loaded press F1 for help):
java -jar battle.jar

6 July 2013

Implemented keyboard control. The selected tile will have a yellow border around it. You can trigger its state with the SPACE key. Select any of the tiles on the board using the arrow keys. To flood fill a row or column use the key combinations Alt + Left/Right or Alt + Up/Down, respectively.

10 July 2013

Had a problem in Arch Linux where the hotspot of the default Xorg cursor was shifted by (+1, +1), resulting in problems when determining cursor position over a tile. Solved the discrepancy by implementing a custom Cursor object.

11 July 2013

Added a panel on the left that shows the ships and their quantities for the given puzzle.

20 July 2013

The left panel no longer solely indicates which ships are being searched for. Rather when a vessel is located it will gray out the respective vessel on the left panel. This is not to say that it also indicates that the vessel's location is correct. It solely indicates whether the player has located a ship of that length somewhere on the board.

25 July 2013

Seamless changes to improve performance and code modularity.

4 Aug 2013

Implemented a Save/Load function to facilitate the user's ability to arrive at the puzzle's solution thereby eliminating starting from scratch. The Help Dialog now includes a tab labeled Solution where a solved image of the puzzle appears.

8 Aug 2013

Expanded on the Save function to display a small image of the previously saved board on the left panel. Also added a timer to keep track of solution time.
Offline Opiop
« Reply #1 - Posted 2013-06-17 00:00:31 »

Looks cool but I would recommend to change the file type of the download from a bzip tar to maybe a zip or rar file. A tar file is just not the best way to go.
Offline Sammidysam
« Reply #2 - Posted 2013-06-17 00:08:21 »

Can't you do all with tars that you can with zips and rars?  If you have WinRAR you can extract tars on Windows.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Opiop
« Reply #3 - Posted 2013-06-17 00:09:22 »

Can you? Ah I didn't know that. Sorry, carry on!
Offline grimpirate

Senior Newbie

Projects: 1

« Reply #4 - Posted 2013-06-17 22:18:16 »

I use 7-zip on Windows which, among many other compressed formats, can extract tars. I do most of my Java coding on Linux, thus my usage of tars.
Offline CodeHead

JGO Knight

Medals: 52

From rags to rags.

« Reply #5 - Posted 2013-06-18 00:11:10 »

^ This ^

Best of all it's free and handles about anything you throw at it. I have the same development scenario and have found 7-zip to be a wonderful tool. They also have a version for Posix/Linux here.

Back on topic: If you plan to distribute your game to the general public, get in the habit of making multiple, platform specific distribution archives for your applications. Linux is almost guaranteed to have a copy of a tar capable archiver somewhere on the system, and modern versions of Windows have built in zip/compressed folder capabilities. I can't speak for Apple/Mac since I don't have any sort of day to day experience with them.

Arthur: Are all men from the future loud-mouthed braggarts?
Ash: Nope. Just me baby...Just me.
Offline Opiop
« Reply #6 - Posted 2013-06-18 02:52:19 »

I used 7-zip a few years ago and for some reason didn't like it as much as winRar. I can honestly not recall why, but either program (7-zip or winRar) is great for unzipping tars. I just realized that! CodeHead is also exactly right. If people didn't package lots of files in the .rar format, I wouldn't use any file handling programs. I realize .rar is great for compressing large files, but I hate having to download a third party program just to open a file. Please, just use .zip for windows and tar for linux. I have no idea what the standard file type for OSX is though. I imagine a tar file.
Pages: [1]
  ignore  |  Print  

hadezbladez (719 views)
2018-11-16 13:46:03

hadezbladez (363 views)
2018-11-16 13:41:33

hadezbladez (704 views)
2018-11-16 13:35:35

hadezbladez (179 views)
2018-11-16 13:32:03

EgonOlsen (2372 views)
2018-06-10 19:43:48

EgonOlsen (2506 views)
2018-06-10 19:43:44

EgonOlsen (1466 views)
2018-06-10 19:43:20

DesertCoockie (2132 views)
2018-05-13 18:23:11

nelsongames (1928 views)
2018-04-24 18:15:36

nelsongames (2601 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!