Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 2083 times)
0 Members and 1 Guest are viewing this topic.
Offline grimpirate

Senior Newbie


Projects: 1



« Posted 2013-06-17 01: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):
1  
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 opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #1 - Posted 2013-06-17 02: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 02: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 opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #3 - Posted 2013-06-17 02:09:22 »

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

Offline grimpirate

Senior Newbie


Projects: 1



« Reply #4 - Posted 2013-06-18 00: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 Coder


Medals: 40


From rags to riches...to rags.


« Reply #5 - Posted 2013-06-18 02: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 opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #6 - Posted 2013-06-18 04: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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (7 views)
2014-07-30 21:08:39

Riven (20 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!