Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [java]

Java is both a popular object-oriented programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

I was making a 2d top-down game, but when I tested it on two devices (Samsung M31 and Samsung S25) there was a problem with player speed - it was faster on S25 and slower on M31. I tried using some ...
andrew's user avatar
  • 31
0 votes
0 answers
53 views

I am trying to have modded items in the chests of lost cites mod, and there is this problem I am facing, in which a mod called Apocalypse Now automatically injects its mod items into the chests ...
ActionBotYT's user avatar
4 votes
1 answer
703 views

I'm starting to create a roguelike, and stumbled upon SquidSquad, which has an amazing collection of algorithms and other stuff related to roguelikes. However, for some parts, documentation is really ...
user38725's user avatar
  • 214
0 votes
1 answer
42 views

I'm working on a mod for 1.7.10 Forge that needs a complex config for the user to set up, but only the "general" category shows up (from ...
Lum1te's user avatar
  • 21
1 vote
0 answers
48 views

I want to make a gradle multi-project to port a server mod I made for Forge to Paper. The problem I'm facing is that the common project doesn't recognise any ...
magg's user avatar
  • 11
0 votes
0 answers
88 views

I'm currently developing third-party app to existing rpg game which serves useful information about the game. I don't have much experience of game-related development. The game provides api for ...
evol1102's user avatar
0 votes
0 answers
87 views

I was trying to make a 3d renderer in Java and was very confused about how to multiply the camera matrices correctly. So for the camera transformation matrix (T) I need a translation matrix (C) and ...
ThatRandomOctoling's user avatar
0 votes
0 answers
132 views

How would I extend the range of note blocks in Minecraft? I'm using a Fabric mod template for 1.21.1. I only started coding about a week ago, so I barely have any idea what I'm doing; as much ...
symphxnic's user avatar
0 votes
1 answer
85 views

I'm coding a simple Arkanoid/Breakout game and have problems with removing the bricks. I'm able to destroy the body but the texture is still there. I'm a beginner so is there a simple way to remove it ...
K.U's user avatar
  • 1
0 votes
0 answers
65 views

I've been trying to learn libgdx's 3D functionality, because I want to make a turn-based game set on a 3D hexagonally tiled sphere. As a simple starter project, I decided to try to create a simple ...
Jax's user avatar
  • 474
1 vote
0 answers
66 views

For Minecraft, utilizing the Bukkit/Spigot API, I have a LivingEntity Villager that I would like to path, or "walk" to ...
Randall Arms's user avatar
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
1 vote
1 answer
73 views

Is there a way of getting embedded objects defined within Tiled's collision editor from TextureMapObjects? It'd be great if I could place texture objects around on an object layer and also include ...
Silas Hayes-Williams's user avatar
1 vote
1 answer
138 views

I would like to preface this by saying I am not a dedicated game developer. I am trying to implement proportional navigation in order to create a missile class that receives the target location every ...
Stephan's user avatar
  • 21
0 votes
0 answers
361 views

I have not used Java in a while and thought I might try LWJGL with OpenGL and GLFW. I am using Apache Maven as a Build System. It lets me compile the program, but when I run it, it says: ...
Doggo4's user avatar
  • 1
0 votes
1 answer
88 views

Im trying to connect bodies together to make some sort of a "building" system or more specifically im trying to make multiple "blocks" connect to eachother but Struggling to figure ...
Ziv the fire's user avatar
0 votes
1 answer
168 views

I am trying to compare the Z-axis and the X-axis of two different quaternions in a way that would give me the Euler angles about the X and Y axes to line up the two different axes. In my program, the ...
ACR115's user avatar
  • 1
0 votes
1 answer
121 views

I'm trying to figure out back-face culling, with little results. My code, from what i've gathered: ...
Valtsuh's user avatar
  • 139
1 vote
2 answers
336 views

I'm having a really hard time understanding Threads and their contents. What I'd like to have is a main game object (which I have) and a loop, where I can measure the time it takes for two threads to ...
Valtsuh's user avatar
  • 139
0 votes
0 answers
96 views

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

I'm making a simple game engine using Java and have found a major issue. To create accurate collision detection I decided to convert a transparent image into a ...
Grinding For Reputation's user avatar
2 votes
1 answer
153 views

I'm planning to make a Class for RPG game's character skill. But the problem is that the skills need to be classified by multiple criteria. Below are the criteria for skills. Independent / dependent ...
evol1102's user avatar
0 votes
1 answer
96 views

I'm currently working on a LibGDX Java Game Project inspired by the Space Invaders game where I have created 2 Scene Classes: LevelScene and ...
TechGeek49's user avatar
0 votes
1 answer
507 views

I'm trying to make a turn-based game where my character is allow to move in any direction, but only by as much as the dice rolled allows him. My problem is with how I'm using ...
Silver Lilies's user avatar
1 vote
0 answers
66 views

