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.
@SullyFish, start a discussion thread, show how you create the bar and how you are trying to use the bar (code posting is better in discussion threads).
@Peach, you are talking about a parameter in the 'getLetterImage' method. '@param' means that the following word is the name of a parameter. 'alphaChar' is the name I gave the String parameter. 'the letter to display on this new image' tells you that the new image created within the method will contain the glyph of the letter contained in the 'alphaChar' string. The calling method, with the expressions for the arguments already evaluated, would look like this:
getLetterImage("L", java.awt.Color.black);
You were asking about declaring a color variable. You declare one just like you declare any other object.
java.awt.Color color = null; // declare variable to hold a color
color = java.awt.Color.blue; // assignment example one
color = new java.awt.Color(255, 64, 40); // assignment example two
If using 'import java.awt.Color;', the previous would be:
Color color = null;
color = Color.blue;
color = new Color(255, 64, 40);
2014/5/15
Side scroll demo
2014/5/14
Progress bar/Health bar class
2014/5/14
Hangman
2014/5/14
Hangman
2014/5/9
Paintball Dodge
2014/5/6
Mathletics - Intermediate
2014/5/6
jwMaze
2014/5/6
jwMaze
2014/5/6
jwMaze