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

mjrb4's Comments

Back to mjrb4's profile

I like how the lobster follows the crab, it works well.
There appears to be a bug in the bear class: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at bear.act(bear.java:38) at greenfoot.core.Simulation.runOneLoop(Simulation.java:200) at greenfoot.core.Simulation.run(Simulation.java:129) This basically means you're trying to access the first element in an arraylist that contains no elements on line 38 of your bear class.
Nice idea - I managed 112 on my first go :)
mjrb4mjrb4

2009/1/25

Are the rocks meant to get rid of the enemies? If that's what they are?
mjrb4mjrb4

2009/1/25

Nice idea, but it takes the computer quite a while to make a move and it's really difficult to visualise at the moment (at least I found it like that.) That said, without making it 3D I don't think there's a huge amount that can be done on the visualisation front!
That said, some delay on the bullets would be nice, as would them disappearing after a while, they seem to go on forever at the moment!
Turns out I was being blind... :)
I don't think it's being too bold to say it's impossible to get to the goal with that last snake!
mjrb4mjrb4

2009/1/20

There's a problem with your sounds that's causing it to crash: java.lang.IllegalArgumentException: Format of sound file not supported: Slurp.wav at greenfoot.Greenfoot.playSound(Greenfoot.java:141) at Crab.act(Crab.java:74) at greenfoot.core.Simulation.runOneLoop(Simulation.java:200) at greenfoot.core.Simulation.run(Simulation.java:129) Caused by: javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input URL at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source) at greenfoot.sound.SoundClip.open(SoundClip.java:70) at greenfoot.sound.SoundClip.play(SoundClip.java:127) at greenfoot.sound.SoundPlayer.play(SoundPlayer.java:144) at greenfoot.Greenfoot.playSound(Greenfoot.java:135) ... 3 more Try opening them in Audacity and then exporting to wav using the default settings, that should output it in a supported format.