Results 1 to 5 of 5
Thread: LWJGL question
- 01-22-2012, 12:26 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 3
- Rep Power
- 0
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?
- 01-22-2012, 04:02 AM #2
Senior Member
- Join Date
- Jul 2011
- Location
- Melbourne, Victoria, Australia
- Posts
- 155
- Rep Power
- 2
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.
- 01-22-2012, 08:43 AM #3
Member
- Join Date
- Jan 2012
- Posts
- 3
- Rep Power
- 0
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
- 01-22-2012, 11:29 PM #4
Senior Member
- Join Date
- Jul 2011
- Location
- Melbourne, Victoria, Australia
- Posts
- 155
- Rep Power
- 2
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.
- 01-24-2012, 04:00 AM #5
Member
- Join Date
- Jan 2012
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
LWJGL Collison
By Brandon@JavaForums in forum Advanced JavaReplies: 4Last Post: 01-14-2012, 09:16 PM -
LWJGL help please
By Brandon@JavaForums in forum Advanced JavaReplies: 12Last Post: 12-31-2011, 10:19 AM -
LWJGL Collision Detection
By Furyright in forum Java 2DReplies: 1Last Post: 10-09-2011, 06:48 AM -
lwjgl help PLEASE!
By Brandon in forum New To JavaReplies: 1Last Post: 10-06-2011, 06:11 AM -
LWJGL: Camera + Block Collision
By Aaron in forum New To JavaReplies: 6Last Post: 11-14-2010, 09:53 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks