Ucigame is designed for people who want to design and program 2D computer games. This page will give you some useful information to get started.
Computer programming with Ucigame uses a very popular language called Java. Java is a versatile language which can be used to make all types of computer applications. Java has several features designed primarily for large systems created by teams of many people. In Ucigame we generally ignore those features.
Many good books on Java have been written, and you may want to own one. However, those books generally tell you much more about the language then your will need for writing many Ucigame programs, so feel free to skip whatever doesn't seem relevant or comprehensible.
You need the have version 1.5.0 or later of Java, which can be freely downloaded from Sun Microsystems, the company which created Java. It's also called the J2SE Development Kit (JDK) 5.0 or 6.0. Start at Sun's download page.
You will also need a copy of ucigame.jar, which contains all the code necessary for Ucigame programming. Download it by clicking on the link. (If you are using Internet Explorer, ucigame.jar may get renamed to ucigame.zip. In this case, rename it back to ucigame.jar.) Now you need to put ucigame.jar in a place where it can be found when you want to compile and run Java programs that use it. There are two main options:
This command adds to the "classpath," that is, the list of places Java looks for class files.
If you get an error message like "package ucigame does not exists" when trying to compile, or an exception like "java.lang.NoClassDefFoundError: ucigame/Ucigame" when trying to run, that's a sure sign that there's a mismatch between your CLASSPATH and the location of ucigame.jar.
Once you have ucigame.jar and the classpath squared away, the steps for creating a Ucigame game application are:
Java programs can run as applications or as applets. [More to come.]
Click on Gallery at the top of this page to see Ucigame programs (including source) running as applets.