CroAsteroids on www.javagamesfactory.org

I have just uploaded a functional version of CroAsteroids. If anyone has a minute or two to kill to check it out and post a comment here it would be real appreciated. The game is on www.javagamesfactory.org, name is CroAsteroids. Link: http://www.javagamesfactory.org/views/view-game?name=CroAsteroids. Thanks in advance!

go LWJGL!!!

The movement is pretty smooth an I liked it. There is a big lack of sounds though. Idea is pretty original and interesting and I liked the backgroung image.
P.S. I noticed that my shots change color and don’t know if that is intentional?
If you add more levels with more backgrounds and growingly heavier equations , it could raise your gameplay.
Keep it up!

thanks for the info. I am planning to add levels and different math equations, although it will get complicated. The shots are still undecided for… I need to put some kind of offect around them but have not decided what yet. At the moment it’s a sphere with a particle effect. Something like a burning bullet. I need to play with colors, textures. I would also like to add a timer going against the player in each level and a score list. How do they do that with webstart? If all the files are downloaded to the local machine where can you write the scores to so that other players would see them? I don’t understand that part.

looks like a good game but i get the following error

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
	at java.lang.Runtime.loadLibrary0(Runtime.java:822)
	at java.lang.System.loadLibrary(System.java:992)
	at org.lwjgl.Sys$1.run(Sys.java:67)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.<clinit>(Sys.java:65)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:104)
	at CroAsteroids1.lib.Asteroids.createWindow(Asteroids.java:251)
	at CroAsteroids1.lib.Asteroids.init(Asteroids.java:267)
	at CroAsteroids1.lib.Asteroids.run(Asteroids.java:113)
	at CroAsteroids1.lib.Asteroids.main(Asteroids.java:107)
	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:585)
	at com.sun.javaws.Launcher.executeApplication(Launcher.java:1098)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1045)
	at com.sun.javaws.Launcher.continueLaunch(Launcher.java:896)
	at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:468)
	at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
	at com.sun.javaws.Launcher.run(Launcher.java:165)
	at java.lang.Thread.run(Thread.java:595)
#### Java Web Start Error:
#### null

First of all thanks for checking it out kapta.

Secondly, there might be two solutions to this error:

  1. Either you need to erase the cached version of CroAsteroids of your computer. Reasons?! Who needs reasons when you’ve got heroin.

  2. I need to put up dll’s for linux as hvor suggested. Which is something I will do immediately.

Again thanks for the feedback. Appreciated!

at the moment i am having problems setting which jar is at the top of the list in the .jnlp file (which jar holds the runner class) so if you get an error that looks like this:

Could not find main-class CroAsteroids1.lib.Asteroids in http://www.javagamesfactory.org/attachments/game/CroAsteroids/alpha%2F4%2Flwjgl.jar

sorry…otherwise post it here so i can fix whatever i can.

thank the lord the main jar is at the top of the list ;D…things should not be this uncertain with computers…

I am still having problems with textures. Locally it runs ok, and the asteroids have ok textures. But when i upload it they get loaded without an error, however they are blak. On the other hand the cursor pointing at the position and operators have a little red going accross them which is a part of the texture. The texture is sphere mapped, but the white is not showing. I am going crazy here…

The game looks neat but it has a rather serious memory leak. It’s eating 10-12 MB every second or so on my machine (viewed in Task manager between Mem Usage and VM Size).

Shiiiiznit…thank you for the info. I’ve never dealt with these kinds of errors…i’m getting all excited…;D
The game is not complicated so i shouldn’t have problems discovering the leak…right… :-\

it’s really nice to get some response!
Thanks again Vorax :slight_smile:

I found the leak. Horrible…

i had this in a loop when drawing models:
ByteBuffer buffer = ByteBuffer.allocateDirect(16).order(ByteOrder.nativeOrder());

i placed it as a class variable so it is called once and then i buffer.clear(); it.
I wonder what th edifference is between allocate and allocateDirect?

Pretty cool gameplay, and gorgeous looking too. Your background images are pretty large though, might want to save them out in a smaller format or smaller size.

Yes indeed…i see some of the games here are under 4 MB and are much more complex than mine. Technopolies and Monstrumo for example. I’ll have to do that, i just hope the picture ends up looking just as nice. It’s a big part of the game design…

Well I used photoshop to re-save one of the 400k+ ones (the first one you see) at 75% or so quality and the file was about 1/4 the original size and had no differences that I could discenern with my eye looking at it full size. Also, the backgrounds are 1024x768, yet I don’t see any way to run the game at anything other than 800x600. So there’s no point in having the backgrounds larger than your max game res either.

I also noticed that you are working with bitmaps for number textures. I totaly agree with anarchotron - switch them all into jpgs to get smaller game jar.

will do…thanks boyz…poisoning our precious bodily fluids with extra bytes! Arrr…

Worked fine for a bit, then started to get garbage collections every second or so. Maybe look through your main loop and try to reduce the number of objects that are created and discarded.

Also I need to look for and read the game instructions :wink:

Alan

I’ve been trying to upload a new version on JGF but i am having problems. The automated JNLP creator is not working the way it should so the jar having the main class is not on top of the list of JARS and it has to be (one of the webestart rules). I’ve tried deleting and uploading everything again and again but it wont work. It’s so frustrating.

I wrote to blahblahblah on that problem (I realised it, too). Hopefully he will fix it soon. I know how frustrating it can be ;).

The new homepage of CroAsteroids where you can find the latest version is:

http://vedsta5.freeserverhost.com/