Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  
  Ludum Dare 23 - Forever Alone  (Read 7697 times)
0 Members and 1 Guest are viewing this topic.
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Posted 2012-04-26 06:35:37 »

So me and a friend, razorquick, participated our first ever Ludum Dare this past weekend!

I coded it using Java2D through my awesome game library while razorquick drew the amazing art.

In-depth description and gameplay can be found in the entry's description.

Screenshots!




[size=30pt]Play![/size]

Offline ReBirth
« Reply #1 - Posted 2012-04-26 13:42:01 »

Don't you think you should share your lib when you post the link?

I like the interface, very beautiful. The music too. My only problem is that I need to read before play it >.< Rated it.

Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #2 - Posted 2012-04-26 15:33:49 »

Exception in thread "Game Loop Thread" java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2786)

Prolly OS X specific with lower default setting or something.

I did increase it locally, but it only took me a bit further:

java.io.IOException: Error loading clip: jar:http://www.ra4king.com/games/LudumDare/23/ForeverAlone/ForeverAlone.jar!/res/ClairDeLune.ogg
   at com.ra4king.gameutils.Sound.extract(Sound.java:45)
   at com.ra4king.gameutils.Sound.extract(Sound.java:1)
   at com.ra4king.gameutils.Assets.add(Assets.java:29)
   at com.ra4king.gameutils.Assets.add(Assets.java:25)
   at com.ra4king.gameutils.Assets.add(Assets.java:21)
   at com.ra4king.spacegame.SpaceGame.initGame(SpaceGame.java:39)
   at com.ra4king.gameutils.Game.gameLoop(Game.java:435)
   at com.ra4king.gameutils.Game$8.run(Game.java:824)
Caused by: javax.sound.sampled.LineUnavailableException: Failed to allocate clip data: Requested buffer too large.
   at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:561)
   at com.sun.media.sound.MixerClip.open(MixerClip.java:165)
   at com.sun.media.sound.MixerClip.open(MixerClip.java:256)
   at com.ra4king.gameutils.Sound.extract(Sound.java:40)
   ... 7 more
java.lang.NullPointerException
   at com.ra4king.gameutils.Sound.loop(Sound.java:70)
   at com.ra4king.spacegame.SpaceGame.initGame(SpaceGame.java:45)
   at com.ra4king.gameutils.Game.gameLoop(Game.java:435)
   at com.ra4king.gameutils.Game$8.run(Game.java:824)


Write once, debug everywhere  Wink

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

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2012-04-26 18:17:59 »

Hmmm seems like Macs don't like to load large sound files :/

Offline Giovanni

Junior Member




chop!


« Reply #4 - Posted 2012-04-26 20:28:36 »

What a nice game! I really enjoyed playing it.
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #5 - Posted 2012-04-28 01:10:13 »

In Ubuntu 10.04 with java 1.6, all I got was a gray window... running at 120fps though! I like the idea and look forward to trying it in the future.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2012-04-28 07:18:43 »

Did you find any exceptions in the Java console? If you don't have a java console popping up, enable it in the java settings control panel Smiley

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #7 - Posted 2012-04-28 13:29:27 »

Sorry for my lack of debugging. Crash is caused when no audio line is available:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
java.io.IOException: Error loading clip: jar:http://www.ra4king.com/games/LudumDare/23/ForeverAlone/ForeverAlone.jar!/res/blast.wav
  at com.ra4king.gameutils.Sound.extract(Sound.java:45)
   at com.ra4king.gameutils.Sound.extract(Sound.java:1)
   at com.ra4king.gameutils.Assets.add(Assets.java:29)
   at com.ra4king.gameutils.Assets.add(Assets.java:25)
   at com.ra4king.gameutils.Assets.add(Assets.java:21)
   at com.ra4king.spacegame.SpaceGame.initGame(SpaceGame.java:36)
   at com.ra4king.gameutils.Game.gameLoop(Game.java:435)
   at com.ra4king.gameutils.Game$8.run(Game.java:824)
Caused by: javax.sound.sampled.LineUnavailableException: Audio Device Unavailable
   at com.sun.media.sound.HeadspaceMixer.nResume(Native Method)
   at com.sun.media.sound.HeadspaceMixer.implOpen(HeadspaceMixer.java:346)
   at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:286)
   at com.sun.media.sound.AbstractMixer.open(AbstractMixer.java:323)
   at com.sun.media.sound.MixerClip.open(MixerClip.java:162)
   at com.sun.media.sound.MixerClip.open(MixerClip.java:256)
   at com.ra4king.gameutils.Sound.extract(Sound.java:40)
   ... 7 more
