libgdx

App Reject By ios App Store

旧时模样 提交于 2019-11-30 22:23:03
I am using libgdx to create an ios app. I checked the sdk that is is compiling with, and it is 7.0.2. How do I fix this? 1 package(s) were not uploaded because they had problems: /var/folders/cj/t7129jm93gv3pj_wjdfjq2qm0000gn/T/834524929.itmsp - Error Messages: Apple's web service operation was not successful Unable to authenticate the package: 834524929.itmsp ERROR ITMS-9000: "This bundle is invalid. New apps and app updates submitted to the App Store must be built with public (GM) versions of Xcode 5 and iOS 7 SDK. Do not submit apps built with beta software." at SoftwareAssets/SoftwareAsset

Draw a BitmapFont rotated in libgdx

倖福魔咒の 提交于 2019-11-30 20:47:49
I can't seem to figure out how to rotate a Bitmap font correctly. I think you modify the transformation matrix of the SpriteBatch. However, trying to rotate that rotates the text around some point, and I don't know how to rotate it relative to the text itself. you can try the following code: Matrix4 mx4Font = new Matrix4(); BitmapFont font; SpriteBatch spriteFont; font = new BitmapFont(Gdx.files.internal("data/font/agencyFB.fnt"), Gdx.files.internal("data/font/agencyFB.png"), true); //must be set true to be flipped mx4Font.setToRotation(new Vector3(200, 200, 0), 180); spriteFont

LibGdx How to repeat background?

丶灬走出姿态 提交于 2019-11-30 18:59:30
问题 Few days ago I figured out how to do some scrolling in LibGdx. Now I'm triying to do something related. I want to repeat the background. My scrolling follows a ship (Is an s[ace ship game). In the background there is a space photo loaded as a Texture. When the ship reach the end of the backgorund, It keeps going and there's no background anymore. I have read about wrap but I don't really understand How It works. I did that: px=new Pixmap(Gdx.files.internal("fondo.jpg")); background=new

Libgdx for iOS with RoboVM - Unsatisfied link error at IOSGLES20.init

↘锁芯ラ 提交于 2019-11-30 18:57:58
Trying to port my LibGDX game to iOS using RoboVM. When running the app for the emulator I get this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: at com.badlogic.gdx.backends.iosrobovm.IOSGLES20.init(Native Method) at com.badlogic.gdx.backends.iosrobovm.IOSGLES20.<init>(IOSGLES20.java) at com.badlogic.gdx.backends.iosrobovm.IOSApplication.didFinishLaunching(IOSApplication.java) at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.java) at org.robovm.cocoatouch.uikit.UIApplicationDelegate$Callbacks.didFinishLaunching

Using SQLite from libGDX on Android

怎甘沉沦 提交于 2019-11-30 18:24:22
Does anyone have any tips on storing data from libGDX on Android in SQLite. I am very familiar with the techniques used in the Android SDK but I don't have any idea how to call those Android database functions from libGDX. I know that calling the functions from libGDX will make my game unusable on the desktop but I can deal with that. One approach is always to create an interface in your main project, let's call it NativeFunctions . You then let both your desktop and your Android application/activity implement this interface. On creation of your main project you pass the application/activity

touchdown held down libgdx

ⅰ亾dé卋堺 提交于 2019-11-30 18:14:53
问题 Is there an equivalent in libGdx (in Android) like the touchdown event - so when a user touches the screen (and holds their finger down continuously),i.e. touchhelddown method? 回答1: You can use GestureDetector. It implements InputAdapter so you can use it instead of your InputAdapter or along with your InputAdapter using InputMultiplexer . You need to provide a GestureListener to it. GestureDetector calls GestureListener's methods when it detects supported gestures. These methods and gestures

libgdx multiple objects implementing InputProcessor

寵の児 提交于 2019-11-30 17:57:46
So on my Screen I have two objects of the same class that implement InputProcessor with the following keyDown() method: @Override public boolean keyDown(int keycode) { if (keycode==fireKey) { System.out.println("Reporting keydown "+keyCode); } return false; } The problem is when I instantiate these two objects, only the last one instantiated receives any keyDown events. I need both objects (or however many there are) to receive keyDown events. You need to use an InputMultiplexer to forward the events to both InputProcessors . It will look like this: InputProcessor inputProcessorOne = new

Admob ads appear only after first refresh

对着背影说爱祢 提交于 2019-11-30 17:45:54
问题 i added banner ads from admob to my game and the banner add appears only after the first refresh (30 seconds) . And for the first 30 seconds it's there and if you click the bottom of the page where the addvertisment should be it takes you to the advertising page but the ad is not visible. You can see for yourself when you start the game and click bottom of the screen. Game #1 And my other game (if you start the intent from the menu in this game ( like facebook) and then return to the menu,

libgdx-android: Intercepting back key and confirm exit

假如想象 提交于 2019-11-30 17:42:23
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? 1. Enable catching of Back Key. In the class that implements ApplicationListener @Override public void create() { ... Gdx.input.setCatchBackKey(true); ... } 2. Handle catching of Back Key. In a class that implements the InputProcessor @Override public boolean keyDown(int keycode) { ... if(keycode == Keys.BACK){ // Optional back button handling (e.g. ask for confirmation) ... if (shouldReallyQuit) Gdx.app.exit

App Reject By ios App Store

社会主义新天地 提交于 2019-11-30 17:24:51
问题 I am using libgdx to create an ios app. I checked the sdk that is is compiling with, and it is 7.0.2. How do I fix this? 1 package(s) were not uploaded because they had problems: /var/folders/cj/t7129jm93gv3pj_wjdfjq2qm0000gn/T/834524929.itmsp - Error Messages: Apple's web service operation was not successful Unable to authenticate the package: 834524929.itmsp ERROR ITMS-9000: "This bundle is invalid. New apps and app updates submitted to the App Store must be built with public (GM) versions