Tagged Questions
0
votes
1answer
74 views
LibGDX How to set spacing between list items in a Scene 2D Select Box Widget?
I have created a Select Box (Scene2D widget) which holds a list of items, to be selected. My code works fine, but I would like to make a little more spacing between each list item in the dropdown list ...
0
votes
1answer
125 views
How to implement buttons in Java?
I'm new to java and I want to know how to implement buttons for my menustate. Right now all I did is I made pictures of the buttons (play and exit) and just used g.drawImage to draw my Image to the ...
1
vote
0answers
73 views
External gui within a render loop
I was wandering how easy is to interface existing Java programs/GUIs inside a game loop. Sorry if my question is a bit vague. I'll try to explain.
I am currently designing a simulation environment ...
1
vote
0answers
92 views
Displaying an image when ScrollPane item is highlighted
I would like to have images displayed when an item in the list is highlighted as a form of a "preview" of the map that is selected. I'm not sure how i would implement this with clickListeners or ...
-1
votes
1answer
102 views
Game puzzle pop in java [closed]
I am making a game in Java based of those puzzle popping games.
The objective is to select with the mouse and remove a tile. The game i want to build.
I have a JPanel and on top, several Components, a ...
0
votes
1answer
137 views
How does one structure a Player GUI
I am using Java and the Slick2D library.
I've been testing around with ways to develop a Player Graphical User Interface (GUI) (to show armour, items picked up, weapons equipped, etc). The one ...
0
votes
1answer
189 views
Ball can double jump in Jumper Game
I wrote a game that has a ball which can only jump (like in most jumper games) to avoid incoming obstacles (only, I haven't integrated the obstacles part yet). Right now, it's just a ball that can ...
2
votes
1answer
69 views
Prevent button layout changing after one is removed?
I have a layout with four buttons in it. I end up removing one of the buttons using:
View v = (View) findViewById(R.id.ViewId);
((ViewManager) v.getParent()).removeView(v);
The ...
1
vote
0answers
70 views
Change GUI in Java game
I'm making a 2D Server/Client game, I have very little to no problems with the server but now I want to work on the client side code.
I'm thinking about using a JFrame and all the other GUI classes/...
2
votes
2answers
411 views
Swing GUI for games (performance) [closed]
I'm developing a game in Slick2D and I'm trying to make GUI.
I've already tried TWL library, but it seems to me a bit complicated and it doesn't cover what I need. In my own implementation of GUI I'...
2
votes
1answer
945 views
LibGDX scene2d good practices
I'm developing a game using LibGDX and in a part it has a pretty complex UI for profile selection and stuff. I have some general problems.
I'd like to know good practices when generate good looking ...
2
votes
1answer
490 views
Drawing shapes and images in libgdx dialog
I am currently working on a dialog window for my android game using libgdx. This dialog window contains a collection of labels and buttons, but should also contain an image. The image represents the "...
1
vote
1answer
1k 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
538 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
1k 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
142 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
812 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
732 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
253 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
4k 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
400 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
921 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
610 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 ...
4
votes
2answers
747 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
796 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
683 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 ...
13
votes
1answer
14k 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 ...
4
votes
1answer
10k 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 ...