ra4king
|
 |
«
Posted
2012-04-26 08: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]
|
|
|
|
ReBirth
|
 |
«
Reply #1 - Posted
2012-04-26 15: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.
|
|
|
|
jojoh
|
 |
«
Reply #2 - Posted
2012-04-26 17: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 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
ra4king
|
 |
«
Reply #3 - Posted
2012-04-26 20:17:59 » |
|
Hmmm seems like Macs don't like to load large sound files :/
|
|
|
|
Giovanni
|
 |
«
Reply #4 - Posted
2012-04-26 22:28:36 » |
|
What a nice game! I really enjoyed playing it.
|
|
|
|
|
Nyhm
|
 |
«
Reply #5 - Posted
2012-04-28 03: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.
|
|
|
|
ra4king
|
 |
«
Reply #6 - Posted
2012-04-28 09: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 
|
|
|
|
Nyhm
|
 |
«
Reply #7 - Posted
2012-04-28 15: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: 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) |
|
|
|
|
ra4king
|
 |
«
Reply #8 - Posted
2012-04-28 20:12:57 » |
|
These errors are common on Linux. No clue how to fix them. Anyone here a JavaSound expert on Linux?
|
|
|
|
Nyhm
|
 |
«
Reply #9 - Posted
2012-04-28 20: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.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
ra4king
|
 |
«
Reply #10 - Posted
2012-04-28 20:40:04 » |
|
Ok, I updated it to only log errors and ignore. Try playing it now! 
|
|
|
|
Nyhm
|
 |
«
Reply #11 - Posted
2012-04-28 21:09:55 » |
|
Ok, I updated it to only log errors and ignore. Try playing it now!  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.
|
|
|
|
ra4king
|
 |
«
Reply #12 - Posted
2012-04-28 21:16:09 » |
|
This is full screen mode using GraphicsDevice.setFullScreenWindow(Window). 8FPS.....what are your system specs? 
|
|
|
|
Nyhm
|
 |
«
Reply #13 - Posted
2012-04-28 21:35:43 » |
|
This is full screen mode using GraphicsDevice.setFullScreenWindow(Window). 8FPS.....what are your system specs?  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!
|
|
|
|
ra4king
|
 |
«
Reply #14 - Posted
2012-04-28 22: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  I'm glad it's still playable at 8FPS though 
|
|
|
|
Nyhm
|
 |
«
Reply #15 - Posted
2012-04-28 22: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  I'm glad it's still playable at 8FPS though  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.
|
|
|
|
Nyhm
|
 |
«
Reply #16 - Posted
2012-04-29 00: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.
|
|
|
|
ra4king
|
 |
«
Reply #17 - Posted
2012-04-29 01:45:02 » |
|
Thanks for playing!
|
|
|
|
matheus23
|
 |
«
Reply #18 - Posted
2012-04-30 18:18:46 » |
|
Nyhm: maybe you should try to run int from command-line with: java -Djava.awt.opengl=true -jar [whateverjar]
|
|
|
|
bach
|
 |
«
Reply #19 - Posted
2012-04-30 18:32:43 » |
|
Hey this is pretty cool  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.
|
|
|
|
|
Nyhm
|
 |
«
Reply #20 - Posted
2012-04-30 18: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.
|
|
|
|
Dream Of Sleeping
|
 |
«
Reply #21 - Posted
2012-05-03 17: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.
|
|
|
|
sproingie
|
 |
«
Reply #22 - Posted
2012-05-03 18: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.
|
|
|
|
|
ra4king
|
 |
«
Reply #23 - Posted
2012-05-03 18: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  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!  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! 
|
|
|
|
ra4king
|
 |
«
Reply #24 - Posted
2012-05-14 23: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 
|
|
|
|
Nyhm
|
 |
«
Reply #25 - Posted
2012-05-14 23:14:19 » |
|
Awesome accomplishment!
|
|
|
|
_Al3x
|
 |
«
Reply #26 - Posted
2012-05-15 02:05:32 » |
|
Just great! Congratulations!!! 
|
|
|
|
|