Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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: http://www.youtube.com/playlist?list=PL19F2453814E0E315

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:
https://github.com/mattdesl/lwjgl-basics/wiki
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]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Mr.CodeIt (24 views)
2014-12-23 03:34:11

rwatson462 (55 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (88 views)
2014-12-09 22:41:13

BurntPizza (111 views)
2014-12-08 04:46:31

JscottyBieshaar (82 views)
2014-12-05 12:39:02

SHC (92 views)
2014-12-03 16:27:13

CopyableCougar4 (99 views)
2014-11-29 21:32:03

toopeicgaming1999 (159 views)
2014-11-26 15:22:04

toopeicgaming1999 (157 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org 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‑gaming.org
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!