Skip to main content

Questions tagged [swing]

Swing is the primary user-interface toolkit in Java and is shipped with the standard Java SDK. It is contained within the package javax.swing.

4 votes
1 answer
3k views

I'm developing a 2D game in Java using Java Swing, and I've run into an issue with my player character's attack animation. The player has both movement and attack animations: Movement sprites: 16x16 ...
TheLearner14's user avatar
0 votes
0 answers
97 views

I am working on a game engine. ...
Grinding For Reputation's user avatar
0 votes
0 answers
278 views

I'm working on a Java Brick Breaker game, and it's functional so far. However, I'm facing an issue with collisions. Currently, when the ball collides it simply reverses its direction. I want to ...
Zappiermike's user avatar
0 votes
0 answers
51 views

Not entirely sure how to resolve the issue as I am quite new to programming, however this seems to be my last option in terms of finding an adequate solution. EDIT: https://streamable.com/0i92xq - ...
jah's user avatar
  • 1
1 vote
0 answers
135 views

i'm pretty new to coding (about 5 months) and i've been trying to make a custom terminal for a text based RPG. so far i have the terminal working the way it should but i'm looking for ways to rewrite ...
Providence's user avatar
0 votes
1 answer
337 views

I am writing a chess game using Java and Swing, And I wanted to get the tile position on which a mouse clicked. I searched through internet, but all of them were really off, and never accurate. When I ...
anonymous's user avatar
0 votes
0 answers
23 views

I am writing a chess game using Java and Swing, And I wanted to get the tile position on which a mouse clicked. I searched through internet, but all of them were really off, and never accurate. When I ...
anonymous's user avatar
0 votes
1 answer
438 views

I am currently developing a tile based game in Java and trying to add the option of zooming. I do the zoom by reducing and enlarging the tiles, but the problem is that it creates spaces between the ...
RonDev's user avatar
  • 3
0 votes
0 answers
83 views

I've been in trouble for weeks now and I don't understand why it doesn't work for me! I have tried so many things and I just can not understand. I try to get one player to get a knockback as soon as ...
RonDev's user avatar
  • 3
0 votes
1 answer
88 views

I made a raycasting engine with wall textures. Before adding the texture the engine was silky smooth. With textures it has small lags (or stutters) when i move around and i would like to know why. My ...
Frédéric Bélanger's user avatar
2 votes
1 answer
1k views

I am coding an Asteroids game in Java. In the real arcade game, asteroids are made of irregular shapes like this: When I code, I can only set asteroids to 1 or another specific shape, like this: ...
Laser Infinite's user avatar
0 votes
1 answer
165 views

I have some simple code that draws a dot in one of 8 places on a screen. There is a higher chance the dot will appear in some locations more than others. The code works and all, but it feels kind of ...
Laser Infinite's user avatar
0 votes
1 answer
198 views

I am developing a puzzle game in java with swing. Purpose of the game to find the all the correct pairs on the board without ur lifes reaching 0 , preety simple etc. I have a class My_Button which ...
GioZio's user avatar
  • 1
0 votes
1 answer
1k views

Hi I am creating my first game in NetBeans using Java, the game is going to be an RPG that will look a bit look Undertale on the surface in that there will be a menu, then a load game section and then ...
Grace's user avatar
  • 3
-1 votes
1 answer
392 views

I have made a game in Java using Swing for the GUI. It is a network game relying on the client-server model. Basically the game is a turned-based chess-like game. It has a connection menu, game ...
Reedy's user avatar
  • 1

15 30 50 per page
1
2 3 4 5