GTGE is a pack of standard java classes that bundled in JAR file.
Therefore it is fairly simple to use GTGE API. But just in case there is someone who forget how to use JAR or does not understand how to install third party library, we'll explain it here.
To use GTGE, simply include GTGE lib (golden_x_x.jar) into your java classpath.
There are two ways to include GTGE API into your classpath:
Note: Since we use Windows Operating System, all the settings here are for Windows user.
The convenient one. Only have to setup once and GTGE is ready to use anytime anywhere.
Open windows start menu (bottom left your screen), open run, then type "sysedit" to edit file autoexec.bat.
Add this line:
SET CLASSPATH=%CLASSPATH%;"<GTGE path>\golden_x_x.jar"Note: GTGE path is the path where GTGE lib (golden_x_x.jar) located.
SET CLASSPATH=%CLASSPATH%;"C:\GTGE\golden_0_1.jar"Quick explanation:
This one a bit bothersome. Every compiling and running the game, you must specify GTGE lib in the game classpath.
javac -classpath %CLASSPATH%;"<GTGE path>\golden_x_x.jar" YourGame.java
java -classpath %CLASSPATH%;"<GTGE path>\golden_x_x.jar" YourGameNote: GTGE path could be relative path to your source code.
C:\Java Game>javac -classpath %CLASSPATH%;lib\golden_0_1.jar YourGame.java C:\Java Game>java -classpath %CLASSPATH%;lib\golden_0_1.jar YourGameQuick explanation:
That's it, GTGE has been installed into your machine ^^
(troubles installing GTGE? visit our forum)
Now let's see GTGE schema....
1 2 3 4 5 6 7 | |
<< Previous Page | Next Page >> |