Results 1 to 5 of 5

Thread: LWJGL question

  1. #1
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default LWJGL question

    i had a quick question, how do people use .png files to make levels like seen here Creating Prelude of the Chambered - YouTube

    how could i do this with lwjgl?

  2. #2
    jammas615 is offline Senior Member
    Join Date
    Jul 2011
    Location
    Melbourne, Victoria, Australia
    Posts
    155
    Rep Power
    3

    Default Re: LWJGL question

    Has a good texture loading class which i like using.

    Main Page - LWJGL
    Look on this page under helper libraries and either slick or TWL's PNG decoder are good choices.

  3. #3
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Re: LWJGL question

    Thanks a lot for answering but what I meant is like how do they make the layout of a level I understand how to texture but what they do is like use certain collared pixels to put different objects down if that makes sense but anyways what im trying to say is how do they do make the levels with that

  4. #4
    jammas615 is offline Senior Member
    Join Date
    Jul 2011
    Location
    Melbourne, Victoria, Australia
    Posts
    155
    Rep Power
    3

    Default Re: LWJGL question

    Well, a common way to do it is to have tiles that are opengl quads and texture these quads with the appropriate textures according to a map file or array that holds data about the tiles, this data can include their texture, id, position, etc.

    You could have your game draw like 32x32 size quads on the screen and then texture them according to the data you have in a texture array.
    I suggest you search google for some ways of doing this. A search for a tiling engine or 2d tiling methods in opengl would not lead you astray from your question.

  5. #5
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

Similar Threads

  1. LWJGL Collison
    By Brandon@JavaForums in forum Advanced Java
    Replies: 4
    Last Post: 01-14-2012, 09:16 PM
  2. LWJGL help please
    By Brandon@JavaForums in forum Advanced Java
    Replies: 12
    Last Post: 12-31-2011, 10:19 AM
  3. LWJGL Collision Detection
    By Furyright in forum Java 2D
    Replies: 1
    Last Post: 10-09-2011, 06:48 AM
  4. lwjgl help PLEASE!
    By Brandon in forum New To Java
    Replies: 1
    Last Post: 10-06-2011, 06:11 AM
  5. LWJGL: Camera + Block Collision
    By Aaron in forum New To Java
    Replies: 6
    Last Post: 11-14-2010, 09:53 PM

Posting Permissions

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