Home | Base component. |
|
Introduction
This page documents the properties available for basic components that can be used when creating a game. Next to built-in components, you can also create your own in the Onyx scripting language.
Component properties are defined in a definition.ini file. An example of a group component follows:
;
; A floating buoy
;
component
{
type=group
comment=Floating buoy.
component0=mygame/graphics/models/buoy
component1=mygame/graphics/gameplay/floatingbuoy/script
component2=mygame/graphics/gameplay/floatingbuoy/physics
}
The camera component is used to define a camera position and target. The properties:
Parameter | Description |
fov | Vertical field-of-view (in degrees) |
The font component loads a font for use in GUI components. Here are the properties available in
Parameter | Description |
type | Must be set to 'font'. |
file | The font name. Will load the <file>.dtf/.tga texture font. |
The track component is a crossover component between the game engine (Panthera) and Racer. It loads an entire track, including splines, grid positions etc.
Parameter | Description |
type | Must be set to 'font'. |
track | Defines the name of the track. This will be loaded from data/tracks/<track>. |
(last updated July 1, 2014 )