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.
3,440 questions
1 vote
1 answer
104 views
Objects move with different speed on different devices
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 ...
4 votes
1 answer
704 views
SquidSquad - how to use WildernessGenerator and Biomes
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 ...
1 vote
0 answers
48 views
How to configure multi-project for minecraft server mod for different ports using common code with minecraft mappings?
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 ...
0 votes
0 answers
93 views
How do camera matrix multiplications work?
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 ...
0 votes
1 answer
86 views
How to destroy/remove Texture after collision in java box2d
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 ...
1 vote
0 answers
66 views
How to make a Minecraft Villager walk to a Location?
For Minecraft, utilizing the Bukkit/Spigot API, I have a LivingEntity Villager that I would like to path, or "walk" to ...
1 vote
1 answer
73 views
LibGDX TiledMap - get embedded objects from TextureMapObject
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 ...
0 votes
0 answers
362 views
How do I fix java.lang.ClassNotFoundException: org.lwjgl.glfw.GLFW
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: ...