[Java]2D Platformer

Status
Not open for further replies.

Adil

DevBest CEO
May 28, 2011
1,278
716
Hi. After some thought, I made the choice to program a 2D platformer in java. This is still an idea.
What it will feature:
Enemies
Music (sound effects)
Interactive menu
Levels
Online mode (maybe)
I'll post more when I get onto my laptop. Obviously, this still an idea, which means it could become something else (RPG game), or it could not come to fruition

So, some more ideas:
  • Not a huge fan of the client->server object model, but it will probably have to be used
  • Will feature a scrolling background
  • Will be very basic at the start
 

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
Think this would be a good project for you to learn, but are you using a tut or do you know how you will do it?

Hope to hear more from you, good luck!
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Sorry for the bigass bump, but I actually did decide to go ahead with this ^^
I'm stuck on one thing though, that's my repaint() method. May just load the picture without repaint. Please submit ideas here ;D
 

Adil

DevBest CEO
May 28, 2011
1,278
716
I need a name for this =[

Some of the logic is flawed, need to rewrite whole thing. Will post stuff later on.
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Workspace1_043.png
^^
PHP:
package core;

/*** @author Adil

* 2DPlatformer
* Written by Adil
* Built upon the player-core framework (written by Adil)
* GNU Licensed

*/
import javax.swing.*;
import java.net.URL;
import java.awt.Event;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

//thanks to dogstopper from DIC for help with this ^^

@SuppressWarnings("serial") //Suppress serial warning ID
public class Core extends JFrame {

  private JLabel imageLabel;
      private ImageIcon bg;
    JMenuBar menuBar;
JMenu menu, submenu;
JMenuItem menuItem;
JRadioButtonMenuItem rbMenuItem;
JCheckBoxMenuItem cbMenuItem;
      public Core(){

    URL imgURL = getClass().getResource("img/bgame.jpg");
    if (imgURL != null) {
    bg = new ImageIcon(imgURL, "This is our icon");
    }else {
    System.out.println("There was an error. The image was not loaded");
    System.exit(1);

    }//little script to determine whether the background is a real file
    imageLabel = new JLabel(bg);//adds a new label, or picture
            add(imageLabel);

/***
* Begins our menu method here
* JMenu interface
* JMenu method - menu for:
*                        -play
*                        -about
*                        -features
*                        -contributors
*
*/

                            setTitle("Xe0n2D");//set title
                          setResizable(false);

            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            pack();

            setVisible(true);

        }

      public static void main(String[] args) {

            new Core();

        }

      }


I've started work on the animation class, expect a very early pre-build soon.
 

Adil

DevBest CEO
May 28, 2011
1,278
716

Source repo for all current projects
(Ty rasta)

I need a graphic designer, for obvious reasons. Drop me a PM or reply here. YOU MUST SHOW PAST WORK ON 2D MODELS.
I may be submitting this as a community project, and I may be porting over to C++ soon ^^

WHERE ARE ALL THE GRAPHIC ARTISTS WHEN YOU NEED THEM?
Anyway, more updates:
  • Blog will be up by 6:00 PM GMT
  • Sound class being worked on by Des ;D
  • Once this game is finished, there will be a XNA port over to C#.
The sound class will feature methods such as:
PHP:
[/COLOR]
[COLOR=#000000]StartSound()[/COLOR]
[COLOR=#000000]StopSound()[/COLOR]
[COLOR=#000000]
[/PHP][/COLOR][/PHP][/COLOR]
 
Status
Not open for further replies.

Users who are viewing this thread

Top