[Windows, Mac, Linux] Modern Galaga

Have fun! :smiley:

https://www.mediafire.com/?6wf2dyrbdf8c2dr

To the game itself:

Very nice! I really liked hovering over those buttons! :smiley:
The routing of the enemies was nicely done, I saw no bugs, it worked flawlessly :slight_smile:
I’d like more content, but I’m sure you know that :smiley:

To the way you ship it:

Please add some startup scripts. Double-clicking jars doesn’t work easily with natives, I’m afraid. But for that reason we have command line scripting:
Add a linux file “startLinux.sh”:


#!/bin/sh
java -Djava.library.path="nat/linux" -jar galaga.jar

mac is a little more complicated, afaik… App bundles and such. I have never worked with a mac in my life, so I can’t tell you how that works…
And for windows add a file “startWindows.bat”:


java -Djava.library.path="nat/windows" -jar galaga.jar

So that would help others trying out your game ^^

You mean this doesn’t work?


	      
	      String system = System.getProperty("os.name");
	      
	      String path = null;
	      path = new File("nat").getAbsolutePath();

	      if(path == null) {
	         System.out.println("Couldn't load natives!");
	         return;
	      }

	      path += "/";
	      
	      if (system.contains("Windows")) {
	          System.setProperty("org.lwjgl.librarypath", path + "windows");
	      }
	      else if (system.contains("Mac")) {
	          System.setProperty("org.lwjgl.librarypath", path + "mac");
	      }
	      else if (system.contains("Linux")) {
	          System.setProperty("org.lwjgl.librarypath", path + "linux");
	      }

It does, but it has to be the very first thing you call before everything else to work properly. I think this is why bundling is more popular, because there is no way to tell if someone did it right or not. With the bat and sh files, you can cover all use cases where the user is a goof. Also, Windows messes up the path on some editions when I used it in practice. Best to do the extra work, just to be safe and send via a rar :wink:

I like the lighting, I’ve always been a sucker for that kind of stuff.

At least it didn’t work for me ???

I tried running this on mac and it didn’t work. I think the reason is that the path in my native loader is set to nat/mac and the folder of natives was nat/macosx

This might work and it might not :smiley: Will see…
https://www.mediafire.com/?xtjscscjylyd1h1

Wow! Nice job, I love the AI.

One thing I would change is the shooting sound, pierces the ear after about 2 minuets of playing :slight_smile:

ahhh that. Agree :smiley:

Thats SFXR for you. I probably should add like 3 shooting sounds in total (played randomly each time)

The problem is, I think this thingy cannot run on mac for some reason… Tested it at work on Mac and it didn’t work.

I got a score of 10 and yet it says my final score was 0 :frowning:
It also crashes when you disable v-sync.

Good game, I especially like the button animation.