r/libgdx • • Aug 22 '17

There is now a libGDX discord server!

48 Upvotes

Thank you /u/spaceemaster for creating the new libGDX discord server. There are a number of channels, including but not limited to: screenshot sharing, question & answers, and kotlin discussions.

Click the link below to join in.

 

https://discord.gg/6pgDK9F

 


Original post


r/libgdx • • 8h ago

Elemental Crescent Combos and more!

9 Upvotes

Hello, r/libgdx! I've been cooking up a lot of stuff on my indie ARPG, Seven Stardust, and I won't share all of it here, but here's some of the new elemental combos! Have a great day!


r/libgdx • • 3d ago

Turn your Tiled maps into pseudo-3D scenes with Pixscape — Studio Free 0.4.3 is out

17 Upvotes

Hi everyone!

What if you could take your existing Tiled map and give your game pseudo-3D depth, lighting and shadows?

That's the idea behind Pixscape, a free, open-source 2D game engine built on LibGDX. Import your map, define wall volumes and actor footprints visually, then add lights. Characters can move behind walls and roofs, and walls and actors cast shadows into the scene.

You keep your 2D artwork and write gameplay in Java, with LibGDX available directly alongside Pixscape.

Studio Free 0.4.3 and Runtime 0.2.5 are now available. This release makes those workflows easier:

  • Spatial editing independent of physics. Configure footprints, occlusion zones and shadow pivots separately, without adding a physics body.
  • A proper Tiled layer hierarchy. Work with tile, object and image layers, transfer tile layers between compatible maps, and create rectangle and polygon objects.
  • More flexible Game Objects. Give roots their own visuals and rearrange hierarchies with drag-and-drop.
  • Richer custom properties. Use lists, enums and flags, and access global tileset properties through the Runtime API.
  • Animation workflows in the Inspector. Preview clips, arrange tile animation frames and adjust their timing.

The website and documentation have also been updated, from Getting Started to the Runtime API and Studio guides.

For existing users: project and export formats have changed, along with parts of the Runtime API. Older formats are not supported, and there is no automatic migration. Keep a backup before upgrading.

Website & documentation · Studio downloads — Windows, Linux and macOS · Runtime 0.2.5

What kind of game would you use this for? I'd love to hear your ideas and feedback.


r/libgdx • • 8d ago

A 3D survival game built with libGDX + Bullet (no game engine), now on Google Play

19 Upvotes

I've been building a 3D survival game for Android using libGDX and Bullet Physics. It has a procedurally generated world, hunting, and a day/night cycle. I've just released it on Google Play, and I'd genuinely appreciate feedback from other libGDX developers — especially on the technical side.

https://play.google.com/store/apps/details?id=io.zerodigest.crycroc


r/libgdx • • 9d ago

Finally did it: the universe in the palm of my hand :)

Post image
28 Upvotes

I wanted a whole star system on a phone as one continuous place: take off from a moon, fly to a planet, come down through its clouds, land and walk around, with no loading screens.

Unity, Unreal and Godot aren't built for this, so I built my own engine on top of libGDX. One atmosphere model from the ground to orbit, and volumetric clouds you can fly through. Java 17, libGDX 1.14, OpenGL ES 3.

It runs on my phone, a OnePlus 13.

Video: Flying Over a Beautiful Alien Planet

It's not all solved. I'm still fighting to hold 60 fps and to keep the phone's temperature down.

Thanks to everyone who works on libGDX.


r/libgdx • • 11d ago

Hi all, im new in the libgdx can you rate my game menu?

Thumbnail gallery
10 Upvotes

Thanks if you rate it.


r/libgdx • • 12d ago

How to get the stacktrace/lines that causes errors

1 Upvotes

Hey !

I have been stuck on a bug for the past two days and I can't find how to get the full stacktrace from an error, all I get is the message
Thanks !

I'm using Intellij


r/libgdx • • 14d ago

How does MeshBuilder.vertex(Vector3 pos, Vector3 nor, Color col, Vector2 uv) work?

2 Upvotes

I have a Meshbuilder here and I'm trying to add vertices to it using vertex() but it keeps saying "Cannot store to float array because "this.vertex" is null", I though vertex() was supposed to add a new vertex?Is there something i dont understand?

?

MeshBuilder slabModels = new MeshBuilder();

for(int isTop = 0; isTop <= 1; ++isTop) {

for(int currentVert= 0; currentVert < firstSlab.getBounds()[0].length; ++currentVert){

slabModels.vertex(new Vector3(firstSlab.getBounds()[0][currentVert].x, isTop, firstSlab.getBounds()[0][currentVert].y), new Vector3(), Color.FOREST, new Vector2());

}

}

Mesh finalMesh = slabModels.end();


r/libgdx • • 15d ago

BunkerWorld Boss fight

12 Upvotes

r/libgdx • • 18d ago

How to make image display in libGDX as high quality as Window Photos App

Post image
13 Upvotes

I'm making my own photo viewer with libGDX. When compared to window photos, the image in my app has some jagged lines (or pixelated, how you call it). I already set setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);. The image here is 3000x3000 fitted to the shorter dimension of the viewport (just like the Window app). Both windows are docked side by side for comparison. I circled an obvious spot in red. Left is Window Photos, right is libGDX.

