Tagged Questions
0
votes
2answers
115 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 ...
-2
votes
0answers
68 views
How can I create a board with Java GUI? [closed]
I am trying to create a Battleship game with MVC pattern. I have never used GUI libraries before. So can you please guide me how can I create a board with Java GUI?
1
vote
1answer
85 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
188 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
319 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
114 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
682 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
207 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
210 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
206 views
What is the best way to make UI for an Isometric game in java
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
428 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
1k 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
281 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
330 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 ...
7
votes
1answer
5k 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 ...