Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Super Treasure Chest  (Read 2540 times)
0 Members and 1 Guest are viewing this topic.
Offline Meitnerium109

Junior Devvie


Projects: 2



« Posted 2013-06-06 02:51:56 »



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
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #1 - Posted 2013-06-06 03:05:29 »

Was this inspired by Super Crate Box?

Offline Meitnerium109

Junior Devvie


Projects: 2



« Reply #2 - Posted 2013-06-06 03:23:30 »

Was this inspired by Super Crate Box?

Extremely heavily, yes. The name says it all. I'll include that in my post.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Troncoso

JGO Coder


Medals: 20



« Reply #3 - Posted 2013-06-06 03:32:38 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
/**
    * 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.
Offline heisenbergman

JGO Coder


Medals: 14


L___ o_ G___ a__ P___


« Reply #4 - Posted 2013-06-06 03:32:59 »

okay Smiley will give it a go later.

Offline Meitnerium109

Junior Devvie


Projects: 2



« Reply #5 - Posted 2013-06-08 19:21:38 »




How would I get the full path?
Offline wessles

JGO Wizard


Medals: 79
Projects: 4
Exp: 3 years


Radirius Games


« Reply #6 - Posted 2013-06-23 18:21:17 »

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!

Pages: [1]
  ignore  |  Print  
 
 

 
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!