Making 2D RPG game

I have an idea for a 2D role playing game in lwjgl using OpenGL. I am going to make it have wizards, warriors, and stuff. Does anyone want to help? I need a name for it.

I need some help because I was only messing around with lwjgl when I wanted to make a game.

Have you tried to make some other games before, like Pacman, Pong, Tetris perhaps? Throwing yourself into the sharks by starting of with an RPG doesn’t seem like a very good plan. Start small and build it up. Try to seperate difficult problems into smaller ones and try to solve those first. Also, don’t start thinking on naming the thing, before you actually have it. It’s great if you come up with one along the way, but don’t let it interfere with your development.

About someone joining you; I think you should first try to get something working, while posting your problems here, before you try to find someone to help you work on the game. And if you really want to have someone helping you, then I think you’re better off sending someone a PM with a request.

LostWarrior ninja’d me :stuck_out_tongue:

Thanks! will do. I just learned how to do the cube, so this is not a short-term project. I’ll try a pong game first.

lol.

How does my code look so far?
package pong;

import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;

public class Pong {

    // Sprite class is in package pong
    private Sprite ball;
    private Sprite playerPaddle;
    private Sprite npcPaddle;

    private static final int WIDTH = 800;
    private static final int HEIGHT = 600;

    private static final String TITLE = "PONG";

    private int fps;
    private int tickTime = 220;

    private int wins;
    private int losses;

    private int lifesLeft;

    private boolean upKeyPressed;
    private boolean downKeyPressed;
    
    private SoundEngine sound;
    
    public void initialize() {

    }

    public static void main(String[] args) {

    }
}

Any changes?

Good so far!

What is tickTime though and why is it 220?

I wouldn’t create a paddle of a sprite. I’d say you create a Paddle class, or something similar, and let it contain a Sprite which is then drawn.

tickTime is milliseconds between each tick.

As the others allready said, start small, developing games isn’t as easy as having an idea and creating a game out of it.
It takes a lot of work and with the lack of experience you will fail many times, which can discourage you, causing you to stop programming in the worst case.

Starting with Pong is a good idea, i guess. You will get an idea how to move objects over time and you will need to do some basic collision detection.
You will probably also notice, how important a good code organization and meaningful comments are. The bigger your projects get, the more those things count.

Here on JGO you will find a lot of help. Just post your project in the WIP section and update it regularly with your progress.
I guess many people here can help you to solve the problems you will encounter :slight_smile: