package com.jonathanv.humanjumperdesktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.jonathanv.humanjumper.Game;
public class DesktopGame {
public static void main(String[] args) {
new LwjglApplication(new Game(), "Game", 480, 320, false);
}
}
Now i'm following that exactly as the wiki thats is located right HERE!
Now i've manually set the folders and everything perfectly, the android class works and so does the main game class. the only one i get constant issues with is the desktop class. This is the error that represents itself when i hover over the red line for this piece of code
new LwjglApplication(new Game(), "Game", 480, 320, false);
- The constructor LwjglApplication(ApplicationListener) refers to the missing type ApplicationListener
Now i honestly have no idea what that is refering to. From my idea, i seem to understand that the constructor thats in the DesktopClass can not seem to link itself with that of the main Game class thats located in the main project were Game has implemented ApplicationListener.
This is my main class
package com.jonathanv.humanjumper;
import com.badlogic.gdx.ApplicationListener;
public class Game implements ApplicationListener{
@Override
public void create() {
}
@Override
public void resize(int width, int height) {
}
@Override
public void render() {
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void dispose() {
}
}
Obviously there is nothing since i can seem to debug any of the coding i have without first fixing the desktop error. Also i don't do it with the ui that is given to use since i enjoy creating projects manually and it helps me learn in my opinion. So apart from that, i'm desperate as to what the solution can be and in my opinion i feel that its the smallest of details out there which i can not clearly pin point lol. ANy help is really appreciated and by all means try to stay in topic and not out of topic such as "Why you using libgdx library, or your not experience enought, etc." All help is appreaciated Thank You!
-If you need any more information then quote or reply here and i will surely be able to provide any form of information as needed!
Thank You once again!
UPDATE* I decided and found a libgdx ebook which explains how to properly use the automatically project set up and i managed to set up the project good and working, however, i would still like to know what is wrong with the above that is done manually!
This post has been edited by AndreeU17: 04 December 2013 - 03:15 PM

New Topic/Question
Reply


MultiQuote

|