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

Report as inappropriate.

nc-munk
nc-munk presents ...

2014/5/4

Side scroll demo

No description.

2358 views / 670 in the last 7 days

Tags: demo with-source sidescroller

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Thu May 15 08:25:10 UTC 2014
AIMrOrangeAIMrOrange

2014/5/15

every time you shoot something that hits, the game stops. I think there is an error when the bulltes hit the rock
danpostdanpost

2014/5/15

All in all, other than the lack of 'return' statements at the end of blocks where 'getWorld().removeObject(this)' is used (which is causing a lot of 'IllegalStateException' throws), the code to this is not bad. The one thing, code-wise, that I did notice was your use of 'getWidth' in the 'paint' method of the world that should be 'getHeight'. The only other thing, which deals with the music, is that some of your sound files have tag information included with is causing ArrayIndexOutOfBoundsException throws. Re-saving the files without the tags should resolve that.

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

Who likes this?

No votes yet.