1
vote
1answer
158 views

Libgdx stage rendering issues

I'm using scene2d for the first time, and I can't get anything to draw EXCEPT the stage ui. Say I have my ui on top of my game screen: uiStage.act(): batch.begin(); gameSprite.draw(batch); //does not ...
1
vote
1answer
240 views

LWJGL Wait for key press in a single method

Currently I am implementing the possibility in my game to change the keyboard configuration. Therefor, I have a menu in which is a button for each action the player can do. If the player clicks on one ...
1
vote
2answers
655 views

How to make a “GUI In Game”?

My game is very GUI based, the way how it works is that I have a GUI class, which contains the basic GUI elements, a parent GUI object, and a copy of the main game's class object. The game starts out ...
1
vote
1answer
119 views

Deciding when to switch focus between UI elements

I've been coding a simple logic game recently and there is a UI decision that has been bothering me. Since certain blocks of logic are going to be used across many levels (e.g. logic to reverse the ...
2
votes
1answer
413 views

Is jButton in Java suitable for a Game GUI?

Recently I have encountered the issue of trying to add a GUI into my game using Swing. The game will randomly & infrequently flash the jButton or Swing component when I add it to my jFrame. I'm ...
-1
votes
1answer
506 views

Animation Trouble with Java Swing Timer - Also, JFrame Will Not Exit_On_Close [closed]

So, I am using a Java Swing Timer because putting the animation code in a run() method of a Thread subclass caused an insane amount of flickering that is really a terrible experience for any video ...
2
votes
1answer
199 views

OpenGL and Java user interface architecture/comunication [closed]

I'm working on the UIs for a turn based tactical rpg made with Java and LWJGL. I'd like to make a set of "dynamic" UIs similar to those of the game Torchlight 2. I would like to know if there are any ...
1
vote
2answers
2k views

How to add text box in slick2d?

I wanted to let the player rename the character of my game. So I thought that making a text box and when he clicks the ok button, the text inside the text box will make it to a string and render it on ...
3
votes
1answer
305 views

Revamping my GUI to be more efficient and less brute

I am building a Java game from scratch right now. So far, it runs fine, but the issue is with my GUI and how it works. Basically, it's a tile-based game. Each time the person moves a different image ...
0
votes
1answer
417 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 ...
-1
votes
1answer
401 views

What is the best way to make UI for an Isometric game in java [closed]

What do you think is the best way to make UI for an isometric game.. I dont have much experience in UI so im not sure where to start. I need something the mouse can interact with and that works good ...
2
votes
2answers
618 views

Slick & NiftyGUI. Nifty initialize exception

I found my self into trouble when trying to run a Slick game with a Nifty Game State. This is the code: @Override protected void initGameAndGUI(GameContainer container, StateBasedGame game) ...
2
votes
1answer
2k views

Using Nifty GUI with Slick2D

As seen here NiftyGUI has it's own GameState classes, I want to know if for adding UI to one state of my game I need to make that state NiftyOverlayGameState or still a BasicGameState but to add a ...
2
votes
1answer
430 views

How should I connect objects when using the MVC paradigm?

This has been confusing me for the past week as I am trying to make my first actual game. It's only my 2nd year learning Java so I am really trying to learn how to program like a professional ...
-5
votes
1answer
484 views

Java ~ RPG Game Qs: Music, Inventory, Inv Checker, Array of Weapon List and Calculations [closed]

I am here again to ask how to implement these things on my rpg game...but before that, have you ever heard of the game engine called Legendary Tales? It is like Inform but there is a better GUI and ...
12
votes
1answer
9k views

Making a HUD/GUI with OpenGL (LWJGL)

I'm at the stage in my game development where I need to make a HUD or GUI. I've never gotten to this part, so I don't know how its done. I tried rendering a simple quad at a fixed position on the ...
3
votes
1answer
6k views

Is it possible to overlay EditText box on a GLSurfaceView on Android?

I am trying to add a "PlayerName" box on top of a opengl menu background, is this possible? I've tried various layouts, but they don't seem to allow an EditText box to appear on top What is the ...
1
vote
1answer
109 views

Unused frame(window) management

I'm rewriting my game now using software designing patterns and want to do the code, most correct I can. While implementing MVC(Model View Controller) I got a question which I would like to discuss or ...