Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 4865 times)
0 Members and 1 Guest are viewing this topic.
Offline sloesp

Senior Newbie

« Posted 2009-10-24 20: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):

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


Screenshots of game:
Click to Play
Click to Play
Click to Play

Click to Play
Click to Play
Click to Play
Offline kappa
« League of Dukes »

JGO Kernel

Medals: 120
Projects: 15


« Reply #1 - Posted 2009-10-24 20: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.

java.lang.UnsatisfiedLinkError: /home/user/.java/deployment/cache/6.0/63/1e7eff-3cdba68a-n/ /home/user/.java/deployment/cache/6.0/63/1e7eff-3cdba68a-n/ wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(
   at java.lang.ClassLoader.loadLibrary(
   at java.lang.Runtime.loadLibrary0(
   at java.lang.System.loadLibrary(
   at org.lwjgl.Sys$
   at Method)
   at org.lwjgl.Sys.doLoadLibrary(
   at org.lwjgl.Sys.loadLibrary(
   at org.lwjgl.Sys.<clinit>(
   at org.lwjgl.openal.AL.<clinit>(
   at com.ccorp.sound.CCALSound.<init>(
   at EuropeanHero.init(
   at EuropeanHero.<init>(
   at EHStartup.<init>(
   at EuropeanHero.main(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(
   at com.sun.javaws.Launcher.executeApplication(
   at com.sun.javaws.Launcher.executeMainClass(
   at com.sun.javaws.Launcher.doLaunchApp(
#### Java Web Start Error:
#### null
Offline sloesp

Senior Newbie

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

Ok, I'm afraid I did not include Linux 64 natives. Now I have added a JAR with the "" and "" 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))"


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jezek2
« Reply #3 - Posted 2009-10-25 06: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 14:39:41 »

Thank you for your feedback. I have included the font now in the game. And use the:
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
Global Moderator

JGO Wizard

Medals: 75
Projects: 4
Exp: 8 years

« Reply #5 - Posted 2009-10-25 19: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 20: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 18:06:48 »

Pages: [1]
  ignore  |  Print  

EgonOlsen (59 views)
2018-06-10 19:43:48

EgonOlsen (42 views)
2018-06-10 19:43:44

EgonOlsen (61 views)
2018-06-10 19:43:20

DesertCoockie (240 views)
2018-05-13 18:23:11

nelsongames (142 views)
2018-04-24 18:15:36

nelsongames (141 views)
2018-04-24 18:14:32

ivj94 (883 views)
2018-03-24 14:47:39

ivj94 (144 views)
2018-03-24 14:46:31

ivj94 (795 views)
2018-03-24 14:43:53

Solater (159 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
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!