Results 1 to 5 of 5
  1. #1
    gt123 is offline Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default Programming a Game?

    Hi there,

    I'm new to Java programming and have only previously made a logic gate simulation program using the command prompt for input/output.

    As part of my university degree I have been asked to create a game that uses a moving object(s). I have never used any of the graphics libraries and so could someone suggest something that would be relatively easy to program? and if possible, suggest how I would go about doing so?

    Thank you very much,

    GT

  2. #2
    Cazrin is offline Member
    Join Date
    Dec 2007
    Posts
    16
    Rep Power
    0

    Default

    Although not very experienced myself with the graphics side of Java, I've made a few attempts.

    I'd say get to grips with Thread, and Canvas. Canvas is pretty much what you draw to, and the thread can keep updating the canvas so that you can see the changes being made.

    There's probably a much easier way of doing it, and whole articles explaining how to go about games programming with Java. I'm sure a google search will give you the right results.

    Also, you might want to say whether you want this to be applet or application based.

  3. #3
    tim's Avatar
    tim
    tim is offline Senior Member
    Join Date
    Dec 2007
    Posts
    435
    Rep Power
    7

    Default Performance

    Hello

    It is also important to consider the performance of your game. You will need to use buffers if you want to use Graphic objects to draw stuff. It probably depends on your course, but maybe your educator is looking for something that uses Open GL or some other graphic tool.:D

    I am also working on a game. It's a 2D space simulator with asteroids and scenery like planets and nebulas. It has an accurate collision system that functions well even if objects move at great velocities. Asteroids can bounce of each other and create exploding effects.

    I am looking forward to hearing about your project.
    Last edited by tim; 12-31-2007 at 06:14 PM.
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  4. #4
    gt123 is offline Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default

    The game is supposed to an applet, and needs to be multi player to achieve higher grades. At the moment i'm clueless as to where to start. I've attached the assignment specification in text format (so it will let me upload it).

    Thanks for your help. :)
    Attached Files Attached Files

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    You have to make some steps to do this by yourself depend on the knowledge of Java. Applet comes later, you have to get few things to touch before, like how to move an object randomly and stuff. Start from that point and step by step involve it into an applet.

Similar Threads

  1. Replies: 2
    Last Post: 08-05-2010, 05:49 AM
  2. programming
    By abcdefg in forum New To Java
    Replies: 9
    Last Post: 03-10-2008, 11:34 AM
  3. The words *game* in java programming :confused:
    By ibmzz in forum Advanced Java
    Replies: 1
    Last Post: 01-23-2008, 10:23 AM
  4. java game programming
    By gammaman in forum New To Java
    Replies: 1
    Last Post: 12-25-2007, 02:01 AM
  5. Replies: 1
    Last Post: 08-07-2007, 06:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •