GameGrid: Game programming with Java

Research project PHBern  
HomePrintJava-Online

User Information

How does our learning environment work?

 1. Class library JGameGrid The class library JGameGrid provides the user with a optimized graphical window and a collection of methods which simplify game programming. The class library is installed on our webserver and is included into each program. It is possible to download the class library for free from the author's webpage (www.aplu.ch).

 2. Online-Editor and Online-Compiler The Online-Editor and Online-Compiler allow the user to develop and compile a program on our webserver. If you are using our Online-Editor you do not need to install Java SE Development Kit (JDK) and no Java development environment. You can start programming instantly. All results of your work can still be saved locally and reused. If you are working with our Online-Editor for the first time, please read the short introduction at Online-Editor.

 3. Examples

An important part of our learning environment are our complete and runnable examples, which can be used as a guideline for your own game ideas. All examples are presented in the same layout, with a brief description, its program code and a short explanation of the code. On top of the code two links are shown. By clicking on Run this example the example will be started via webstart. Using the link Edit this example in the Online-Editor the program code is loaded into the Online-Editor and there it can be edited, compiled ane executed.

 4. Sprites

Each picture used in our examples as an actor or background are saved on our webserver and can be used in your own games. By adding the path of the picture "sprites/name.gif" to your program code, the sprite is automatically added to your application.

More pictures can be found at Pictures and Sounds. They can either be downloaded or directly included into your game.

If you want to use your own sprites you have to copy them into your local folder <userhome>/gamegrid/sprites . <userhome> is usually the home-directroy of the user (Widows XP: C:/Documents and Settings/Username/ - Windows 7 or Mac: "User/Username"). Our Online-Editor automatically uses all the pictures in the local directory when executing the program or building the self-executable jar-file. Each jar-file can be downloaded to your local machine by clicking on links at The following data can be saved locally inside the message window. This allows the user to run the program locally without having to start the Onlien-Editor.

Sprites can also be included into your program by adding a URL, e.g. super("http://www.familie-siegert.de/smiley.gif"). More detailed instructions can be found at Pictures and Sounds/Sprites from the net.

 5. JGameGrid using an IDE More advanced programmers can easily include the JGameGrid class library into their IDE. More detailed instructions on including it into NetBeans can be found at JGameGrid in Netbeans. On the website of the library's auther, more exciting examples may be looked at and worked with.

 6. Exercises We tried to shorten the preperation time for teachers by including simple and exciting excercises and its solutions. Starters work with Starter exercises, advanced students with Advanced exercises.