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
14
votes
3 answers

Error while importing projects

While importing projects into eclipse i have this error: Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory. Could not execute…
raco
  • 398
  • 1
  • 5
  • 18
14
votes
1 answer

libgdx: Rotate a texture when drawing it with spritebatch

Im trying to rotate textures when I draw them. I figured it would make more sense to do this than to rotate the images 90 degrees in paint.net and save them in different files. I looked thought the api documentation for spritebatch drawing arguments…
vedi0boy
  • 1,030
  • 4
  • 11
  • 32
14
votes
1 answer

Libgdx IOS Not Working?

I recently finished making a libgdx app for android, and I am currently trying to port it to ios. I have eclipse kepler installed, with the robovm plugin on top of it. My mac is also running osx mavericks. Now for the actual problem- Whenever i try…
Ashwin Kudva
  • 325
  • 2
  • 16
14
votes
5 answers

AdMob won't show the banner until refresh or sign in to google plus

I've got a problem. My AdMob has been set up for some time now without any problem, but I noticed something wrong. Ad gets successfully loaded (i see message from ddms), but it won't show. It will get shown after periodical 60 seconds refresh or…
Juraj Pancik
  • 301
  • 2
  • 8
14
votes
2 answers

Blur the screen in LibGDX

Im trying to create a background effect like this for my pause menu. My current idea is to take a screenshot on pause, save it, open it, Gaussian blur it, then render it to the screen and render the menu ontop. The only problem is I don't know how…
Chris
  • 2,435
  • 6
  • 26
  • 49
14
votes
2 answers

How to determine which platform the current app is running on in LibGDX?

I need to offer slightly different app logic depending on the deployment platform my LibGDX app is running on, i.e. Desktop or Android, etc., does the LibGDX API offer a method of identifying the current runtime platform? This post, "abstracting…
Big Rich
  • 5,864
  • 1
  • 40
  • 64
14
votes
1 answer

libgdx-android: Intercepting back key and confirm exit

Using libgdx, how can I intercept the android BACK key in order to do some preprocessing (e.g. asking for confirmation from user), before actually performing the command to exit the game?
swalog
  • 4,403
  • 3
  • 32
  • 60
14
votes
2 answers

Is there an upper limit on velocity when using box2d?

I'm using box2d for physics simulation. I'm moving a circle using arrow keys by applying impulse on the body when ever a key is pressed. Unfortunately, the circle moves excruciatingly slow and doesn't seem to accelerate like a true physical body is…
ivymike
  • 1,511
  • 2
  • 20
  • 27
14
votes
1 answer

How do I render a convincing skydome?

I am writing an OpenGL ES 2.0 app which renders a 3D island. I already have code to generate a sky dome around the island. This is a hemisphere comprised of triangles which over lay the island with z point upwards. The dome has some very basic…
locka
  • 5,809
  • 3
  • 33
  • 38
14
votes
3 answers

Drawing table borders in libgdx 0.9.7

I am drawing a table in using libgdx game framework. Everything is rendered perfectly what I was trying to achieve. All I need now is to display cell borders of the table but I found nothing regarding this so far. I am also inclined to use the debug…
ktk
  • 297
  • 4
  • 13
13
votes
2 answers

UI API for libgdx

Android and libgdx noob here. Does anyone know anything about the recent UI API that was released for libgdx? See blog post here: http://www.badlogicgames.com/wordpress/?p=2058 I am looking to create a basic menu system, and I was wondering if this…
kachilous
  • 2,499
  • 11
  • 42
  • 56
13
votes
2 answers

libgdx game crashes on some devices

Right after start of app, my app crushes without error message on a device. This only happens on Samsung Note 1(at least, can't test on all devices), but not on Motorola Moto G or Galaxy s4mini. The only hint I get is in the debugger. I pasted it…
potato
  • 4,479
  • 7
  • 42
  • 99
13
votes
4 answers

Android Studio 'Add as Library' missing For Universal Tween Engine on Libgdx

I am working on a Libgdx project that uses the Universal Tween Engine. I have followed all of the steps on this page: https://github.com/libgdx/libgdx/wiki/Universal-Tween-Engine to install the Universal Tween Engine library into my project. After…
FoamyGuy
  • 46,603
  • 18
  • 125
  • 156
13
votes
1 answer

Libgdx - IllegalStateException at unknown location

I am using android studio 1.3, and libgdx 1.6.2 to create a game. I want to incorporate google play services to my game and I have completed everything in one step, because I did it before without problem. However, this time it gave me an exception:…
Fish
  • 1,689
  • 1
  • 18
  • 28
13
votes
2 answers

libgdx TextureRegion to Pixmap

How do I create Pixmap from TextureRegion or from Sprite? I need this in order to change color of some pixels and then create new Texture from Pixmap (during loading screen).
Mickey Tin
  • 3,408
  • 10
  • 42
  • 71