Tagged Questions
0
votes
1answer
59 views
Slick2D - Entities and rendering
I have been trying to create my very first game for quite a while, followed some tutorials and stuff, but I am stuck at creating my entity system. I have made a class that extends the Entity class and ...
0
votes
0answers
23 views
java slick2D - problem using ScalableGame class
I have problem adjusting the size of the screen, using the ScalableGame class from Slick2D library.
So, what I want to achieve, whenever I change display size, background should adjust to screen ...
1
vote
0answers
40 views
How to only render part of an image in lwjgl/openGL
I'm making a mining/building game in java using slick2D and I want to make it so you can only see a few blocks in any direction while you are underground. The best example I could find of what I want ...
0
votes
1answer
66 views
Streaming resources
I'm writing a game using the Slick2D library. I recently added a loading screen using deferred loading. I use the Music class to load OGG files to be used as music. These take an excessive amount of ...
-1
votes
0answers
40 views
some problems with collision detection
I've been working on some collision detection and i have managed to get it to know when it touches top bottom left or right, but now i need it so it prevents the rectangle to enter the rectangle and i ...
0
votes
0answers
44 views
Java Slick2D rotating Shapes
I'm having a problem with rotating a Shape in Slick2D for Java
I have a code in screen render which works properly:
Shape box = new Rectangle(100,100,32,32);
box = box.transform( ...
0
votes
1answer
40 views
Slick2d Spritesheet showing whole image
I'm trying to show a single subimage from a sprite sheet. Using slick2d SpriteSheet class, all it's doing is showing me the entire image, but scaled down to fit the cell dimensions.
The image is ...
0
votes
3answers
178 views
Tile Map World Background
I am making a 2D top-down game in Java using the Slick2D library. However, this question applies to all ways of making games of this nature.
My question is: How would I do a background for the world. ...
0
votes
0answers
25 views
Slick - create new texture from part of existing texture
Say I have the following image:
I want to resize this texture, so I can have resizable buttons with a texture.
Now, as you can't repeat a certain area of an image in OpenGL, I have to create a new ...
2
votes
1answer
34 views
What measurement units are used in the return value of the getWidth method in the UnicodeFont class supplied by Slick2D?
I'm working on a small component for a game that essentially wraps the provided String so that it fits within the width of the provided rectangle. The rectangle is provided by the Slick2D library as ...
1
vote
0answers
25 views
Slick2d font rendering makes all other drawings vanish
I'm converting a java game to lwjgl and slick-utils. I've followed the slick2d examples for font loading/rendering but I found that the font shows as a solid box of color unless I add the following ...
0
votes
0answers
31 views
Including slick2d or slick-util in maven build?
I'm converting a project to lwjgl and trying to use slick-util as well. There's no slick-util maven repo anywhere (nor slick2d itself anymore). I've included local dependancies before using
...
4
votes
1answer
136 views
How do I draw a full resolution texture to a window of the same resolution?
My image is 1280x800, and my screen size is 1280x800. It should draw perfectly. I'm creating a quad the size of the screen, and setting the texture to fit the quad. But right now it draws a square ...
1
vote
1answer
80 views
(Java + Slick) How to rotate the Graphics (g) around the X-Axis?
I already tried it by using GL11.glRotatef(45, 1, 0, 0), but the result looks like this:
5
votes
3answers
159 views
Serialization of objects problem
i have a problem with serialization (saving and loading game variabiles), when i save evreything seems to be saving correctly but when i try to load it only detects first 3 objects i saved and the ...