Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  Sokoban Clone  (Read 4103 times)
0 Members and 1 Guest are viewing this topic.
Offline biro

Junior Member


Medals: 1
Projects: 1



« Posted 2011-12-27 16:02:07 »

Hello,
I believe that's the first projekt I've shown you so far.

I hope everybody of you remembers the old game Sokoban, where the objective of the game was to push boxes on their responding Places.

Because I had a little bit free time the last week I tried to write my own Sokoban, with which I succeded.
The game supports two languages: german and non german (which let's you play the game in english), and because I'm kind of unlucky with java web start and applets I've only got a .jar file for you, if you have a good tutorial for me I'm happy to take a look at it.

The reason for only adding 12 levels it, that I'm not too sure about the copyrights from the level in the web, so I made these 12 level myself, I hope you don't mind that.

Here a few Images:







The sound I used is from http://incompetech.com/m/c/royalty-free/, I hope I made no mistake with my credits, and that you'll like it.

Link: (.wav Files are freaking huge, so my game is about 28mb large I hope you don't mind...)
http://armado.info/images/sokoban/Sokoban.jar

Some Shortkeys:
m = map (shows the complete map, the best choice when the map is larger that the screen)
o = options
f1 = help (shows the Shortkeys)
r = level reset
b = reset your last move

Many Greetings biro

P.S.
I've only tested it with windows 7 and XP so I'm not too sure if it rund on Linux and Mac, it would be nice if someone could test it there Cheesy
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2011-12-28 22:18:35 »

It ran fine on Windows 7 for me and was quite fun Smiley
However I didn't hear any music at all Sad

Offline biro

Junior Member


Medals: 1
Projects: 1



« Reply #2 - Posted 2011-12-28 22:25:14 »

Hello,
thanks for the feedback, the problem with the sound is, that it's very quiet. Please try pressing o and make the volume a little more loud.

If you should still hear nothing send me a console log please

biro
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2011-12-28 22:37:07 »

1  
2  
3  
4  
5  
6  
7  
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(Unknown Source)
        at java.io.FilterInputStream.reset(Unknown Source)
        at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(Unknown Source)
        at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
        at info.armado.sukoban.Sound.run(Sound.java:42)
        at java.lang.Thread.run(Unknown Source)


Aha, you also hit the Java 7 bug that me and Philfrei discovered and fixed. Smiley

Offline asphaltgalaxy

Junior Member


Medals: 1



« Reply #4 - Posted 2011-12-29 14:35:12 »

Nice game, well done. Although not really my favorite genre.

On Ubuntu 11.10 with Java 6 under VirtualBox got this one:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
ub_test@ubtest:~/Downloads$ java -jar Sokoban.jar 
00a.lvl
00b.lvl
01.lvl
02.lvl
03.lvl
04.lvl
05.lvl
06.lvl
07.lvl
08.lvl
09.lvl
10.lvl
java.io.IOException: mark/reset not supported
   at java.util.zip.InflaterInputStream.reset(InflaterInputStream.java:286)
   at java.io.FilterInputStream.reset(FilterInputStream.java:217)
   at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(SoftMidiAudioFileReader.java:135)
   at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1111)
   at info.armado.sukoban.Sound.run(Sound.java:42)
   at java.lang.Thread.run(Thread.java:679)

UPD: So I managed to run the game under Ubuntu, although without sound, but graphics and movement were OK. Closed the game and noticed error posted above.

On virtual WinXP everything went smooth.
Offline biro

Junior Member


Medals: 1
Projects: 1



« Reply #5 - Posted 2011-12-29 19:53:08 »

Thanks alot for your help,
I hope that I've fixed the soundissue, by changing the inputstream to an url like the link from ra4king suggests.

I'm uploading the new version at the moment, it should be avaible in a few minutes under the old url in my first thread.
It would be nice if you could test it again, and tell me if the problem still appears.

Greetings
biro

P.S.
The upload is complete now.
Before I forget it, the language you see is the correct one I assume? It's the first time that I work with more than one language^^
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2011-12-29 20:07:01 »

The sound works now, and I really love the background music!

Offline asphaltgalaxy

Junior Member


Medals: 1



« Reply #7 - Posted 2011-12-30 08:27:57 »

Still no sound on Ubuntu, got this:

1  
2  
3  
4  
java.lang.IllegalArgumentException: Master Gain not supported
   at org.classpath.icedtea.pulseaudio.PulseAudioLine.getControl(PulseAudioLine.java:89)
   at info.armado.sukoban.Sound.run(Sound.java:51)
   at java.lang.Thread.run(Thread.java:679)
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #8 - Posted 2011-12-30 08:44:57 »

Ubuntu sucks.

Offline biro

Junior Member


Medals: 1
Projects: 1



« Reply #9 - Posted 2011-12-30 09:22:22 »

Hello,
the master gain is the way with which I change the sound volume...
so it looks like ubuntu doesn't support changes in its volume...

Before I've tried to use the Volume FloatControl but that didn't work on windows^^ So it may be possible that the volume control may work with ubuntu (maybe even all linux oses?) , but then I believe that it won't work with windows.

Because atm I don't use ubuntu I can't test it well mysel, so is someone here that has a little bit experience with ubuntu and JavaSound, wo may give me a few hints to solve this problem?

biro
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline asphaltgalaxy

Junior Member


Medals: 1



« Reply #10 - Posted 2011-12-30 09:24:12 »

Ubuntu sucks.

You can find a lot of people who will tell you're wrong Smiley But personally for me Ubuntu is better than any other distro. Tried several distros on virtual/old hardware.

And when it comes to Java... It seems that only on Win platforms there are less problems with Java. I'm not so experienced, but reading JGO makes me feel like that.
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #11 - Posted 2011-12-30 09:28:42 »

Most things don't work well for Linux and work fine for Windows Grin

Pages: [1]
  ignore  |  Print  
 
 

 
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!