Results 1 to 3 of 3

Thread: Looking for a Java library meant for aiding game design

  1. Registered TeamPlayer DJ Ms. White's Avatar
    Join Date
    11-13-07
    Location
    Plano, TX and Ruston, LA
    Posts
    32,364
    Post Thanks / Like
    Blog Entries
    43
    Stat Links

    Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design
    Gamer IDs

    Steam ID: DJMrWhite
    #1

    Looking for a Java library meant for aiding game design

    As for why Java: my class is based around java and we HAVE to use Java for this project. (Not that I am complaining much; I don't mind Java).
    I have mainly used the standard Java libraries up to this point and written what I needed that the standard library could not do on its own. However, I don't think it would be wise to do that when designing something on the scale of a game where I'm being graded not only on the code but the game design in general. I also only have 6 weeks from today to get it done.

    I did some searching and found this:
    Slick2D | 2D Java Game Library

    It would seem to fit the bill as we're looking to do a 2-D platformer. It's based off of a library meant for making 3D games that is supposed to also be close to the machine, as they say.

    I am looking for suggestions though as this is a new area for me (I've mainly done computational stuff in the past--engineering and physics stuff).
    enf-Jesus its been like 12 minutes and you're already worried about stats?! :-P
    Bigdog-
    Sweet home Alabama you are an idiot.

  2. Registered TeamPlayer rush2049's Avatar
    Join Date
    03-26-11
    Location
    Lancaster, PA
    Posts
    1,213
    Post Thanks / Like
    Stat Links

    Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design
    Gamer IDs

    Gamertag: Benjamin Rush PSN ID: Benjamin_Rush Steam ID: rush2049 rush2049's Originid: rush20492002
    #2

    Re: Looking for a Java library meant for aiding game design

    A quick google foo: List of game engines - Wikipedia, the free encyclopedia

    I have personally used Unity on android, but thats not really a java library......


    I would actually just recommend you use the built in java graphics calls. Keep everything as low level as possible.
    For a quick example see: Java games moving sprites

    If it is a platformer, then implement a world class with a call to load only a certain 'viewable' section of the level with its pre-defined elements (platforms, enemies, etc.). Have a master 'engine' class that is in its own thread that updates the view every so many milli-seconds (for platformers try 10-100ms). Have another thread that is solely the input listener, you want this to be dedicated as there is nothing more frustrating than having input lost because of the machine having a performance hit.

    Have each 'object' (player, enemy, etc.) have a class that hold position and rotation data. Make two classes that extend this. One is solely to be used by the game engine (having mostly getters of data). The other is to be used by the player input (having mostly movement addition methods). The game engine when doing an update reads the current position and the position additions based on player input. Calculates the new pos then update the actual position while clearing the player input variables (by doing it this way you can do animations for movement, like sprite trails and such). This is going to have to be threaded so that both threads do not deadlock. Have a token passing mechanism for each object. default state probably being engine access.



    This is just a quick overview of what I would do..... let me know if you need any help.
    -- Intentionally Left Blank --

  3. Registered TeamPlayer gehn's Avatar
    Join Date
    06-06-12
    Location
    Denver, CO
    Posts
    1,033
    Post Thanks / Like
    Stat Links

    Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design Looking for a Java library meant for aiding game design
    Gamer IDs

    Steam ID: gehn gehn's Originid: gehnster
    #3

    Re: Looking for a Java library meant for aiding game design


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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