java.lang.NullPointerException
   at com.ra4king.gameutils.Sound.loop(Sound.java:70)
   at com.ra4king.spacegame.SpaceGame.initGame(SpaceGame.java:45)
   at com.ra4king.gameutils.Game.gameLoop(Game.java:435)
   at com.ra4king.gameutils.Game$8.run(Game.java:824)

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #8 - Posted 2012-04-28 18:12:57 »

These errors are common on Linux. No clue how to fix them. Anyone here a JavaSound expert on Linux?

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #9 - Posted 2012-04-28 18:20:53 »

These errors are common on Linux. No clue how to fix them. Anyone here a JavaSound expert on Linux?

I've been able to play sounds on Linux using Sun/Oracle Java 1.6, but it's certainly glitchy. For one, it chooses the wrong mixer, failing if anything else is using sound at the moment & also blocks anything else from playing sounds. Under OpenJDK, my sound files won't load (doesn't understand the format of the WAV files).

To address the problem, I just catch any such exceptions from the sound system, log a warning, and otherwise ignore. Expert advice would be most welcome.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #10 - Posted 2012-04-28 18:40:04 »

Ok, I updated it to only log errors and ignore. Try playing it now! Smiley

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #11 - Posted 2012-04-28 19:09:55 »

Ok, I updated it to only log errors and ignore. Try playing it now! Smiley

It runs! The same exception is shown in the console, but the game plays. Thanks for the update.

I like the full screen mode. Is 8fps bad?

Is this actually running in full screen exclusive mode, or just using an undecorated frame and setting its size to the screen resolution? I'm asking because I've also had trouble with full screen mode in Linux, but this appears to do the trick.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #12 - Posted 2012-04-28 19:16:09 »

This is full screen mode using GraphicsDevice.setFullScreenWindow(Window).

8FPS.....what are your system specs? Shocked

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #13 - Posted 2012-04-28 19:35:43 »

This is full screen mode using GraphicsDevice.setFullScreenWindow(Window).

8FPS.....what are your system specs? Shocked

It's good to know that full screen does work - I think I'll add a toggle to my game! My system specs are very modest. I have an ok AMD/ATI chip using FGLRX drivers in Ubuntu Linux 10.04, but I've not yet seen Java apps (or otherwise) actually utilize the GPU. I'm sure this is just my own weak configuration. I've tinkered with drivers and such, but only end up muddling other things, so I just stick with the most stable setup.

My excuse is that I want to test my game(s) at the lowest possible denominator, so I know it can perform well for the majority of players.

Forever Alone is still playable at 8fps!

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #14 - Posted 2012-04-28 20:30:15 »

ATI on Linux......that's like telling Microsoft and Apple to get along XD

AMD/ATI cards have horrible support for Linux. In fact, they are horrible all-around Smiley

I'm glad it's still playable at 8FPS though Cheesy

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #15 - Posted 2012-04-28 20:59:03 »

ATI on Linux......that's like telling Microsoft and Apple to get along XD

AMD/ATI cards have horrible support for Linux. In fact, they are horrible all-around Smiley

I'm glad it's still playable at 8FPS though Cheesy

Yeah, that's pretty much what I concluded. Good to know it's not just me. I've never really been a big 3D acceleration junkie, so it wasn't a driving factor. (I put together my whole rig for less than a decent graphics card would have cost.)

Anyway, to stay on topic, I'll try your game again later and get into the actual gameplay more.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #16 - Posted 2012-04-28 22:35:07 »

OK, actually played a bit. It runs faster for me in (smaller) windowed mode (at a whopping 23fps), rather than full-screen. This implies that on my machine, full-screen is not getting any acceleration (just a normal window sized to fill the entire screen space). Ugh, linux.

In any case, I like the concept of your game. It's difficult to know from whom I've looted (to avoid their retaliation on successive raids). I don't think I've played enough to fully experience the build-up aspect, but I'm a fan of this type of gameplay.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #17 - Posted 2012-04-28 23:45:02 »

Thanks for playing!

Offline matheus23

JGO Kernel


Medals: 108
Projects: 3


You think about my Avatar right now!


« Reply #18 - Posted 2012-04-30 16:18:46 »

Nyhm: maybe you should try to run int from command-line with: java -Djava.awt.opengl=true -jar [whateverjar]

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline bach

Senior Member


Medals: 3
Projects: 2



« Reply #19 - Posted 2012-04-30 16:32:43 »

Hey this is pretty cool Smiley

Performance seemed to be fairly slack though.. sometimes dropping as low as 15 fps other times nice and consistently at 60fps.. Either way, nice entry. Rated.
Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #20 - Posted 2012-04-30 16:41:08 »

Nyhm: maybe you should try to run int from command-line with: java -Djava.awt.opengl=true -jar [whateverjar]

Thanks for the tip - no difference.

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline Dream Of Sleeping
« Reply #21 - Posted 2012-05-03 15:45:28 »

It looks great. I like the look of the menus.  Clair de lune is one of my all time favorite pieces of music, and it's unusual to have it as the backing music but it works well in creating an alone in space type atmosphere.

Gameplay wise it just wasn't my thing. I struggled to get through the instructions without my mind wandering, and could only manage playing for a few minutes. But that maybe says more about my personal taste in games then it does about your game.

Also how did you manage to get the black borders to pad out the photo on the showcase preview? The photo on my game just shows half the image.

Offline sproingie

JGO Kernel


Medals: 202



« Reply #22 - Posted 2012-05-03 16:04:04 »

I love the music.  Just to clear up what you say on the LD page, the composition may be public domain, but the performance definitely isn't.  Pretty clear cut case of "no harm no foul" though, so I wouldn't sweat it.

Future idea: As long as the planets will be sending out fleets to attack you, you should also consider the idea that some of the planets are at war with each other.  But as you attack them more and more, they'll start to ally and join forces against you.  Could force you to lay low against some planets, maybe try to intercept diplomatic ships to prevent the alliance from forming (a move that would get riskier with each ship they send), etc.
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #23 - Posted 2012-05-03 16:18:14 »

It looks great. I like the look of the menus.  Clair de lune is one of my all time favorite pieces of music, and it's unusual to have it as the backing music but it works well in creating an alone in space type atmosphere.

Gameplay wise it just wasn't my thing. I struggled to get through the instructions without my mind wandering, and could only manage playing for a few minutes. But that maybe says more about my personal taste in games then it does about your game.

Also how did you manage to get the black borders to pad out the photo on the showcase preview? The photo on my game just shows half the image.
Clair de Lune is my favorite music to play too Smiley

It doesn't really have much gameplay other than trying to destroy all 50 planets and conquering the universe (I know..I know....very original >.>)

No clue....that's JGO stuff, ask Riven! Smiley

I love the music.  Just to clear up what you say on the LD page, the composition may be public domain, but the performance definitely isn't.  Pretty clear cut case of "no harm no foul" though, so I wouldn't sweat it.

Future idea: As long as the planets will be sending out fleets to attack you, you should also consider the idea that some of the planets are at war with each other.  But as you attack them more and more, they'll start to ally and join forces against you.  Could force you to lay low against some planets, maybe try to intercept diplomatic ships to prevent the alliance from forming (a move that would get riskier with each ship they send), etc.
That's an amazingly amazing idea! Thanks! Shocked

Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #24 - Posted 2012-05-14 21:13:14 »

Woohoo the results are in!!

#37   Mood      3.50
#44   Audio      3.55
#54   Fun      3.30
#69   Overall   3.39
#107   Innovation   3.09
#116   Theme   3.04
#156   Graphics   2.96
#177   Humor   1.92

Out of 330 Jam games, this is not bad! I'm so proud of myself and razorquick for our first awesome entry Cheesy

Offline Nyhm

Senior Member


Medals: 3
Projects: 1


Island Forge


« Reply #25 - Posted 2012-05-14 21:14:19 »

Awesome accomplishment!

Island Forge: Create Islands with Stories for Others to Explore!
Free-to-Play with Membership and Upgrade options!
Offline _Al3x

Senior Member


Medals: 7


Indie Games FTW!


« Reply #26 - Posted 2012-05-15 00:05:32 »

Just great! Congratulations!!! Smiley

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!