Tagged Questions
-1
votes
1answer
38 views
Android TCG structural design [closed]
I started developing tcg for android, using ADT bundle.
What is the right approach/way for making/storing cards/game info, local sqlite, some kind of data file? some service? or something else?
0
votes
1answer
17 views
Problem with Widget Event Reporting in Libgdx
So I'm trying to test an ImageButton on an Android device. I can get the button to appear on the screen, but when I press it nothing happens or appears on the log. Here is what I have in the Show() ...
0
votes
1answer
37 views
How do you implement Libgdx touchDragged?
I'm a beginner in Java and in Game Development too. I was following some tutorials, but now I'm stuck on implementing a touchDragged listener using libgdx,
Can anyone suggest how to drag the image ...
-1
votes
0answers
25 views
Skins for libGDX user interface [closed]
I am making a user interface in libGDX using the scene2d.ui portion of the library. To make a button, however, I need to have a skin. I was wondering if there is some sample premade skins available by ...
-3
votes
0answers
51 views
How to animate the Tilemap object in Libgdx? [closed]
I am facing problem to animate or move the object(Cell) of Tilemap??? Is there any solution for this???
1
vote
0answers
55 views
sharing preferences between two apps on android with libgdx
I am making an android game with both a demo version and a paid version. I want users who decide to buy the paid version to continue from where they left off, with all their old data and settings.
...
0
votes
0answers
67 views
Texture not rendered correctly while zooming in LibGdx
I'm trying to make a game with libgdx which can run in multiple aspect ratio. The idea is to zoom in/zoom out the camera until the height of my screen same as the device height (my game is landscape). ...
0
votes
3answers
240 views
Implementing a basic jump in libgdx
I have seen the document for libgdx and managed to move the character and also to implement bounds but the document does not show how to implement jumping.
I have downloaded the superjumper demo code ...
0
votes
1answer
351 views
How to implement bullet physics in libgdx
I am new at game development want to know that how can I implement bullet physics in libgdx. I searched lot of things on Internet but nothing found worthy.
0
votes
2answers
400 views
LibGDX Swipe Detection Left and Right
I have displayed an image at the center of the screen with libgdx. If I swipe left, the image should move to the left; and, if I swipe right, image should move to the right.
Subsequent swipes to the ...
0
votes
1answer
123 views
Using compressed(ETC1) textures in LibGDX
I use standard android tool for compressing PNG texture and archiving it with gzip:
/android-sdks/tools/etc1tool texture.png --encodeNoHeader
gzip texture.pkm
Then I try to load it:
FileHandle ...
1
vote
1answer
480 views
When to use ShapeRenderer & SpriteBatch in libGdx?
As a beginner(in GdxLib+Android), i found that for rendering particular screen, we can render that using both ways then when to use specific ones?
&
What is the best option for Updating the ...
0
votes
1answer
81 views
Devices or Smartphones That Can Run and Displayed Images Properly While Power of 2 Code is Disabled
Before making game apps, I want to have any certain smartphone device brands that runs on OpenGL. I have to make a code for images that doesn't need to required power of 2 images so that I can resize ...
-1
votes
1answer
195 views
creating popup like window in android using libgdx [closed]
I am developing a game in which i want to open a popup window having some buttons and upon selection of the button i want to close the popup window and do some specific task in original screen.how do ...
8
votes
2answers
286 views
How well do functional languages perform on Android?
This is a special case of this question that I feel is particularly pertinent.
I'm working on a game for Android, and I'm planning on using Scala with libgdx. I'm planning on making a performant ...
0
votes
0answers
286 views
Limited Screen Switching Count Memory Issue
When making my simple app for revisions to update the latest changes, I test it first between the device (Google Nexus 7) and desktop using Eclipse IDE. I made eleven screens for the game in terms of ...
0
votes
0answers
154 views
Android LibGDX Pixmap issue
I'm developing a game for Android using libGDX. I implemented "spotlight effect" for highlighting some scene elements in tutorial levels. I did use Pixmap class for implementing this. So I did ...
0
votes
0answers
300 views
Dynamic 2D (1D) map generation in libgdx
I'm currently brainstorming a game idea and I have stuck in one place. I'd like to dynamically generate endless map which looks pretty much like the one in game Hill Climb Racing (Android) or like ...
0
votes
0answers
172 views
LibGDX Touch Box2D Body
I am using LibGDX, however, instead of using the stage, actors, etc, I wanted to use straight Box2D that way I could port it easily (to iPhone) later. I have the character moving with the ...
2
votes
2answers
294 views
How do I get the touch event on a body in Box2d(Java)
I have various bodies rotated at some angle with the help of Box2d in libGDX. What I want is to destroy the body when I click on it, but the problem is that I am not able to get the area definition of ...
1
vote
0answers
981 views
Creating live wallpaper on Android with libgdx [closed]
I try to create live wallpaper with libgdx framework. Here's my source code: repository
When I run this, black screen with name of the app appears (probably empty android layout). Main game is not ...
15
votes
2answers
740 views
Graphics not being displayed on OUYA
I hope its not too early to be asking OUYA dev questions, but I just got my dev kit and I want to get my game running ASAP! I am using LibGDX as my framework for my game and launching the Android ...
1
vote
1answer
111 views
Keeping Track of Position OpenGL
I have a sphere in my 3D world located at the origin. I have models orbiting it and I need to keep track of each models' position (x, y, x coordinates) as well as update their bounding boxes for ...
5
votes
3answers
390 views
Libgdx optimization of big arrays
I am working on a game using libgdx and I have the following code that I want to optimize.
Array<Bullet> enemyBullets = Enemy2.getEnemyBullets();
for (Bullet bullet : enemyBullets) {
...
1
vote
2answers
245 views
Quaternion Camera
Can someone help me figure out how to use a Quaternion with the PerspectiveCamera in libGDX or in general? I am trying to rotate my camera around a sphere that is being drawn at (0,0,0). I am not sure ...
0
votes
0answers
267 views
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone.
Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq
On the desktop ...
1
vote
1answer
154 views
Using Quaternion in libGDX
Can someone give me an explanation about how to use the Quaternion class in libGDX to move my camera around a sphere or just set it up, manipulate it, and apply it general? I am trying to acheive ...
2
votes
2answers
450 views
Move Camera Freely Around Object While Looking at It
I've got a 3D model loaded (a planet) and I have a camera that I want to allow the user to move freely around it. I have no problem getting the camera to orbit the planet around either the x or y ...
1
vote
1answer
211 views
GestureListener's fling method doesn't get called
I'm using SimpleGestureDetector from the libgdx-users Wiki as my InputProcessor. I set it in the created() method:
Gdx.input.setInputProcess(new SimpleDirectionGestureDetector(charController));
...
2
votes
1answer
283 views
Texturing a Sphere in libGDX
I created a sphere (planet) with a texture (earth texture) in Blender, and exported it using the G3DT exporter. Then when I go to use it in my application I convert to the G3D binary format, and load ...
0
votes
1answer
257 views
Using LibGDX within Android Fragment
I want to use LibGDX with Android, but instead of modifying my Activity to extend
AndroidApplication
I want my to render my graphics inside Android Fragment
The problem is that my class ...
0
votes
0answers
228 views
Making a Background Scrolling in Stacking Game
Hmmm...Is it a good idea to use a LibGDX parallax background for making a stacking game (i.e. PAPA STACKer Lite)? For example, I'm starting to use the blocks to drag-n-drop it. Next, when the next ...
2
votes
2answers
294 views
How to detect a touch on transparent area of an image in a (libgdx) stage?
Can some one please help to detect a touch on an image which I am using as an actor in a stage. The image is actually a long diagnol brush which has plenty of transparent area. The problem is when I ...
4
votes
1answer
695 views
LibGDX - Check if currently on Android/Desktop
I'm using LibGDX and flixel-android to build a Desktop/Android game. It feels like there should be a way of checking to see if you're currently being run on an Android device, the Desktop, and so on, ...
1
vote
0answers
979 views
LibGdx drawing weird behaviour
I am finding strange behaviour while rendering TextureRegions in my game, only when pausing it. I am making a game for Android, in Java with LibGdx.
When I comment out the line "drawLevelPaused()" ...
2
votes
1answer
273 views
Change the scale-policy of OpenGL ES in Android?
I currently develop a game for Android in OpenGL ES 1.0, use libgdx library. I target the 720x480 screen size.
For example, I design only one arts pack for 720x480. And what will happen in Android ...
1
vote
3answers
662 views
Pass a single boolean from an Android App to a libgdx game
I'm writing an Android application that needs to pass a single boolean into an Android game that I am also writing. The idea is that the user does something in the App which will affect how the game ...
3
votes
1answer
521 views
Weird error with opengl in Android using Libgdx : “EGL_BAD_ATTRIBUTE”
I am having a weird error when uploading my game in the phones.
E/Adreno200-EGL(5128): qeglDrvAPI_eglGetConfigAttrib:484>: EGL_BAD_ATTRIBUTE
I am uploading the textures with AssetManager.
I am ...
2
votes
2answers
229 views
Ray Picking: how can I find which copy of model to pick, if they share the same vertices, but each one is translated before being drawn?
I have a scene, in which I am drawing few different objects - each one has the same vertices and each one is translated to proper place before being drawn.
While using libgdx (but I think that this ...
0
votes
2answers
275 views
Project updates don't show up on mobile device
I've made a small application with libgdx framework, which works perfectly on desktop. It runs on Android too, however once I change something in my main project and try to recompile it on my phone, ...
0
votes
2answers
372 views
Help with Meshes, and Shading
In a game I'm making in LibGdx, I wish to incorporate a ripple effect. I'm confused as to how I get access to the individual pixels on the screen, or any way to influence them (apart from what I can ...
-1
votes
1answer
792 views
libgdx setOrigin and setPosition not working as expected?
I create a camera:
camera = new OrthographicCamera(5.0f, 5.0f * h/w);
Create a sprite:
ballTexture = new Texture(Gdx.files.internal("data/ball.png"));
ballTexture.setFilter(TextureFilter.Linear, ...
8
votes
2answers
1k views
Play videos with LibGDX
Is there a way to play videos with LibGDX?
I want to put a video as my splash screen in Android, but I dont want to use the Android SDK, because I am using LibGDX and I am almost finished :/
0
votes
2answers
894 views
Libgdx Animation Timing
I'm having a small issue with libgdx animation.
I'm using getKeyFrame() to get the current frame of the animation and I'm updating the state time by adding on deltaTime in my update function for the ...
0
votes
4answers
784 views
Relationship between Desktop and Android on LibGDX
So I finished tweaking a tutorial called Rain Catcher and I ran the desktop application. It works fine. I then proceeded to run the application using the android emulator the game then crashes.
I ...
1
vote
1answer
312 views
Random Sprite Speed
I followed the Rain Catcher tutorial from libGDX and I made some modifications to the code, allowing the rain drops to appear faster. But I cant figure out how to make the raindrops fall at random ...
1
vote
1answer
495 views
Android APK export duplicating libgdx assets folder
I'm developing a game using libgdx targetting Java desktop and Android. For the assets I have a "data" folder inside the "assets" folder in the Android project. Then, I link it from the desktop ...
0
votes
1answer
580 views
Virtual screen size with libgdx and GLES 2
I've been trying to use a virtual screen size for my libgdx desktop-android game. I'd like to always use a 16:9 aspect ratio but with a virtual screen size so everything would adapt automatically ...
1
vote
1answer
732 views
How does the rectangle bounds (x,y,width,height) in libgdx work?
I cant work out how to use the rectangle bounds in libgdx I am currently using the superJumper example and have 2 or 3 examples with that are:
<!--this is the pause button in the top right ...
3
votes
1answer
325 views
Photon alongside LibGDX
Can anyone point me to a possible implementation of the Photon network engine along with LibGDX for Android? Or any multiplayer networking SDK for all that matters.
From reading source code it ...