libgdx

Using Maps API and Geolocation in libgdx

青春壹個敷衍的年華 提交于 2019-12-23 04:18:21
问题 Is there a way to embed or implement somehow Geolocation (via GPS or whatever method) and using maps from Google Maps or OSM in applications using libgdx? I can't find APIs or documentation regarding this, to implement an application using real world maps and Augmented Reality. 回答1: I was able to use Google Maps V2 Api with libgdx. You can use Markers, get Location and display it in a Scene2d Label, also you can show or hide the map. I wrote example code Github 回答2: Better late than never? I

Libgdx game with Google play game services in android app problems

我的未来我决定 提交于 2019-12-23 03:31:16
问题 I have been asking questions related to my Libgdx game Google play game services configuration error. Up-till now I have solved sign in errors but Now I am stuck at Unlock Achievements. So I am posting my code may Be some one can help me out then. Here Is my ActionResolver Interface That I created In Core Libgdx project package com.------.game; public interface ActionResolver { public boolean getSignedInGPGS(); public void loginGPGS(); public void submitScoreGPGS(int score); public void

How to call core method from android backend?

China☆狼群 提交于 2019-12-23 03:06:19
问题 I can use android methods from GDX (Platform specific code), but is it possible to get libgdx method from android back-end? I have firebase database. On android side of my game I catch any changes in database. And I need to transfer that changes to my core back-end (For example update some actors, labels, and so on). What's the best way to do that? 回答1: Accessing Platform Specific API inside core module can be possible using Interfacing. core-module is common part of all platform so you can

Libgdx - Get Intersection Rectangle from Rectangle.overlap(Rectangle)

浪尽此生 提交于 2019-12-23 03:02:03
问题 Is there any way to know the intersection Rectangle area between two Rectangles in libgdx like the Rectangle in c# http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.rectangle.intersect.aspx ? I need to get the intersection rectangle area between that two rectangles but the overlap method in libgdx only return boolean value whether two rectangles are intersect or not. I have read Intersector class but it provides nothing to do that. 回答1: Indeed, LibGDX does not have this

Adding firebase to libgdx project built with gradle

匆匆过客 提交于 2019-12-23 02:20:26
问题 Here is my gradle.build. Im trying to add the firebase dependency so I can play with the simple login functions but gradle looks like it cant find the dependency. I copy and pasted what the firebase simple login example said to add to the build.gradle file but im coming up with this error. Included is the build.gradle file and a full stack trace of when I tried to build it from command line. buildscript { repositories { mavenCentral() mavenLocal() maven { url 'https://github.com

Adding firebase to libgdx project built with gradle

跟風遠走 提交于 2019-12-23 02:20:00
问题 Here is my gradle.build. Im trying to add the firebase dependency so I can play with the simple login functions but gradle looks like it cant find the dependency. I copy and pasted what the firebase simple login example said to add to the build.gradle file but im coming up with this error. Included is the build.gradle file and a full stack trace of when I tried to build it from command line. buildscript { repositories { mavenCentral() mavenLocal() maven { url 'https://github.com

GameHelper crashing at application start

余生颓废 提交于 2019-12-23 01:45:17
问题 So, I guess it'd help to say that I'm using LibGDX. Code: package com.fmeg.tapout.android; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.applifier.impact.android.ApplifierImpact; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import com.fmeg.tapout.ActionResolver; import com.fmeg.tapout.TapoutGame; import com.google.android.gms.games.Games; import com

How to “push up” the screen when soft keybord is displayed

风流意气都作罢 提交于 2019-12-23 00:48:47
问题 I have in my LibGDX android application a table, below some textfields (one row) and a button below (Submit). My question is, how to "slide" up the table, textfiels and the button when the textfield is focuses (click on it) and the soft keyboard is appearing? In other words, how to make the soft keyboard not to cover my other objects. This solution might be related with this question: How can i find the height of soft-keyboard in a LibGDX application Many thanks. 回答1: I found an workaround

How to “push up” the screen when soft keybord is displayed

眉间皱痕 提交于 2019-12-23 00:48:11
问题 I have in my LibGDX android application a table, below some textfields (one row) and a button below (Submit). My question is, how to "slide" up the table, textfiels and the button when the textfield is focuses (click on it) and the soft keyboard is appearing? In other words, how to make the soft keyboard not to cover my other objects. This solution might be related with this question: How can i find the height of soft-keyboard in a LibGDX application Many thanks. 回答1: I found an workaround

Libgdx tween not working on Android

梦想的初衷 提交于 2019-12-22 18:30:04
问题 I'm developing my first android game with libgdx, using as a base this amazing tutorial (http://www.kilobolt.com/day-11-supporting-iosandroid--splashscreen-menus-and-tweening.html). Everything works properly except for the tweening that I’m using in the splash screen to show the logo of my “company”. The weird part is that the logo works just fine in the desktop version, but in the android version is not being showed. I’m using the same class that they used in the app developed in the