Sometimes in video games the players can walk up to certain objects for example boxes and barrels and shove them around. How can I recreate this system? What function do I have to use to apply force ...
Nagy Lala's user avatar
2 votes
1 answer
236 views

I've been developping a 3D app for some time and I remember at some point I started to need to pass data arround in unrelated areas of the program, where it wouldn't make much sense to pass them ...
Gyoo's user avatar
  • 286
2 votes
1 answer
294 views

I'm developping an OpenGLes 3.0 app with Java and I started writing the shader code. For some reason, it seems to mix up the attributes data locations and I don't understand why. Here's the code : ...
Gyoo's user avatar
  • 286
3 votes
1 answer
865 views

I'm developing a RPG-game. After searching about various ways to save item information in RPG-game, I determined to save information in JSON files. The problem is that in my game, some equipment's ...
evol1102's user avatar
1 vote
0 answers
92 views

I work in java with lwjgl3. I came across a strange artifact, the source of which I have not been able to determine for a very long time. I'm drawing a large surface. When I approach this surface and ...
alfabouh's user avatar
0 votes
0 answers
59 views

I create text buttons, add every image and font, but it's still disabled when I want to add button in scene composer. I'm probably doing something wrong.
p3tition's user avatar
0 votes
0 answers
64 views

Currently coding in java, using cocos engine, making a low-poly game with a world which changes based on what the player does, hopefully including the aspect of an enemy changing when the player hits ...
AussieNote's user avatar
0 votes
0 answers
276 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
40 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
492 views

I am trying to implement realistic physics for my game plinko. As of now i only implemented the inversion of the velocity and the distance between both objects. ...
Jonasoos's user avatar
0 votes
1 answer
90 views

I have a piece of code similar to this: Vector2 test = new Vector2().setLength(20).setAngleDeg(45); But when I'm trying to print its contents (such as ...
big papa's user avatar
0 votes
0 answers
73 views

I'm trying to make a map using a text file, but it only does the first line / column and not the rest. I know the problem is in getTileImage. ...
Nobodyis_here's user avatar
0 votes
0 answers
98 views

I have a game I am working on, and I want to make a launcher for it. I am having trouble finding information on how to do it in Java (my video game is programmed in Java, so I do not want to use C#, ...
KSPortalcraftDev's user avatar
-2 votes
1 answer
74 views

...
Nobodyis_here's user avatar
1 vote
2 answers
197 views

If you were to design a multi character game like "Genshin Impact", would you design the character(hero) as a item? What is an item: in our game design, an item is an object within the game ...
Criwran's user avatar
  • 111
0 votes
0 answers
47 views

so my project is a ray-casted lighting system thats trying to implement soft shadows. the ray casting is working currently, so right now my focus is on performance of the soft shadows portion. i use ...
Potat.OS1's user avatar
0 votes
1 answer
278 views

I want to make some new Recipes with CraftTweaker, which uses machines from the Create mod (I'm using Life In The Village 3), but I have the following error in my scripts: ...
Lucas Plt's user avatar
0 votes
1 answer
285 views

After creating a few bodies and a map with collisions, the app performance clearly goes down. However, RAM and CPU don't seem fully stuck, but the game experience is horrible nonetheless. GameScreen ...
ognevo's user avatar
  • 1
0 votes
0 answers
209 views

I am working on a java 2d game. Keeping things short, I'd like to improve my current input handling. Basically the player can move up/down/left/right with WASD, perform an attack with mouse left click ...
magister's user avatar
1 vote
0 answers
233 views

I'm new to Java and I have seen that some games use Canvas and some use JPanel as the class that Game class inherits from. Here is a sample project but it's a bit old. I am not sure what should I use ...
Zielony XD's user avatar
0 votes
1 answer
785 views

So I have recently been working on a minecraft 1.8.9 forge mod, just to play around and see what there is (eventually I am planning on making a utilities mod with versions for 1.8-1.19, which is why I'...
MiSt Rocky's user avatar
1 vote
0 answers
47 views

Did anyone use this library? I am wondering if this library has a possibility to display tile animation? When I try to show my "abc_main.tmx" map (created in Tiled application) the tile with ...
Jawegiel's user avatar
  • 111
1 vote
0 answers
138 views

I am developing my first libGDX game. I want to animate the buttons on the stage, so they transition into view instead of just popping into appearance. For example, each button should slide in from ...
Zerg's user avatar
  • 11
1 vote
0 answers
214 views

The following example prints 59 on my system, because the return type of getRefreshRate is int. ...
ceving's user avatar
  • 111
0 votes
1 answer
730 views

I have used the BufferStrategy, but my code runs still way too fast. xrandr reports that TearFree is "on" and the ...
ceving's user avatar
  • 111
1 vote
0 answers
85 views

so lately i've been learning about abstract classes and interfaces, and i saw a neat yt video about falling sand games (think Noita) so i wanted to take a crack at it as some particles share a ...
Potat.OS1's user avatar

1
2 3 4 5
69