Changes between Version 18 and Version 19 of Rmgen_Library
- Timestamp:
- Apr 20, 2012, 12:02:31 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rmgen_Library
v18 v19 153 153 154 154 The functions and data provided in wall_builder.js allow easy placements of multiple entities to shape walls: 155 * 'WallElement 155 * 'WallElement()': Defines a wall element including its entity and a name string to easily access it. 156 156 * 'Fortress()': Defines a fortress mainly by an array of wall element name strings. 157 157 * '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'). … … 162 162 * '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']). 163 163 Some other functions are in there helpful to generate custom walls of any type but the mentioned ones should cover the common case. 164 To see examples for the common methods look at the demo random map 'Wall Demo' (wall_demo.js). 165 An example for placing a custom fortress can be found in 'Fortress' (fortress.js). 164 166 165 167 == Map Helpers ==