My Little Game Jam

Competition Forum => Code/Game releases => Topic started by: RedFlames on 2012-October 05, 23:45:25

Title: Framework: A bunch of small LWJGL help classes...
Post by: RedFlames on 2012-October 05, 23:45:25
Nothing fancy here, but I guess I should post these anyways.

I'm not bothering with git right now, as these are 3 small java classes. So I just threw them into pastebin...

LWJGL_Texture.java (http://pastebin.com/naBNCias)
Loads an image as a texture and contains some basic values / functions.

LWJGL_Sprite.java (http://pastebin.com/i6LuS8Jy)
A simple Sprite class that loads a texture and can be pasted to the screen via a Quad.

LWJGL_Font.java (http://pastebin.com/jteyb3bF)
A very basic class for drawing text to the screen. I needed something, so this just loads a texture like this (https://dl.dropbox.com/u/69014538/lucida_console2.png) and does some U/V Coordinate magical thingymagik. I'd somehow not recommend this to anyone but me, as it is a pretty restricted font system xD

And that's all I have as a framework... *looks through old projects* Oh hey hold on, there's more useable stuff actually!

GameTime.java (http://pastebin.com/Lh3HFjGa)
Just a few functions to calculate the FPS and enable timer-based movement (sorta, I guess?)

Renderer.java (http://pastebin.com/e5fpR8wA)
Wraps up the initialization of LWJGL and loads the font, gives you a "print" function and other stuff.


...These are mainly all there to make the main file less messy I guess.
Title: Re: Framework: A bunch of small LWJGL help classes...
Post by: Hifagata on 2015-February 03, 11:12:11
I want everyone to get involved. Harmony and well.
Title: Re: Framework: A bunch of small LWJGL help classes...
Post by: Gastoner on 2016-July 23, 10:27:16
Well done. It's so good for knowledge
Title: Re: Framework: A bunch of small LWJGL help classes...
Post by: Chrsitavorius on 2018-January 25, 10:13:31
We need to post new posts for new members.