-
Notifications
You must be signed in to change notification settings - Fork 55
Level Settings
Brian Rivas edited this page Aug 6, 2014
·
14 revisions
All fields are optional
- "numRooms" - int - number of rooms on this level
- "range" - int - distance the level will spread
- "rooms":
- Array
- Object
- "mode" : String method for choosing "single" or "random"
- "type" : String A Dungeon (room) type
- "weight" : int -Only required if mode is "random"-
- Object
- Array
- "secrets" : Array of
- Array
- Object
- "type" String - Dungeon
- "num": int - max number of occurrences
- Object
- Array
- "theme" : Object containing two BlockSets
- Object
- "primary" : BlockSet used for background walls
- "secondary" : BlockSet used for foreground walls
- Object
- "segments":
- Object
- "segments":
- Array
- Object
- "type": String - Segment
- "weight": int - weight for randomization
- Object
- Array
- "arch" : A segment type used for regular arch ways
- "segments":
- Object
- "loot": Object
- (Coming soon)
-
BlockSet: "primary" and "secondary" theme elements
- Object
- "walls" : an IBlockFactory structure
- "pillar" : an IBlockFactory structure
- "stair" : must be a METABLOCK type
- Object
-
IBlockFactory: Provides a block in some abstract way. (Recursive form)
- "type" : IBlockFactory type
- "data" : Element containing information about the IBlockFactory
-
METABLOCK: - Object - provides a single block,
- "id" : int
- "meta" : int - optional
- "flag" : int - optional
-
WEIGHTED : Array of Weighted Random
- Object
- "type" : String - IBlockFactory type name
- "data" : Object - IBlockFactory data
- "weight" - int
- Object
-
CHECKERS : Array of exactly two of the following:
- Object
- "type" : String IBlockFactory type
- "data" : Object - IBlockFactory data
- Object
-
JUMBLE : Array of evenly distributed but random
- Object
- "type" : String IBlockFactory type
- "data" : Object - IBlockFactory data
- Object
-
STRIPES : Array of striped diagonal pattern
- Object
- "type" : String IBlockFactory type
- "data" : Object - IBlockFactory data
- Object
- Dungeon:
- BRICK, CREEPER, CRYPT, ENCHANT, ENDER, FIRE, MUSIC, NETHER, NETHERFORT, PIT, PRISON,
- SLIME, SMITH, SPIDER, CAKE, LAB, CORNER, MESS, ETHO, ENIKO, BTEAM, BAJ, OSSUARY, OBSIDIAN,
- AVIDYA, STORAGE, NEBRIS, ASHLEA, FIREWORK, BEDROOM
- Segment:
- ARCH, FIREARCH, FIREPLACE, SHELF, INSET, MOSSYARCH, MUSHROOM, NETHERARCH,
- NETHERSTRIPE, NETHERWART, NETHERLAVA, JUNGLE, BOOKS, SPAWNER,
- WHEAT, TOMB, CHEST, SILVERFISH, SKULL, FLOWERS, DOOR
- IBlockFactory:
- METABLOCK, WEIGHTED, CHECKERS, JUMBLE, STRIPES