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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 5 of 5

Thread: A question About Java (whats my next Step?)

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default A question About Java (whats my next Step?)

    Hello, My name is Darren and i am 15. I have been codeing varies languages since about 2 years ago and i know a fair ammount about programming (I know alot of basics like a bout what functions,loops are e.t.c.)

    I know PHP/Mysql (im currently making a browser game ) and i know a language called 'Pawno' which is used for SA-MP San Andreas Multiplayer mod for Grand Theft Auto (GTA SA)...


    Now, i have used java code before and played with it to make crappy lil calculators and stuff but my question here is What do i do if i want to start to add graphics to Java programs??? I want to be able to make small games (like mario or somthing Pong - lol) then move onto 3d engines to create cool java games...

    ----

    The reason i want to learn this is because i cant go straight to harder languages so i supsoe its best to learn enough on java to make games then move on harder languages when im ready....so thanks for anyone who helps


    ------------

    Btw, in case its not clear..my question is:- how can i start to add Graphics/gaming interface to Java


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: A question About Java (whats my next Step?)

    Hello Darren, you might want to have a look at OpenGL bindings for Java and have a look at kevin's blog | Coke And Code - Java Games and Games Development for some nice tutorials and have a look at Slick - 2D Game Library based on LWJGL which is an api for rendering 2D using OpenGL

    Enjoy!

    // Json

  3. #3
    Junior Member
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: A question About Java (whats my next Step?)

    hmm, so I should go learn about OpenGL?

    is that somthing you use with java (like you use mysql with PHP)

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: A question About Java (whats my next Step?)

    Lots of 2D games can be created using just Swing components and the Java2D API. Take a look at the link Json provided, as it has some very good and very simple examples on how to do this. Sun has some good tutorials on how to use Swing and Java2D, keep in mind these tutorials from Sun just touch the surface because other things come into play in more advanced games, such as image graphics, user interaction, and threading.
    Should you go further into the 3D realm, OpenGL is a good start. There are java libraries that bind Java and OpenGL (such as JOGL) - I'd steer clear of Java3D for a variety of reasons. I might catch some heat for saying this, and its only a personal opinion, but I'd prefer to learn OpenGL from C or C++ (one reason being many examples, as well as the 'source' - the Red Book - are in C), but this isn't to say you can't do so in java - especially if that's what you are more comfortable with.
    One final recommendation is to pick up a book of some kind to lead you through the process, at least the beginning part of it (although I'm probably the last person to give suggestions)
    Last edited by copeg; December 6th, 2009 at 08:02 PM.

  5. #5
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: A question About Java (whats my next Step?)

    Id say if your main goal is to do 3D stuff then OpenGL is your best bet if you intend to use Java. There is a great deal of support out there at the moment and its growing every day.

    I never did any Swing or Java2D myself but I'm from a C++ and OpenGL background anyways.

    // Json

Similar Threads

  1. whats wrong with this one....
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 9
    Last Post: October 6th, 2009, 10:08 AM
  2. help whats wrong
    By silverspoon34 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 3rd, 2009, 01:41 AM
  3. [SOLVED] whats wrong with my IDE
    By chronoz13 in forum Java IDEs
    Replies: 2
    Last Post: August 27th, 2009, 06:34 AM
  4. [SOLVED] Difference between public and private variable and their uses
    By napenthia in forum Java Theory & Questions
    Replies: 1
    Last Post: April 22nd, 2009, 11:36 AM
  5. Replies: 1
    Last Post: March 31st, 2009, 02:49 PM