![]() |
||||||||
![]() |
||||||||
![]() |
4
| THE BODY TAG
The Body
Feel better? Good.
Now get back to work. The five activities that are handled within the
<BODY> tag are: customizing blocks, creating the map, creating POPUPs,
assigning image maps, and assigning entrances and exits. First we will
create a simple map and an entrance. We'll talk about all those other
aspects shortly.
The Map Each level in a SPOT
is bounded by the <LEVEL>...</LEVEL> tags. The <Level> tag has
just one attribute: NUMBER. NUMBER="1" refers to the bottom level of a
spot, just like floors of a building. Any character between the <LEVEL>
tags will be interpreted as a block. All blocks occupy the space of a
cube with 256 pixels in every dimension [256x256x256].
New Blocks
The FULL Block
"#" The EMPTY Block
"." Make
a map already!
<LEVEL NUMBER="1"> The <ENTRANCE>
tag The NAME attribute
allows you to name each entrance, so that you can refer to them later.
They act sort of like TARGETS in HTML. Every spot must have one entrance
named "default".
The ANGLE attribute
defines what direction your visitors will be facing when they enter the
spot. The ANGLE parameter has 2 values, specified in whole number degrees.
The first value specifies what direction (north, south, east, west, or
somewhere in between) your visitors will face. Possible values range from
0 to 359. The second value specifies whether they will be looking up or
down, with possible values of -90 to 90. The default value is "0,0" which
will leave your visitors facing north, and parallel to the horizon. A
value of "90,0" will set your visitors facing directly east, "180,45"
will leave them facing south, and 45 degrees up into the "air", etc.
Define
an entrance <ENTRANCE
LOCATION="(5,8,1)" NAME="default" ANGLE="0,0" />
|
Copyright 1999, 2000 Flatland Online, Inc.