I don't do hiptop devel at the moment, this page is left for whatever benifit it provides.
Danger Hiptop Dev Resources
Danger
http://developer.danger.com
Ant
Apache Ant
Documentation (which sucks)
Rebuilt Ant build files
These files fix some problems with the build system, including Windows
XP and NT builds. They provide a very simple way to change the screen
zoom, autoboot, and color; from the command line, or in build.xml. Read
build.xml (which is now MUCH smaller) to see the options.
Ownership: These files are
very-very-very hacked versions of the Danger SDK files. I claim no
rights on them, my names in them just so that people can find me to ask
for changes. I WANT Danger to pull them back into the SDK, and will sign
assignment if they have really pissy lawers who want me to.
Makefile based build system
I wrote a Makefile based build system. It's not as portable as the ant
system, but it also doesn't require you to install ant. If you know what
'make' is, this is probably for you. It is broken down into a tiny file
with per-app settings, and a global file that all the app files include.
- Makefile -
a stub Makefile, lives in the app directory (last update:
)
- Makefile.common
- the full Makefile, lives in the SDK tools directory. (last update:
)
Some Basic Apps
- pong.tar.gz - my first game attempt. Not finished yet. (last update: )
Additional Examples
- bounce.java , bounce.zip - shows how to use timers to
coordinate a game world with its drawing. Author: alsoknowas1
SDK Bugs that Bug Me
Bugs I know about in the SDK:
- danger.ui.Pen.fillOval() does stupid crapy things for small
ovals, messing up the lower right corner.
- The danger.ui.Sprite's advance() method does nothing, and the
class needs getVelocity() accessor.
- danger.ui.Pen.drawPoint() won't draw a danger.ui.Point
Intstalling Ant and Java on Red Hat Linux 8.0
In order to install ant on Red Hat Linux 8.0, you'll need to first get
a JVM installed, and make sure that the bin directory for the jvm is
added to your path, and that JAVA_HOME points to the jvm directory. I'm
using the 1.4.1 version of Sun's java from http://java.sun.com/j2se/1.4.1/download.html. ATTENTION: the current version is 1.4.1_02,
if you get it, you will HAVE to change the paths that follow. For
me, the following works in my .bashrc:
PATH=/usr/java/j2sdk1.4.1/bin:$PATH
JAVA_HOME=/usr/java/j2sdk1.4.1
export PATH
export JAVA_HOME
Next, you'll need to get and install all the packages from redhat-8.0-rpms. These are packages from http://www.jpackage.org, and are
not shipped by Red Hat.
Installing Ant and Java on Windows
<<cribbed from --Ken krice@nospam.hawk.com>>
Install the Java SDK from Sun
step 1) Install the Java SDK from Sun
http://java.sun.com/j2se/1.4.1/download.html
Step 2) get Ant from the Apache and install it
http://mirrors.midco.net/pub/apache.org/ant/binaries/apache-ant-1.5.2-bin.zip
Step 3) Set PATH and JAVA_HOME Environment Variables
(Right click on my computer select Properties, Go to the
Advanced Tab, Click Environment Variables Button, Select Path,
and add the ant/bin and java/bin directories to the path.
each director is separate by a semi-colon (;). I added the
following:
";C:\dangersdk\apache-ant-1.5.2\bin;C:\j2sdk1.4.0_03\bin"
NOTE: My Paths are most likely not what you used altho
they could be.
Click NEW to add JAVA_HOME (variable Name) and enter the
path to you base base Java Directory.
My JAVA_HOME is C:\j2sdk1.4.0_03
select OK to close all the pop-up boxes and save the changes
Step 3) Download and Unzip the Danger SDK.
Step 4) open a cmd.exe session and cd
into the sdk/examples/helloworld
directory and type "ant" (If you already had a cmd session open.
close and restart it to get the Environment Variables Updated)
If you set the environment variables properly, ant should build the
hello world program and start the Simulator. us the down arrow to wheel
down to the bottom of the menu you should have a HelloWorld Icon. Press
Enter to start it.
Windows 2000/NT/XP Problems
The build_common.xml file which ships with the
SDK only checks for Windows 2000. If you don't have it,
you can either replace build_common.xml and build.xml with the scripts
I've got above, or:
Step 1) edit sdk/tools/build_common.xml
on line 20 of the file you will find this:
<property name="WIN32OSNAME" value="Windows 2000"/>
Change it to:
<property name="WIN32OSNAME" value="Windows XP"/> (Or
"Windows NT", you get the idea)