D: Hostage Situation
A re-interpretation of traditional Minesweeper with the look and feel of those old "Guess Who?" characters (anyone remember playing that as a kid?). Except here they're hostages and they need your help! The clock is ticking...
INSTRUCTIONS:
I've provided a short in-game slideshow that explains how to play.
1. Run the game (see below)
2. Click the 'Game' menu (top left)
3. Click 'How to play'
In super-summary, left-click to attempt to clear a tile, right-click to plant a flag indicating a possible bomb. Try not to kill anyone.
========LATEST VERSION==============================
Known issue: had to reimplement music and sound effects on their own threads for jar version to work as intended. Has resulted in an unpredictable bug where sound effects stop working. You'll have to close the window and relaunch to get them back if this happens.
Content and gameplay is identical to original submission.
Download from http://www.fileswap.com/dl/F6cgOEnpXV/
=====COMPETITION VERSION=============================
TO RUN (WINDOWS OR UBUNTU terminal):
1) Download from http://www.fileswap.com/dl/lTNqjWdfWa/
2) Unzip HostageSituation.zip and navigate into HostageSituation folder
3) Enter 'javac *.java'
4) Enter 'java Minesweeper &' (yeah sorry, it should be called hostageSitch or something)
INSTRUCTIONS:
I've provided a short in-game slideshow that explains how to play.
1. Run the game (see below)
2. Click the 'Game' menu (top left)
3. Click 'How to play'
In super-summary, left-click to attempt to clear a tile, right-click to plant a flag indicating a possible bomb. Try not to kill anyone.
========LATEST VERSION==============================
Known issue: had to reimplement music and sound effects on their own threads for jar version to work as intended. Has resulted in an unpredictable bug where sound effects stop working. You'll have to close the window and relaunch to get them back if this happens.
Content and gameplay is identical to original submission.
Download from http://www.fileswap.com/dl/F6cgOEnpXV/
=====COMPETITION VERSION=============================
TO RUN (WINDOWS OR UBUNTU terminal):
1) Download from http://www.fileswap.com/dl/lTNqjWdfWa/
2) Unzip HostageSituation.zip and navigate into HostageSituation folder
3) Enter 'javac *.java'
4) Enter 'java Minesweeper &' (yeah sorry, it should be called hostageSitch or something)
Thanked by 1Muchie
Comments
Is there a way you could re-engineer it to match the competition constraints maybe?
If I retained the touchpad as one input (allowed?) and a long press to cycle through flag/uncover/do nothing....It would be doable I think. Unfortunately, I'm a third year varsity student with a prototype deadline looming, so I won't have the time to rework this without, well, failing :D I will have to gracefully bow out of the competition. Not too gutted - for me this was really about participating and getting feedback on my first game attempt.
So guys, I'd really, really appreciate if you still tried out my game and let me know your thoughts and hopefully have fun with it - I tried to make it amusing :)
Some tips next time for distributing your java code for next time.
If you build your java files into a jar they will work on any java compatible platform. This would mean people that want to run your game only the the jvm not the whole jdk
Here is an example; the web is full of 1000's of them
http://www.freejavaguide.com/jar_files.htm
I think the fact that I'm using the default package might be throwing it. Unfortunately, I can't investigate this further now 'cause of work :( Will try again after the long weekend.
Of course, lack of sleep has some other, less desirable effects as well, I fear, so it's likely not something to rely upon!
I've tried it now, and I think that it's a cool evolution of Minesweeper. I'll confess that I didn't look at the timers at all -- but then I was playing on the "relaxed" mode. I wonder whether it might not be improved -- perhaps by making one of the "hostages" the terrorist, and providing some way for the player to discover which it is through the course of play -- if they're attentive.
What do you people have against executables? Srsly :(
Do indeed treat the .jar file as an executable. Unzip the contents to the folder of your choice.
In a terminal/cmd, navigate to the folder to which you unzipped the .jar, then run "java Minesweeper".
Notes:
* It may be that you can run the Minesweeper class file with either a double-click or a selection from the context menu under Windows -- I don't know.
* It's the "Minesweeper" file that you pass to Java, not the one named "Hostage", I believe.
I really don't want to have to set up my environment variables and all that bullshit. *sigh*
I'll put the JRE on my machine this one time and get a version working
Dislekcia, I can see from your comments that I have very much frustrated you. For this I am truly, truly sorry. I did not put up a jar because I don't believe in making people's lives easy - I did that because it was honestly the best I was able to achieve with my current skillset and horribly limited time. Getting it into a jar file took me a full day of debugging. I failed completely at my attempt to bundle it into an exe. It is both frustrating and embarrassing for me that I have not been able to achieve better. But as embarrassing as it is, it is important to me that you understand that it's because I'm a novice and am not yet fully able to express myself technically, not because I'm some religious Linux fundi.
I hope that the above instruction works and, again, I am so sorry. I aim to not have this issue with my next submission (chiefly by not writing it using swing in the first place!)
I don't look at the clocks either. I think maybe there's just too much information on the screen. Or the player isn't invested in saving everyone. One way to solve this might be to just take out the partial win condition and make it so that as soon as someone dies, the game ends. Or maybe trophies!
Thanks for giving it a whirl :)
I mean, ease of getting into a prototype is going to have a huge impact on the amount of feedback you get on a new game. While I can understand the elegance of just giving people code, you have to factor in how much schlep it's going to be for them to get everything running properly. What do Mojang do to give people an executable for Minecraft? Why not just include a batch file to run the game correctly?
I really don't want to have to set up my environment variables and all that bullshit. *sigh*[/quote]
Argh, I meant "do indeed treat the .jar file as an archive", I believe -- sorry about that! >_<;
(I didn't have to set any environment variables. I don't think that I had to do anything other than what I described. o_0)
However, I take it that you have it working now? I hope so, and if so then the above is intended just to clarify.
@Kixie's "java -jar HostageSituation.jar" worked, but only after setting up the path environment variable on my XP machine to point to where Java was installed. Without the correct path settings, opening a random console and typing "java <X>" does sweet diddly.
After all that, game still uses mouse position. Can't really qualify it for Comp D :(
As to the mouse position, yeah, I was a little worried about that... : /
It worked right of the bat for me...although I have not played your game yet, will give it a go later this evening. I even installed a clean copy of Windows on a virtual machine, downloaded the JRE and it worked.
If you do need to wrap it in a executable you could use Launch4j:
http://launch4j.sourceforge.net/
It nice and easy, it has a GUI, just specify your jar, output exe and minimum JRE version and you are pretty much set to go.
Another one is:
http://www.jwrapper.com/
It is a bit more involved but a nice thing is you can specify an online update directory. The launcher will check for the latest version of you application using the update URL. I had to increase my heap memory to get it working as it pulls in offline JRE installs for different operating systems, eventually the following worked:
@dislekcia
If I am not mistaken @Kixie did mention this was for a varsity project which needed to completed first and withdrew from the competition.
Thanks for those executable wrappers, will throw those at future Java source projects here from now on.
@Kixie
Solid re-interpretation of minesweeper, good job.
Enjoyed the hostage time bomb aspect. Did find myself once waiting for the timer to run out to see who would blow up...dunno if that is such a good thing. I am in two minds whether or not the timer should give you some type of indication as to the hostage that it will blow up, so that you can at least work your way towards the hostage? Perhaps a bonus item that temporarily shows which time bomb a hostage is strapped too.
On the other hand, it is quite intriguing not knowing, so that once you get to a hostage it might not have been the time bomb you were hoping for and you are still left with the one with the least amount of time.
All in all great game. Hope you get some good marks for this one!
I like your power up idea. It could be a good way to end up experiencing both possibilities (i.e. knowing vs hoping). I'll let that percolate in the back of my mind and see what comes out.
Cheers for the feedback and for the technical tip :)