Questions tagged [libgdx]

'libGDX' is an open-source cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux, Mac OS X, Android, iOS and WebGL enabled browsers.

The libGDX project is a cross-platform (Windows, Mac OS X, Linux, Android, BlackBerry, HTML5, and iOS) game development library written in Java with some JNI code. It abstracts away the differences between the different platforms and enables easier development of OpenGL-based games on them.

'libGDX' is an open-source effort, started by Mario Zechner in late 2009/early 2010. In its original form it was an attempt at a rapid prototyping library which avoids the slow development cycle usually encountered when creating pure Android applications. The goal was to be able to work mostly on the desktop, and only deploy to the emulator/a device when absolutely necessary.

'libGDX' now is a multi-backend, cross-platform game development library which is not only targeting Android, but it can also be considered a viable framework for desktop applications (stand-alone, applets, and Web Start).

It includes a wrapper to work directly with (2D physics). And one for (3D physics).

Please note that there's a rich community on the official forum, and an official wiki.

The current stable version is 1.11.0, which was released in May 2022.

12609 questions
3
votes
1 answer

scaleTo scaleBy doesn't work for ImageButton - LIBGDX

I'm trying to scale an ImageButton after a button click but it seems it doesn't have any effect. I've also tried adding the ImageButton to a table and then scale the table but it doesn't work also. Actions like fadeIn, fadeOut , and moveTo work…
gogonapel
  • 788
  • 6
  • 17
3
votes
1 answer

LibGDX: No Drawable, NinePatch, TextureRegion, Texture, or Sprite registered with name: white

I use a uiskin.json as my game skin. But I always get an error that there is No Drawable, NinePatch, TextureRegion, Texture, or Sprite registered with name: white. I searched across the web and SO but did not fond a proper solution. Maybe there is…
Robin Ellerkmann
  • 2,083
  • 4
  • 29
  • 34
3
votes
0 answers

3D scene graph in libGDX

This is my 1st day of trying out libGDX after working with JOGL for nearly 6 months. Problem: I need a solution to bind 3D models to other models dynamically in run-time. I am designing a simple 3D dog fight game and the weapons in hard points need…
legokangpalla
  • 495
  • 5
  • 20
3
votes
2 answers

Play music asynchronously over screens - Libgdx Java

I want background music to be played over various screens of my game the music is initially started in the first screen class: boolean backgroundMusicPlaying = backgroundMusic.isPlaying(); public MainMenuScreen(Game1 gam){ (...) …
useruseruser
  • 73
  • 1
  • 6
3
votes
1 answer

ProGuard on Android + reflection = NoSuchFieldException

Me name is Matthew and i have some trouble with reflection on Android after i use ProGuard. I'm writing game in libgdx and I need to dynamically get String, I have something like this: package com.PACKAGE; public class CLASS extends…
miecio
  • 315
  • 1
  • 4
  • 19
3
votes
1 answer

LibGDX 3D low fps on android

I just started to learn to render 3D with libgdx (with Xoppa tutorials), and got a problem with the framerate when using a .G3DB object as model on android. I am importing an object from blender (that I previously converted to .g3db with fbx…
Daniel
  • 41
  • 4
3
votes
1 answer

Detecting the Google Play sign in-success in Libgdx Screen

LibGdx Android App I am trying to login to Google play from the libgdx screen using the actionResolver.loginGPGS() which is there in the Activity AndroidLauncher . The actual login process happens in the Activity-AndroidLauncher and…
iappmaker
  • 2,945
  • 9
  • 35
  • 76
3
votes
1 answer

Create animation from TextureAtlas - libgdx

I have a .png file conataining a few textures one ofter one. I want to create an animation from this file. I know how to create an animation from a TexturePacker .txt file but in this case it doesn't help me much.
David Lasry
  • 1,407
  • 4
  • 26
  • 43
3
votes
1 answer

libGDX texture quality scaling down

i am new to libGDX and I just wanted to put a image onto the screen. I have a red ball image which is 800x800 and when i try draw the texture: batch.draw(ball,50,50,50,50); The quality of the ball is really bad, but when I don't scale it down, the…
user3650664
  • 161
  • 1
  • 14
3
votes
1 answer

libGDX: How to render a tilemap?

I would like to draw a map consisting of a limited set of tiles in different zoom levels, just like google maps for instance. The reason why I consider using tiles is because the map is very large and in the highest magnification the whole map is…
1FpGLLjZSZMx6k
  • 947
  • 1
  • 8
  • 26
3
votes
1 answer

How do I add a platform to LibGdx project?

I created a LibGdx Project with the LibGdx project creator tool. When I ran it, I selected Android and Desktop projects, but I did not add html. How can I add html support in my LibGdx game later?
Kurtoid
  • 217
  • 5
  • 15
3
votes
2 answers

JAVA-LIBGDX How to set up correctly a scrollPane

I am trying to add to my game a less sliding menu(left and right) at the bottom of the screen. My problem is that I can not adjust the table at the bottom of the screen, this is my code: private void initUI() { // inizializzazione dello stage …
user1087543
  • 49
  • 1
  • 5
3
votes
1 answer

libgdx: asset manager block screen ui

I use AssetManager to load all assets in my game. I have problem with displaying loading progress or instead progress I try to set only background colour using this code in my LoadingScreen render method. Gdx.gl.glClearColor(0.431f, 0.792f,…
Jovan
  • 4,684
  • 13
  • 64
  • 98
3
votes
2 answers

Rectangle overlaps method libgdx

I'm trying to use the overlaps method to determine whether two sprites collide but from some reason it simply doesn't work. It always returns false, even when I clearly see the sprites collide with each other. The funny thing is, this is not the…
David Lasry
  • 1,407
  • 4
  • 26
  • 43
3
votes
1 answer

Debugging libgdx/html project in Netbeans

I've created a sample libgdx/html project in NetBeans 8 and I've followed this guide https://github.com/libgdx/libgdx/wiki/Gradle-and-NetBeans. When I try to run it right-clicking the HTML project, then Tasks/superDev, NetBeans compiles everything…