Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: My First Game

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Thanked 0 Times in 0 Posts

    Default My First Game

    Hi Guys,

    This is my first post here so if I make a mistake forgive me .
    I am in the beginning of the path of Java development. I am very interested in building games with it. I have seen a tutorial about building Java game using libGDX2D and I was able to successfully follow it and come up with the attached project (not something useful though).

    I use libGDX for Android games development and getting a desktop copy of the game as well. Now I am stuck trying to do some parts that I don't really have an idea how to build it in Java with graphics and all these things, the parts I am stuck with are:

    1. The map in my code is 512x512, how to build, say, a map of 10000x10000 and just show 512x512 for the player then when he go to the edges I open the next 512x512 and so on (like scrolling map in RPG games).
    2. The part responsible about detecting intersection in my code have a problem that when I intersect with the object House it will just never get out of the Stop loop and will forever stay there and I can't move the Player anymore, how can I fix such a thing!
    3. How to add actions when I reach a House for example, I want a pop-up message to tell the player he can enter and then I change the screen to something else, can this be done?
    4. If you take a look at the code and would like to suggest a better structure for the code and what is called after what that will be very welcome. I am trying to build an RPG game that have structure close to the game called Eschalon.

    How to run the code:
    1. Unrar all into one folder.
    2. Import project in Parallelism.
    3. Open Parallelism-desktop > src > com.me.Parallelism > Main.java and RUN.
    4. Code modifications are done in Parallelism.

    NOTE: When running the code, the Console will show which class is entered first.

    --- Update ---

    Attatchments: Parallelism

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: My First Game

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Many who help here prefer code to be posted as described at the link above. A LOT of code requires more time and effort to wade through and is sometimes avoided. It's best if you can trim the code you post to the parts that are relevant to your question. In your case, I'm not sure you need to post any code. It seems your questions are:

    1. How to increase map size, and
    2. How to associate user actions with other game characters/objects.

Similar Threads

  1. LWJGL Game: Odd behavior in game. Need help.
    By vividMario52 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 2nd, 2013, 05:43 PM
  2. Replies: 3
    Last Post: March 1st, 2013, 11:01 PM
  3. Help with Snake Game Java Code: It's Impossible to Lose the Game
    By haruspex_icis in forum What's Wrong With My Code?
    Replies: 20
    Last Post: December 17th, 2012, 12:21 PM
  4. Game Maker Language and Game Maker and Zelda Classic thread
    By Fira in forum Other Programming Languages
    Replies: 3
    Last Post: April 17th, 2012, 08:59 AM
  5. Simple game that requires me to load game settings from a file
    By 14fenix in forum Java Theory & Questions
    Replies: 5
    Last Post: December 1st, 2011, 09:21 PM