Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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  
  2D side scrolling shoot-em-up  (Read 1816 times)
0 Members and 1 Guest are viewing this topic.
Offline sloesp

Senior Newbie





« Posted 2009-10-24 22:01:41 »

Long long time ago I made a 2D side scrolling shoot-em-up with a friend of mine, but unfortunately you had to download the game to actually play it.

Recently I have had some sparetime on my hands and was able to convert it to JWS. So it should be really easy to run now. It also includes the libraries for Linux and Mac OS (next to Windows).

Link to JWS (about 20MB total download): http://www.dagvandemaker.nl/EH/EuropeanHero.jnlp

You can get an impression of the game in action by choosing "demo" from the main menu.

The controls are:
Q = shoot
W = shield
A  = toggle items
S = use item

Regards,
Chris

Screenshots of game:

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 50
Projects: 15


★★★★★


« Reply #1 - Posted 2009-10-24 22:29:12 »

The menu shows up but the font is unreadable as its black like the background of the buttons.

you can see the font slightly when you hold mouse on the button.

Then it fails to work here, it looks like your missing the lwjgl natives for linux64 or using a really old version of lwjgl that doesn't support 64bit linux.

Quote
java.lang.UnsatisfiedLinkError: /home/user/.java/deployment/cache/6.0/63/1e7eff-3cdba68a-n/liblwjgl.so: /home/user/.java/deployment/cache/6.0/63/1e7eff-3cdba68a-n/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1687)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1028)
   at org.lwjgl.Sys$1.run(Sys.java:72)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
   at org.lwjgl.Sys.loadLibrary(Sys.java:81)
   at org.lwjgl.Sys.<clinit>(Sys.java:98)
   at org.lwjgl.openal.AL.<clinit>(AL.java:59)
   at com.ccorp.sound.CCALSound.<init>(CCALSound.java:90)
   at EuropeanHero.init(EuropeanHero.java:1240)
   at EuropeanHero.<init>(EuropeanHero.java:1033)
   at EHStartup.run(EuropeanHero.java:25726)
   at EHStartup.<init>(EuropeanHero.java:25648)
   at EuropeanHero.main(EuropeanHero.java:1022)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.sun.javaws.Launcher.executeApplication(Launcher.java:1468)
   at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1414)
   at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1225)
   at com.sun.javaws.Launcher.run(Launcher.java:114)
   at java.lang.Thread.run(Thread.java:619)
#### Java Web Start Error:
#### null
Offline sloesp

Senior Newbie





« Reply #2 - Posted 2009-10-24 23:22:45 »

Ok, I'm afraid I did not include Linux 64 natives. Now I have added a JAR with the "liblwjgl64.so" and "libopenal64.so" files. That should do the trick right? I am using LWJGL 2.1.0.

As for the font, I changed the colours and the font itself. But the game itself uses Tahoma (like the startup menu), so I don't know what the effect ingame is.

Also I can see from the image that you included that the font size is different as to what I get in Windows. How could I make the font look the same on every OS? Currently I use this: "button1.setFont(new Font ("Arial", Font.BOLD,12))"


Thanks,
Chris

 
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline jezek2
« Reply #3 - Posted 2009-10-25 07:37:10 »

Also I can see from the image that you included that the font size is different as to what I get in Windows. How could I make the font look the same on every OS? Currently I use this: "button1.setFont(new Font ("Arial", Font.BOLD,12))"

Arial is not available on Linux by default. Best way is to embed TTF font directly into your game and load it using Font.createFont method (remember to store it into some field and use deriveFont methods to get different size and styles). There are some free fonts that allow such kind of usage/distribution, like DejaVu fonts.
Offline sloesp

Senior Newbie





« Reply #4 - Posted 2009-10-25 15:39:41 »

Thank you for your feedback. I have included the font now in the game. And use the:
 
1  
2  
3  
InputStream is = getClass().getResourceAsStream("data/fonts/tahomabd.ttf");
Font font_type = Font.createFont(Font.TRUETYPE_FONT, is);
font_type = font_type.deriveFont(12f);


command to get the Font from the JAR file. On windows it works, but don't know about Linux. And is the issue of font size solved by doing this?

Still have to find a free Tahoma font though... Sad

Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 42
Projects: 6



« Reply #5 - Posted 2009-10-25 20:42:37 »

hey I gave the game a try (I'm on windows so everything was fine)

Well the game is very well  produced, it certainly looks (almost) professional.
But one thing you should REALLY improve is the main spaceship art ... come on, just one frame ?? this is something the player will keep looking at as long as he plays the game, so it's better to be something nice ... some left/right gliding animations, maybe a light effect when shots, stuff like that . But really, you spent a lot of effort on the rest of the graphics that will probably be overlooked by the poor spaceship graphics .

Well I couldn'go much further in the game, cause I had to leave. Even though there is a "restore" option, I didn't see exactly how to activate it and restore my game.

Apart from that issues, congratulations for the game .. it is really nice . (but it can still improve 50% or so with a new spaceship looks and animation!)

Offline sloesp

Senior Newbie





« Reply #6 - Posted 2009-10-25 21:10:23 »

Thanks for the feedback,

Guess you are right. Everybody keeps bitchin' about the main ship. Let's just say that after finishing the game, I did not have the strength any more to improve that  Smiley. But comments on the main ship seem to be a reoccurring theme. I'll definitely look into it!


Ooh yeah, I disabled the save function, because with Web start the game files sometimes keep ending up on someones desktop. But you can always restart a level, and the first episode is 6 stages, so can be finished in 40 minutes or so.

 
Offline sloesp

Senior Newbie





.
« Reply #7 - Posted 2009-10-28 19:06:48 »

.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (100 views)
2013-05-17 21:29:12

alaslipknot (108 views)
2013-05-16 21:24:48

gouessej (138 views)
2013-05-16 00:53:38

gouessej (133 views)
2013-05-16 00:17:58

theagentd (145 views)
2013-05-15 15:01:13

theagentd (131 views)
2013-05-15 15:00:54

StreetDoggy (174 views)
2013-05-14 15:56:26

kutucuk (196 views)
2013-05-12 17:10:36

kutucuk (198 views)
2013-05-12 15:36:09

UnluckyDevil (204 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.134 seconds with 22 queries.