Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: lwjgl and 2D? on: 2013-01-16 22:22:58
For a start, this is a nice tutorial:

Especially there is a tutorial called "Minecraft 2D". *g*

If you understood german I would have another tutorial for you.
The youtube tutorials seem like they should help quite a bit. Thanks a ton!
And nah, sorry, English only. I know, I'm lame. :C

LWJGL is just a thin wrapper around OpenGL. This means you can achieve some great performance, but you will need to write a lot of "boilerplate" to get things going. This is simply because OpenGL is rather "low level" and verbose to set up, and doesn't include convenient utilities for 2D games.

This is why it's generally recommended to use a higher level library like LibGDX. It includes a game loop, sprite, font and GUI rendering, Box2D integration, etc.

If you're keen to "reinvent the wheel" using just LWJGL, see here:
I'll probably just learn how Lwjgl works and 'reinvent the wheel'. I like having complete control over my Engine. Which is why I made the game as far as I did without using any libraries or tools.
I will however keep LibGDX in mind, in case I can't quite get the ball rolling on my own.

Thanks so much for the help so far. With the YT tutorials I should be able to learn quite a bit.
2  Game Development / Newbie & Debugging Questions / lwjgl and 2D? on: 2013-01-16 21:14:34
I'm making a minecraftlike 2D game that uses tiles, world generation, alot of other fun stuff.
Got a 'demo' of my game to work. Generates a png using Perlin Noise and it reads off the pixels for the basic map(I will need to change that later as a simple png won't be able to hold the whole map I need later). Also uses basic entities and player functions such as a inventory and world interaction.

Anyway, I am having some serious performance problems pop up. Now, I've been ALL of my 2D processing/drawing by using what Java already has. No extra libraries at all.
I have roughly 10 layers of image processing my game has to go though. Particles, entities, player, world, second world layer, UI, UI second layer. You get the idea.
Someone told me that I should use lwjgl or something simular, because the way I have coded it makes it so the CPU does pretty much all of the work drawing everything, which is harsh. And lwjgl or something that uses OpenGL uses the video card to do that processing and would run faster.

So, mind you, I am ALL self-taught. So, sorry for the stupid question, or if I even got the details wrong but;
Is this true? If so, where can I look into how to use lwjgl or something simular in a 2D game?
Everything I find comes up with 3D, either my google-fu needs some work, or lwjgl is strictly for 3D.
I'm not exactly sure where to look because I have no experience using libraries.

Thanks for your time!
Pages: [1]
DesertCoockie (20 views)
2018-05-13 18:23:11

nelsongames (68 views)
2018-04-24 18:15:36

nelsongames (65 views)
2018-04-24 18:14:32

ivj94 (748 views)
2018-03-24 14:47:39

ivj94 (79 views)
2018-03-24 14:46:31

ivj94 (555 views)
2018-03-24 14:43:53

Solater (94 views)
2018-03-17 05:04:08

nelsongames (168 views)
2018-03-05 17:56:34

Gornova (338 views)
2018-03-02 22:15:33

buddyBro (998 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!