< Debugging Index How to create an adventure >

Auxiliary Tools

Calculation Tools

scale

scale calculates the values for the keys frontScale and backScale in a scene that determine the scaling of a character. The calculation is based on the unscaled height of the character, the height of the scene (y-pos of front), and two example heights of the character in the scene and their y-position.

The scale tool has six input fields. The height of the character, the y-pos and height of both example heights, and the y-pos in front of the scene (scene height). It calculates the height at the back and the front of the scene and the scaling factor for all four positions (back, front, both examples). The interesting results are the scale for back and front, which will be used in the keys backScale and frontScale of the scene.

The 'Calculate' button performs the calculation, but only if the input values are valid. The 'Close' button exits the scale tool.

Hint: You may use the Adventure Editor to determine the two example character heights. Load the background image and the character image into the editor. Then, scale the character at two different locations to fit the scene. (Note: The y-pos of the character is the baseline; hence, you have to add the height to the y-pos of the image.)

accel

scale calculates the explicit time values that are generated by the Acceleration item. It is started from the command line. The parameters are the values for the keys of the Acceleratioin item in the same order (time, steps, acceleration, speed). The output is the list of time intervals the Acceleration item generates and the sum of all intervals.

Graphic Tools

There are two small tools to create icons and cursors from bitmaps. Both are started from the command line.

bmp2ico

bmp2ico converts a bitmap into an icon or cursor.

Parameters:

Note: Bitmaps for icons/cursors must be of size 256 x 256 pixel or smaller and have 2, 16, or 256 colours.

Example: bmp2ico.exe bitmap.bmp /p0 /c16,16

This will create a cursor bitmap.cur with hotspot at 16,16 with the image from an existing file bitmap.bmp using the first color of the palette as transparency.

mergeico

mergeico merges several icons/cursors of different colour resolution/size into one file.

Parameters:

Example: mergeico.exe icon.ico icon16.ico icon256.ico

This will create the file icon.ico that contains the icons from existing files icon16.ico and icon256.ico.