Open dmitrykolesnikovich opened 7 years ago
Yeah, I'm not sure the build.xml works.
Also the game engine base: https://github.com/totallymorten/java-game-engine needs to be located in the same folder to build properly.
If you place both these projects in eclipse it should build nicely (maybe you would need to add the Engine project as a dependency for the adventure game, but that should basically be it).
If you can't get it to work, I will fix it for you so just let me know.
build-project: [echo] Adventure: d:\workspace\java-adventure-game\build.xml [javac] d:\workspace\java-adventure-game\build.xml:30: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for rep eatable builds [javac] Compiling 98 source files to d:\workspace\java-adventure-game\bin [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7 [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:47: error: package engine does not exist [javac] import engine.JavaEngine; [javac] ^ [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:48: error: package engine does not exist [javac] import engine.Keys; [javac] ^ [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:50: error: cannot find symbol [javac] public class AdventureGame extends JavaEngine [javac] ^ [javac] symbol: class JavaEngine [javac] d:\workspace\java-adventure-game\src\adventure\game\LoginScreen.java:8: error: package engine does not exist [javac] import engine.Keys; [javac] ^ [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:59: error: cannot find symbol [javac] String className = this.getClass().getName(); [javac] ^ [javac] symbol: method getClass() [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:89: error: cannot find symbol [javac] setBackground(Color.WHITE); [javac] ^ [javac] symbol: method setBackground(Color) [javac] location: class AdventureGame [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:111: error: no suitable constructor found for Thread(AdventureGame) [javac] (new Thread(new AdventureGame(fps, args[0], args[1], args[2]))).start(); [javac] ^ [javac] constructor Thread.Thread(Runnable) is not applicable [javac] (argument mismatch; AdventureGame cannot be converted to Runnable) [javac] constructor Thread.Thread(String) is not applicable [javac] (argument mismatch; AdventureGame cannot be converted to String) [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:132: error: cannot find symbol [javac] AudioInputStream is = AudioSystem.getAudioInputStream(getClass().getResource(fileName)); [javac] ^ [javac] symbol: method getClass() [javac] location: class AdventureGame [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:155: error: cannot find symbol [javac] return ImageIO.read(getClass().getResource(name)); [javac] ^ [javac] symbol: method getClass() [javac] location: class AdventureGame [javac] d:\workspace\java-adventure-game\src\adventure\engine\AdventureGame.java:278: error: method does not override or implement a method from a supertype
BUILD FAILED d:\workspace\java-adventure-game\build.xml:30: Compile failed; see the compiler error output for details.
Total time: 11 seconds