Edit: Both look pretty much the same when I zoom in by the way


r/libgdx • • 18d ago

Sea Battle

6 Upvotes

Ok, It's pygame. (Sorry)


r/libgdx • • 21d ago

How do you use FirstPersonCameraController?

5 Upvotes

I just made one input = new FirstPersonCameraController(cam); and am updating it in render() and it doesnt appear to be reading my keyboard inputs, do i need to include anything else with it?

EDIT: I am done trying to use FirstPersonCameraController, ive decided to make something similar to it myself, any idea how the rotations of cameras work?


r/libgdx • • 22d ago

I made doom launcher that downloads mods automaticaly

Thumbnail gallery
14 Upvotes

Used libgdx to do this :).


r/libgdx • • Oct 25 '26

New Demo, Enemy AI, and Pathfinding

14 Upvotes

Hello, r/libgdx!
I've been working a lot on enemy AI and pathfinding this last week, and it turned out way better than I expected! I was working a lot with a custom pathfinder, but it would tank the framerate a ton, so I decided to use the A* implementation included inside of gdx-ai, and it works great!
As for the little icon in the top corner, that is a core part of the gameplay loop. I'll implement more of that later. I also spent some time making a better font.
If anyone would like to spend just a couple of minutes playing the combat test I published and provide feedback, it would be super helpful to me and my game! Have a great day!
https://exboom2.itch.io/seven-stardust
https://gamejolt.com/games/seven-stardust/1099624


r/libgdx • • Oct 25 '26

First time mistakes to avoid when making a game engine?

4 Upvotes

I decided to start making my own game engine and it's going well so far, but I wanted to make sure I dont do something in the future that could mean a lot of time spent recoding systems so it'll work again, so are there any common mistakes I might need to know about that might not be immediately clear?


r/libgdx • • Oct 21 '26

Shader pbr

6 Upvotes

r/libgdx • • Oct 21 '26

Shader texture pbr

Thumbnail youtube.com
2 Upvotes

r/libgdx • • Oct 14 '26

BunkerWorld Base Building

7 Upvotes

r/libgdx • • Oct 13 '26

2026 Guide to 3D Java Game Programing with libGDX - Hello Spinning Cube

Thumbnail youtu.be
28 Upvotes

It's absolutely possible to develop fully functional and engaging 3D games in libGDX. Comparing to other game engines libGDX doesn't have a very comprehensive 3D graphics API but once you get used to its programming paradigm, you can flexibly develop your own abstraction layers on top of the core 3D API!

In this video, I'm introducing basic 3D concepts in libGDX and develop a small demo application that renders a spinning cube under 100 lines of code.

Hope you like it!


r/libgdx • • Oct 12 '26

I deleted thousands of lines of code, here's why

22 Upvotes

Hello, r/libGDX!
It's been 2 months since my last post on Seven Stardust, and I finally think I'm ready to reach out and talk about my journey again. I've been working on a open-world RPG, and for the last few months I've been reworking almost every aspect of the game.
I removed the old player sprites, enemy AI, animations, story trees, a whole map, and more. I did this for a few reasons.
First, my codebase was terrible. While I could make Seven Stardust with it, its scalability was terrible and there's no way it would be as good as I want it to be.
Second, it was poor effort in some areas. There were some areas of the game that just wasn't fun to play, as it was made in a 30 minute span.
Fourth, the codebase was also unstable. I fixed a ton of bugs, including the very prominent bug where attacking east would phase you into a wall.
This was because the hitbox was setting to 16*10 for some reason when moving east when it should've been 10*10.
Thank you to all the people who have been supporting my small project, and if you have any feedback, please don't be afraid to share! I don't really judge people on what they think of my project, as I'm always willing to improve and make my game based on what the community thinks.
Have a great day, and thank you for reading my yapping about my code's flaws!


r/libgdx • • Oct 11 '26

Tunnel one

19 Upvotes

Shader libgdx opengl


r/libgdx • • Oct 10 '26

isKeyPressed not working on Fedora Linux?

4 Upvotes

Just the title, odd bug I'm not sure where it's coming from. isKeyPressed(Input.Keys.W) will work fine, but for other keys, such as Input.Keys.A, it'll just return false constantly. Even weirder still, isKeyJustPressed(...) works fine for any and all inputs. Does anyone have any ideas how to fix this? Thank you.

Edit:
Just fixed it right now by using X11 instead of Wayland:

org.lwjgl.glfw.GLFW.glfwInitHint(

org.lwjgl.glfw.GLFW.GLFW_PLATFORM,

org.lwjgl.glfw.GLFW.GLFW_PLATFORM_X11

);

Put this in the Lwjgl3Launcher main()

:)


r/libgdx • • Oct 04 '26

Shader meteor tunnel one

8 Upvotes

r/libgdx • • Sep 23 '26

How to use libGDX Viewport - A Detailed and Modern Explanation

Thumbnail youtu.be
34 Upvotes

Viewport is important but still a bit confusing for beginners. I make a modern tutorial on using libGDX viewport for your games.