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

HTML version of LibGDX game doesn't show any logging

I am having trouble getting a html version of my programme to appear. I am using LibGDX 1.3.1 and running in Java it works fine. I uploaded the game here: http://www.darkflame.co.uk/MeshExplorer/index.html The libgdx loading bar appears and finishes…
darkflame
  • 998
  • 1
  • 9
  • 23
3
votes
0 answers

LibGDX - custom shadow mapping

I need to create shadows in my scene. I don't want to use Environment with DirectionalShadowLight because it's deprecated and DefaultShader is redundancy. So, I need to implement my own shader with shadows support. Based on this article, I created 2…
Nolesh
  • 6,848
  • 12
  • 75
  • 112
3
votes
2 answers

How do i change the picture/emblem of my android game ? - libGDX

New to LibGDX. When i run my game on my android device it installs on the device with the default image of the android man :) How would i go about changing this image to something of my choice ? Is it on the android launcher ? Thanks in advance
rekoDolph
  • 813
  • 1
  • 9
  • 31
3
votes
0 answers

Is there a way to repeat a tiled map with libgdx

Is there a built in way to make libgdx map renderer repeat the map at the edges? I.e., at the very far edge, start drawing the leftmostpart all over again, and so on. thanks in advance
Brimstedt
  • 3,020
  • 22
  • 32
3
votes
0 answers

Libgdx: The InputListener fires twice if the mouse is held down

I have this code that is supposed to play a sound every time either a touch event (which I can't test right now) or mouse enters my actor. button.addListener(new InputListener(){ @Override public void enter(InputEvent event,…
Pluckerpluck
  • 731
  • 6
  • 21
3
votes
1 answer

Libgdx game exits when Google play signin called

Hi I made game in LibGx and integrated Google play services for achievments and leaderboard I published the game all was good Then I decided to integrate Admob Now when I tried to sign In my app exits with this error also waiting for pause…
Nipun David
  • 273
  • 2
  • 12
3
votes
2 answers

LibGDX - how do I make my game work on all screen resolutions?

I am currently using the Orthographic Camera. Before I get too much into the game, I want to fix the screen size first. Currently, I have the screen size set for 800 x 480. Will this work well on other devices and screen sizes? Right now all I have…
Dakota
  • 115
  • 2
  • 11
3
votes
1 answer

LibGdx: How to implement gestures on Actor

I am trying to implement gestures on Actors in LibGdx using ActorGestureListener. The following code draws the actor, but the pan method is not called. Am I missing something? I am using LibGdx 1.3.1. public class MyApp extends ApplicationAdapter…
Roar Skullestad
  • 2,427
  • 3
  • 26
  • 35
3
votes
3 answers

Executable jar with libgdx: asset not found

I created a little Game using the libgdx libraries and exported it to an executable jar. In Eclipse the Game works fine but the jar crashes with: PS E:\Workspaces\JavaGames\Executable Jars> java -jar Pk2.jar SetToNewScreen called Exception in thread…
RoHo
  • 33
  • 1
  • 6
3
votes
2 answers

Problems uploading App to Apple's App Store using RoboVM

I'm using Eclipse, libGDX 1.2.0 and RoboVM 0.0.14. In the last couple of days I was trying to upload my app to the app store with no success. To be completely honest, I don't really know what am I doing wrong, so I decided to attach the following…
ASM
  • 363
  • 1
  • 2
  • 14
3
votes
1 answer

libGDX 3d: too many PointLight()s?

I found out that you can only have 5 PointLight()s in a environment as dictated by the DefaultShaderProvider, how would I go about changing that? the issue is depicted here which I'm unaware as to how to do:…
3
votes
0 answers

Displaying 3D models with an OrthographicCamera in LibGDX

So basically I'm trying to display a .obj 3D Model with an OrthographicCamera in 2D rather than in 3D with a PerspectiveCamera. Everything works fine when I render with the PerspectiveCamera, however if I switch it to Orthographic, nothing displays,…
Darren
  • 1,774
  • 4
  • 21
  • 32
3
votes
0 answers

libgdx change ambient light intesity

I'm working on 3d app using Libgdx engine, and using 3d API. I need to change intensity of the light over time. I know there are three types of lights: Ambient, Directional, Point. Only PointLight has option for changing intesity. I'm trying to…
Veljko
  • 1,893
  • 6
  • 28
  • 58
3
votes
1 answer

Rotate sprite on sprite pixel level, not screen pixel level, in LibGDX

I'm making a pixelated game, and I'm trying to rotate a sprite. However, I'm not achieving the sort of rotating effect I'm aiming for. Currently, my sprite looks like this when it rotates: As you can see, it rotates relatively smoothly. You can see…
Vapid
  • 701
  • 7
  • 27
3
votes
2 answers

LIBGDX "parsing error emitter" with 2 or more emitters

I have a problem with the use of particle effect of LIBGDX with 2 or more emitters. After using ParticleEditor to create my .p file, I use it in my code BUT...when I use only 1 emitter it's fine but with more than 1, not fine ! :( Here is my error…
Zanimo
  • 53
  • 6