This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

BlackholeGF
BlackholeGF presents ...

2008/12/30

Meteor showers

Meteors threaten to destroy the Earth!

It is up to you to elimitnate them.

CONTROLS:

W to go up.
S to go down.
Space to fire the laser.

4299 views / 772 in the last 7 days

Tags: space game rocket meteors laser

Your browser does not support the canvas tag.
mjrb4mjrb4

2008/12/30

Yup. In fact there's only one problem - the freezing is called by the problems with the sounds (when the scenario encounters an exception, it stops.) If you have a look at the java console, then chances are you'll see something like this: java.lang.IllegalArgumentException: Format of sound file not supported: URAN.wav at greenfoot.Greenfoot.playSound(Greenfoot.java:141) at Astroid.boom(Astroid.java:82) at Astroid.act(Astroid.java:29) at greenfoot.core.Simulation.runOneLoop(Simulation.java:200) at greenfoot.core.Simulation.run(Simulation.java:129) Greenfoot's sound support isn't great at the moment, and while improving the sound support is on trac, it's by no means a trivial task! The problem is while the API says it'll support WAV, it doesn't support all types of WAV, and that seems like it's the problem here. I can't remember the supported formats quickly, but try loading the sound into audacity, then exporting it as a wav file from there using the default settings - it's how I've saved many sounds in the past and I've never had a problem that way.
BlackholeGFBlackholeGF

2008/12/31

TY, I'll do that now
BlackholeGFBlackholeGF

2008/12/31

My Melodyne doesn't want to save... Any other ways I could fix this?
mjrb4mjrb4

2008/12/31

That's odd, does Audacity not handle it? It's coped with all the file formats I've used on it so far, including wavs that Greenfoot didn't like. Sounds like a stupid point, but you did select "export to wav" rather than saving it as an audacity project file? What error did you get? As for other ways, well you need to get it into a format that Greenfoot can play - I don't know of a program that'd do a better job than Audacity so I wouldn't know what to recommend if Audacity doesn't work. Unless you try making the sounds again (what did you make them in?) For now, you could just comment out the lines that play the sound and upload it - it won't have any sound but it shouldn't keep freezing like it does now.
mjrb4mjrb4

2008/12/31

Oh and just a comment on the gameplay - with or without sound it seems quite fast initially! Could you slow it down to start with and then perhaps speed it up gradually?
BlackholeGFBlackholeGF

2009/1/1

I didn't create the sounds myself, I got them out of some game files I had on my PC.
A new version of this scenario was uploaded on Fri Jan 02 15:51:07 UTC 2009
mjrb4mjrb4

2009/1/2

Well I'm not sure why your sounds aren't working, but have a look at freesound.org - you need to register, but when you do there's a pretty extensive collection of sound effects at your disposal.
MuZiKMuZiK

2009/4/30

Is it just me, or is this game impossible to get farther than 3 seconds...
mjrb4mjrb4

2009/4/30

It is rather difficult yes, and the problem with the sounds doesn't help because you can't use the laser without an exception being thrown.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.