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 4 of 4

Thread: Theory behind 2d Game making?

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

    Default Theory behind 2d Game making?

    Hello, i have a little bit of knowledge with JFrames (and with basic programming) but i want to know how i start making 2d Java games.. the first thing i want to make is just somthing like Pong so i can start learning... then ill make my own version of mario e.t.c.

    so, my question is what i use to start making 2d Java games (what techniqes and stuff e.t.c.) as much info as possible would help...thanks!


  2. #2
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: Theory behind 2d Game making?

    Well the Java 2D API might help you out

    All you need to do it check that out and you'll be on you way in no time even if you know very little about Swing, because its not really required. AWT events are needed more though for getting user inputs but its not too hard to work you. Java2D is a rather rich API for this sort of thing

    Chris

  3. #3
    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: Theory behind 2d Game making?

    Java2D for drawing
    Swing/AWT events for user interaction
    SwingTimers/Threads for animations (and how to use Threads with Swing - aka the Swing single threaded model)
    elementary physics for things like game responses (such as a ball changing trajectories)

  4. #4
    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: Theory behind 2d Game making?

    Swing/AWT for the window
    OpenGL bindings for the graphics

    // Json

Similar Threads

  1. type substitution - whats the theory behind it
    By mds1256 in forum Java Theory & Questions
    Replies: 0
    Last Post: January 20th, 2010, 07:40 PM
  2. theory about serial / parallel port & java
    By wolfgar in forum Java Theory & Questions
    Replies: 5
    Last Post: January 4th, 2010, 10:08 PM
  3. [SOLVED] How to start writing java mobile application?
    By Koâk in forum Java ME (Mobile Edition)
    Replies: 15
    Last Post: July 30th, 2009, 01:52 AM
  4. Digital map application with Java GUI
    By donjuan in forum AWT / Java Swing
    Replies: 3
    Last Post: May 15th, 2009, 03:32 AM
  5. Problem while programming a simple game of Car moving on a road
    By rojroj in forum Java Theory & Questions
    Replies: 3
    Last Post: April 2nd, 2009, 10:24 AM