Unification Flags

From Wikiid
Revision as of 07:57, 26 February 2008 by SteveBaker (Talk | contribs) (New page: '''Flags''' are defined in the XML level files and can be positioned using tiled (where they appear as little triangular flags) or by hand-editing...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Flags are defined in the XML level files and can be positioned using tiled (where they appear as little triangular flags) or by hand-editing the level file. You can attach Java plugins to them and reference them within other plugins using the getObjectHandle/getX/getY/getZ/getH methods.

Each flag has a colour (Red, Green, Blue, Cyan, Magenta, Yellow, Black, White, Orange or Grey), a name (which must be unique or may be left blank) and a position. So far, we have not used specific flag colours for specific things - however, the following flag names are significant:

The place where Tux (and therefore, the player and camera) start off.
Gravity0, Gravity1...GravityN 
Position gravity sources into the world. If you want a 'flat world' level, position Gravity0 at (0,0,-1000000) or so - and things will work as if we were in a flat-earth.

Wikiid Pages relating to Unification (edit)
Unification - Main page
Unification - Controls
Unification - Levels :
List of Levels, Level design, Screen shots, Models
Unification - Java Plugins :
Java plugin API, Event handling, Flags, GameInterface API , Alphabetical Index
Unification - Source Code Documentation :
Initialisation, Main Loop, gameTools, PLIB II

Wikiid Pages relating to gameTools (edit)
gameTools - Main page
gameTools - Support Tools :
plb_to_ac3d, mklevel, mktile, mktree, tiled, autogen_java, mk3dgallery
gameTools - File Formats :
title_screen.rgb, ultimate.xml, material.xml, decoration.xml, physics.xml
tiled.xml, tiled_autotiles.xml, Level files, Tile naming scheme, PLB files
gameTools - Source Code :
Game functions: gameCamera, gameClock, gameChecksum/gameHashTable, gameHTTP,
gameIsect, gameJoystick, gameParticleManager, gameScreen/gameMouse,
gameSky, gameStarter, gameStrokeFont, gameUtils
Material database: MatList/MatEntry
Tile map handling: TileObject/MapFlag/MapEntry/Map
Java Interfacing: JavaLink
Image file loading: liImage/liImageFactory
3D Model file loading: loadPLB, PLB exporter
Physics: Sabot, Bullet, gameTools - Use with Blender, PLB exporter
Object management: Object