|Mark Damon Hughes | Hephaestus Adventure Tutorial 1|
I'm going to take you step-by-step through making an adventure here. I assume you know how to use a text editor and how to use a command-line shell; you don't need to know any more than that at this point.
Hephaestus uses Java as a scripting language. There are two ways to create maps and items: 1) You can construct your entire world in the adventure script, or 2) you can use the map editor to build each map and all of the items and creatures on it, and use a single command in the adventure to load the map. We're going for the simple case, so we'll edit and load a map.
First, make a directory - call it "mytest" or whatever you want.
Start the map editor:
I'm just going to show how to make a bare-minimum map, an enemy, and a weapon. You can make almost anything if you play around with the editor.
Hephaestus uses a very tiny ".adv" file to point to the Java class. Start your editor and type:
Save it as "mytest.adv".
Create "MyTestAdv.java", containing the following Java code, and customize it if you want (change MYNAME, give the player a new name, etc.):
Open a shell window, change to the Hephaestus directory, and type:
If all went well, you'll see the message "Compiled!"
Now you can start Hephaestus, open the adventure, and fight to the death!
|Copyright © 2007 by Mark Damon Hughes | email|