Tagged Questions
-3
votes
0answers
36 views
Using Multiplayer and Rendering on a single thread [closed]
I have a rendering thread which does all my rendering of the game, is it possible to connect to a server at the same time on the same thread as the render? Would it overload, would it slow it down? Or ...
-1
votes
0answers
56 views
LWJGL - Switching from 3D to 2D to render text with NO external librarys [closed]
I want to render 2D quads on my screen by switching to a 2D scene then switching back to 3D.
I dont want to use any external librarys besides LWJGL.
This is what I got so far:
private static void ...
1
vote
1answer
274 views
How to render a tilemap efficiently? [duplicate]
I'm using this code to load a tiled map, composed of 1000x1000 32x32px tiles:
map = new TmxMapLoader().load("levels/xyz.tmx");
camera = new OrthographicCamera();
camera.setToOrtho(false, ...
3
votes
1answer
205 views
Where should I put my mob rendering code?
I'm making a simple LWJGL game. However, I'm a bit confused about rendering. So I have a Mob class and a TriangleMob is a basic enemy.
package daniel.entity.Mob;
public class TriangleMob {
...
0
votes
0answers
120 views
Canvas - Good rendering practises? [closed]
I've been using the Canvas a lot lately for little Java games and i've noticed a lot of strange things can happen. For example, earlier today I created a little game in which the objective is to shoot ...
1
vote
1answer
136 views
Mapped texture to a gluSphere not wrapping correctly
I have a 3D sphere rendered using JOGL by means of GLUquadric. I'm trying to add a texture but it is not rendering as correctly.
Does anyone understand why the texture (upper-right of sphere) isnt ...
0
votes
1answer
82 views
Render graphics using Doubles in Graphics2D
Currently, I have a JFrame for my game to render in, and I'm using Graphics2D for drawing (The games graphics are fairly simple 2D sprites). However, my delta variable is a double, and all of the ...
6
votes
2answers
2k views
How do I render terrain in a 2.5D perspective, like in the game Don't Starve?
I have experience in making 2D side scroller games such as Terraria, but now I want to challenge myself and make a game that has a 2.5D perspective. The game I am trying to mimic is Don't Starve. ...
0
votes
2answers
437 views
Rendering another screen on top of main game screen in fullscreen mode
my game runs in fullscreen mode and uses active rendering. The graphics are drawn on the fullscreen window in each game loop:
public void render() {
Window w = ...
2
votes
3answers
350 views
Drawing graphics in Java game
I am quite new to game development, so here is a question (maybe a stupid one):
In my sidescroller i have a bunch of different graphics objects that i need to draw (player, background tiles, ...
1
vote
2answers
120 views
Back to front drawing in an Unorginized array of tiles
I have an Array of tiles in no particular order. How would I do a isometric back to front rendering on it? Do I HAVE to order it?
0
votes
2answers
1k views
Efficient way to render tile-based map in Java
Some time ago I posted here because I was having some memory issues with a game I'm working on. That has been pretty much solved thanks to some suggestions here, so I decided to come back with another ...
2
votes
1answer
296 views
How to draw Isometric game Back to front
What is the for loop or algorytm for a 2D array of tiles that I would render the tiles back to front like this:
1
vote
1answer
141 views
Invert colors Java rendering
I am making a 2d platformer in java using the slick2d engine. I only use 2 colors: black and white. I want to implement a feature were i invert the colors of certain entities. However i can't find a ...
0
votes
1answer
226 views
Rendering Loop Problem (Java)
I'm not new to programming, but I am relatively new to game programming. I am trying to create a version of Breakout, as a good basic game to get myself introduced to 2d game programming.
I currently ...
0
votes
1answer
208 views
Effectively implementing a game view using java
I am writing a 2d game in java. The game mechanics are similar to the Pokémon game boy advance series e.g. fire red, ruby, diamond and so on.
I need a way to draw a huge map maybe 5000 by 5000 pixels ...
0
votes
1answer
208 views
Can't remove JPanel from JFrame while adding new class into it
Basically, I have my Frame class, which instantiates all the properties for the JFrame, and draws a JLabel with an image (my title screen). Then I made a separate JPanel with a start button on it, and ...
0
votes
0answers
104 views
Argumentation Frameworks - Games approach
Logic-based argumentation theory is an area of Artificial Intelligence that models how to rationally choose (i.e., argue about) what to believe or do when faced with conflicting information. The aim ...
2
votes
3answers
822 views
Java tilemap not working, Think it has something to do with my image rendering
Hey can someone help me out, I've been trying to fix this for about 2 hours now, and I'm a noob when it comes to game programming and Java(only been reading and programming with it for a week now, ...
4
votes
1answer
595 views
Java rendering performance bottlenecks
I've read a lot of forums about making 3D games in Java but I was unable to build a full picture of how it performs in video games.
I know that it works smoothly for small and average size games, but ...