Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (591)
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 2528 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): 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:
Click to Play
Click to Play
Click to Play

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

JGO Kernel


Medals: 78
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.

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 21: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!
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:
 
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: 48
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  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Gibbo3771 (7 views)
2014-11-24 19:59:16

trollwarrior1 (35 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (66 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!