Changes between Version 18 and Version 19 of Rmgen_Library


Ignore:
Timestamp:
Apr 20, 2012, 12:02:31 PM (12 years ago)
Author:
FeXoR
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Rmgen_Library

    v18 v19  
    153153
    154154The functions and data provided in wall_builder.js allow easy placements of multiple entities to shape walls:
    155  * 'WallElement ()': Defines a wall element including its entity and a name string to easily access it.
     155 * 'WallElement()': Defines a wall element including its entity and a name string to easily access it.
    156156 * 'Fortress()': Defines a fortress mainly by an array of wall element name strings.
    157157 * 'wallStyles': An associative array that holds all default wall styles with the civ strings as keys (like 'cart' or 'celt') or other descriptive strings (like 'palisades' or 'romeSiege'). A wall style itself again is an associative array holding all the default wall elements with their name string as key (like 'wall' or 'tower').
     
    162162 * 'placeCircularWall()': Places a circle of wall elements centered at the given coordinates with a given radius including the wall elements given in wallPart (like ['tower', 'wall']).
    163163Some other functions are in there helpful to generate custom walls of any type but the mentioned ones should cover the common case.
     164To see examples for the common methods look at the demo random map 'Wall Demo' (wall_demo.js).
     165An example for placing a custom fortress can be found in 'Fortress' (fortress.js).
    164166
    165167== Map Helpers ==