Running libgdx application desktop and Android

user3165683

Created a new libgdx project to create a multi-platform game, but when I try to run it I get no errors but nothing runs. for example I open a android emulator, right click on android program => run as => android application. Then the progress bar loads up in eclipse to 100%, disappears as the application has ran but nothing. And for desktop I right click on desktop program => run as => java application => DesktopLauncher. and again nothing...

Here's the desktop launcher:

package com.mkgame.game1.desktop;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.mkgame.game1.Game1;

public class DesktopLauncher {
    public static void main (String[] arg) {
        LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
        cfg.title = "Game1";
        cfg.width = 1920;
        cfg.height = 1020;
        cfg.useGL30 = true;
    }
}
vuolen

Your launcher is missing this line of code at the end of the function:

new LwjglApplication(new Game1(), cfg);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Running libgdx project on a desktop with Android studio

From Dev

LibGDX Android Application only running once

From Dev

libGDX desktop application JAR generation

From Dev

libGDX desktop application JAR generation

From Dev

Running Gradle Build Script from Java Desktop Application for Android App

From Dev

LibGDX - Shader working on Desktop but not on Android

From Dev

Cannot find assets when running libgdx app on android, works fine on desktop

From Dev

Is there a way to deploy Libgdx Desktop application with Android Studio (An IntelliJ Idea based IDE)

From Dev

Low framerate on simple libgdx example in desktop application

From Dev

LibGDX list of internal files in exported desktop application

From Dev

Can't run libgdx project as desktop application

From Dev

Low framerate on simple libgdx example in desktop application

From Dev

Use desktop icon for running application

From Dev

Use desktop icon for running application

From Dev

Running ASP MVC web application as desktop application

From Dev

Libgdx, text size differs from android to desktop

From Dev

Libgdx sprite depths are different on android than it is on Desktop

From Dev

Libgdx, text size differs from android to desktop

From Dev

LibGDX Game Works as Expected on Desktop, But Not on Android Device

From Dev

LibGDX can load skin on Desktop but not on Android

From Dev

Android check only desktop is running

From Dev

Android check only desktop is running

From Dev

How to create desktop application for running perl script

From Dev

libgdx application remove other application from android

From Dev

Angular application for Desktop/ios/android

From Dev

Exception while running libgdx app on Android

From Dev

Running Android application

From Dev

Always running Android application

From Dev

Android Studio not running application

Related Related

  1. 1

    Running libgdx project on a desktop with Android studio

  2. 2

    LibGDX Android Application only running once

  3. 3

    libGDX desktop application JAR generation

  4. 4

    libGDX desktop application JAR generation

  5. 5

    Running Gradle Build Script from Java Desktop Application for Android App

  6. 6

    LibGDX - Shader working on Desktop but not on Android

  7. 7

    Cannot find assets when running libgdx app on android, works fine on desktop

  8. 8

    Is there a way to deploy Libgdx Desktop application with Android Studio (An IntelliJ Idea based IDE)

  9. 9

    Low framerate on simple libgdx example in desktop application

  10. 10

    LibGDX list of internal files in exported desktop application

  11. 11

    Can't run libgdx project as desktop application

  12. 12

    Low framerate on simple libgdx example in desktop application

  13. 13

    Use desktop icon for running application

  14. 14

    Use desktop icon for running application

  15. 15

    Running ASP MVC web application as desktop application

  16. 16

    Libgdx, text size differs from android to desktop

  17. 17

    Libgdx sprite depths are different on android than it is on Desktop

  18. 18

    Libgdx, text size differs from android to desktop

  19. 19

    LibGDX Game Works as Expected on Desktop, But Not on Android Device

  20. 20

    LibGDX can load skin on Desktop but not on Android

  21. 21

    Android check only desktop is running

  22. 22

    Android check only desktop is running

  23. 23

    How to create desktop application for running perl script

  24. 24

    libgdx application remove other application from android

  25. 25

    Angular application for Desktop/ios/android

  26. 26

    Exception while running libgdx app on Android

  27. 27

    Running Android application

  28. 28

    Always running Android application

  29. 29

    Android Studio not running application

HotTag

Archive