Asteroids

Hey,
I’m new here and want to share my new game.
Usually I write games just for fun, and never really publish them, because I find them not polished enough. Spent some more time with this one now, and I hope you like it. :wink:
First of all I want to give some credit to ForeignGuyMike, whose Asteroids-Tutorial helped me a lot, especially with collision-detection.

The game is kind of like the original Asteroids-Game, but I added some stuff like a stronger enemy, who gives you a buff for a short time, general upgrades, and a special ability which creates an “explosion” of bullets around the player.

Here are some screenshots:

Download: http://www.file-upload.net/download-8678635/Asteroids.zip.html

I’d appreciate your feedback. If you find any bugs please let me know. :wink:

Hope you enjoy :wink:

i got a blank grey screen on startup.

Oh. What OS do you use?
/edit: and have you downloaded the whole zip? The save folder has to be at the same destination as the jar.

windows7. i dont know what other info is helpful? i dont see any error file or anything.

Can you please start it with the cmd?
like


cd desktop/asteroids
java -jar asteroids.jar

If there’s an error it will show up in the cmd.

I also get a blank screen when I start it up. I’m using Windows 8 myself.

Attempting to start it through the CMD interface (java -jar Asteroids.jar) results in no standard error. However, if I close the UI screen the CMD does not acknowledge an exit (Not sure if that’s important in this case or not.)

I don’t get it. I use Windows 8 myself and everything works…
Just to be sure, you both downloaded the zip, not just the jar?

That’s the only idea I have…

could be the problem. the download page is confusing.

i downloaded the zip, and now i have a black screen instead of grey, which is good, cos it is a space game!

I will upload it somewhere else tomorrow.
Hope I’ll be able to fix that. I just sent it a friend and it works for him.
Could someone else try it please?

it must be a problem with initialization? those extra files in the zip dont have any much data in them, but having them there makes the screen black instead of gray, so perhaps something in that area is causing a problem?

Nice game, works fine for me, Win7 64

Areas for improvement (just some quick critique):

  • Sounds / Music (sounds, like menu blips, blaster fire, and explosions are more important than music for a game like this IMHO, check out Bfxr if you’re interested.
  • I think you should be able to hold down the arrow keys to auto-scroll the menu
  • Maybe I’m just forgetting how the original Asteroid worked, but this would honestly be much more fun if the blaster was manual instead of auto

Otherwise, I really like the style and aesthetics you got going here. SO many amateurish games looking far less professional than they might only for lack of a good font! :wink: (and, you know… cohesive looks)


Exception in thread "Asteroids" java.lang.IllegalStateException: Buffers have not been created
        at sun.awt.X11.XComponentPeer.getBackBuffer(XComponentPeer.java:1223)
        at java.awt.Component$FlipBufferStrategy.getBackBuffer(Component.java:4041)
        at java.awt.Component$FlipBufferStrategy.updateInternalBuffers(Component.java:4026)
        at java.awt.Component$FlipBufferStrategy.revalidate(Component.java:4141)
        at java.awt.Component$FlipBufferStrategy.revalidate(Component.java:4123)
        at java.awt.Component$FlipBufferStrategy.getDrawGraphics(Component.java:4115)
        at main.Game.draw(Game.java:102)
        at main.Game.run(Game.java:82)
        at java.lang.Thread.run(Thread.java:744)

Arch Linux 64-bit.

Edit: Tried again, and this time no error, but black screen.

Also, when I exit the window it doesn’t actually terminate. You may want to look into that or else players will have a whole lot of unwanted processes.

Im using windows 8 and it works perfectly.

This game is very polished and looks professional! Great work. Its fun, but it has the potential to be so much more fun if you just fix a few things.

  1. The game gets too hard too fast. I have a ton of fun testing my new upgrades and blowing up asteroids but as soon as the spaceships that shoot directly at me show up, im getting spawnkilled over and over again. You dont have to take them out, just nerf them. Maybe make their range really short?

  2. A couple of the upgrades are really expensive, like the multiple shot upgrade. I dont know. Maybe it wouldnt be too bad if problem #1 was fixed.

  3. When I go to set my name, If you move the cursor right and go up and down to switch letters, it like, moves them left? And gets messed up.

Also whats up with the file called “Nothing in here!.txt” haha? I cheated by editing you text save files, and then deleted that other empty file and things got all messed up. (My saves were no longer being loaded properly, I assume).

Anyway, this is really a sweet game, good work.

Yeah, that’s another thing, forgot to put it up in the other post, but those enemy ships have too much aimbot, if you know what I mean. That and the massive amount of 'roids that quickly start filling your screen make it pretty tough. Situation would be better if it was simply challenging rather than impossible, hence my suggestion above for manual firing.

Slow! Maybe 5~8 fps in Xubuntu 13.10.
Why I can’t change resolution? At least make the game full screen to improve performance.

Maybe list your system’s specs for perspective?

Shouldn’t make a difference on Linux. Full screen is pretty much the same as windowed.

win7 64

My computer is not new but this is not my computer issue. Even a old computer with 1GB ram and Pentium 4 (or even older) must run this kind of 2d games.
The problem here, I think, is because the window size. We can’t change resolution and 1920x1080 (my screen resolution) is too much for Java games.
And on Linux full screen make a huge difference. For example if I play teeworlds minimized I have ~20fps, if I play full screen maybe +~90 fps. The same with other games.
Please make this game with real full screen or with an option to change resolution size.

My specs (though not the problem):
-3GB ram
-core 2 duo @ 2.53GHz
-Radeon HD 5670