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
2 answers

"Failed to sign in" Google play game services

I've now spent over 8 continuous hours trying to figure out what is wrong and I still have'nt found a solution. I added leaderboards and achievements to my libgdx android app, and published it in alpha. For some reason, when I try to sign in in…
user2904986
  • 93
  • 1
  • 6
3
votes
1 answer

libgdx, several stages in one screen

I use two stages in one screen. One - for game actors, another - for control buttons and so on. I use FitViewport for game stage. What function "resize" should I use? Something like this: public void resize(int width, int height) { FitViewport…
3
votes
1 answer

Very low performance on mobile devices when the quantity of box2d bodies is over 300

I have been getting a very low performance when I have over 300 bodies in my world/stage. On LG optimus 4x hd (Android 4.0.3) I get something around 33 FPS and then 60 FPS when I have less then 50 bodies. Not sure if is the best approach, but I use…
Devester
  • 1,183
  • 4
  • 14
  • 41
3
votes
4 answers

libgdx - combine a number of textures into one

is there a way to combine a number of textures into one texture with libgdx API? For example, consider having these 3 textures: Texture texture1 = new Texture("texture1.png"); Texture texture2 = new Texture("texture2.png"); Texture texture3 = new…
user3705007
  • 265
  • 4
  • 12
3
votes
1 answer

RoboVM: missing signing identity

I have an app developed using libGDX and porting to iOS using robovm. This was working perfectly. I then updated my provisioning profile to allow export to another device. When doing this, I was now getting 2 provisioning profiles with the same name…
user3875916
  • 133
  • 2
  • 8
3
votes
3 answers

why dont i have universal tween engine when setting up LibGDX

Following a tutorial on setting up A LibGDX project and the tutorial says that in the third party section there should be a Universal Tween Engine. Mines not showing up, is there a way for it to show up? What do i have to download? Thanks in…
user3484803
3
votes
2 answers

libgdx - determining which platform is running

I have a core project that is converted to 5 different platforms. I need to change some parameters depending the platform that is running. For example if it's android I need to change the ip to the emulator localhost 10.0.0.2 and more. I tried to…
serj
  • 508
  • 4
  • 20
3
votes
1 answer

Multiple Actors in the same row Table Libgdx

Hello I'm using Libgdx And table with scene2d. I'm trying to add a few image buttons to the same row but what I'm getting is that the first image is centered in the middle and other two are pushed to the side , that also ruins my table (spacing) Is…
user3802649
  • 379
  • 2
  • 13
3
votes
1 answer

sendReliableMessage to self? Google Play Game Services - Android

I am trying to create a real-time multiplayer game using Google Play Game Services. I am trying to set one player as host. Everyone will send their commands to the host (via sendReliableMessage), and they will receive a response of what to render.…
3
votes
1 answer

Passing FreeType font to the assetloader in LibGDX

I'm trying to preload a load of TTF and OFT fonts on my splash screen that also implements a loading bar aling with textures. The idea is is that I preload a load of fonts with set sizes then the font manager retrieves the font when it's ready to be…
Oliver Dixon
  • 7,012
  • 5
  • 61
  • 95
3
votes
1 answer

Libgdx bullet offset origin

i am using blender to create my models, and loading them into Libgdx, if i create them with the Origin in the center of the model like below and then use this code to create the rigid body, all works fine Vector3 hescoWallHalfExtents = new…
Spriggsy
  • 196
  • 1
  • 18
3
votes
1 answer

Draw all textures flipped?

First off, with my background in XNA i just cannot get used to the inverted Y axis. So in LibGDX i flipped the OrthographicCamera with cam.setToOrtho(true,width, height) but this obviously ends up in drawing all my textures upside down. I can create…
Madmenyo
  • 8,389
  • 7
  • 52
  • 99
3
votes
1 answer

Libgdx InputListener "exit()" is not being called with TextButton

I want to use the exit() method in the InputListener to see wheter the cursor is inside the button or not. Here is the explanation in the libGDX docs. public void exit(InputEvent event, float x, float y, int pointer, Actor toActor) Called any time…
Sierox
  • 459
  • 3
  • 18
3
votes
2 answers

How to constrain the mouse cursor within the bounds of the window in LibGDX?

This is a widely known issue that can even sometimes appear on even high-budget professional titles, that when you set the window type to "borderless" and you have an extended display your mouse can "slide off-screen" if the mouse is not constrained…
Ceiling Gecko
  • 3,104
  • 2
  • 24
  • 33
3
votes
4 answers

File not found exception using IntelliJ IDEA

I've got Gradle projects and 2 IDE's: NetBeans and IntelliJ. NetBeans works perfectly with this project, no errors found. But IntelliJ in the same project throws exception: [Assets] error: com.badlogic.gdx.utils.GdxRuntimeException: File not found:…
Dima Gram
  • 31
  • 1
  • 4
1 2 3
99
100