Super Treasure Chest

I created this game for a school project, and this is my first game that I actually finished. Inspired by Super Crate Box. All the art in the game was done by me (except the background image and the explosion animation) and was my first attempt at pixel art.

Any feedback or criticism would be greatly appreciated; feel free to be as harsh as possible, I’d like to understand anything I did wrong with this game (comic sans was on purpose). I will release my source code in a couple days for any criticism of my source code as well.

Controls are in the game, but here it is for the lazy.

Arrow keys to move left and right.
Z Key - jump
X Key - shoot
Up and Down keys - traverse the menu screen
Enter - select from menu screen

Weapon details can be found under instructions

You can download the jar file and images here:
The images will need to be extracted to the same place as the jar file since I haven’t exactly figured out how to bundle it with the jar file.

http://www.mediafire.com/?ipfrbv312i1kise

Was this inspired by Super Crate Box?

Extremely heavily, yes. The name says it all. I’ll include that in my post.

/**
	 * Loads an image from a file path
	 * 
	 * @param path the file path to load from
	 * @return the image loaded from a file path
	 */
	public static Image loadImage(String path)
	{
		Image img = null;
                InputStream s = ImageLoader.class.getResourceAsStream(path); // Change ImageLoader to whatever class it's actually in
		try {
			img = new Image(s,path,false);
		}
		catch (Exception ex) {
			// Image failed to load
		}
		
		return img;
	}

That’s a jar friendly way to load images. You can just put the images in a package, and when you jar it, the images will be in the jar and they will be loaded correctly. You do have to specify the full path though. (like “/com/website/mygame/images/myimage.jpg”)

Also, this is assuming you put the method in a class called ImageLoader. It’s a static method so it’s independent of the class you put it in. You’ll just have to change the reference I noted.

okay :slight_smile: will give it a go later.

How would I get the full path?

You should make it so you slowly go up, an if you touch the bottom, die! It would be a harder version of falldown, in reverse!