My Little Game Jam
Competition Forum => Code/Game releases => Topic started 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.
-
I want everyone to get involved. Harmony and well.
-
Well done. It's so good for knowledge
-
We need to post new posts for new members.