This wiki is archived from 2021-09-05

Planetary Annihilation Maps: Difference between revisions

From Planetary Annihilation: TITANS and Classic PA Wiki
Jump to navigation Jump to search
Line 189: Line 189:


The first two landing zones are available for 1v1 on opposite sides.
The first two landing zones are available for 1v1 on opposite sides.
Remaining four landing zones are available for 3 or more players.
Remaining four landing zones are available with 3 or more players.


Landing zones are currently allocated to armies in order.
Landing zones are currently allocated to armies in order.

Revision as of 10:59, 6 October 2016

File:Titans-icon.png Planetary Annihilation Titans & Classic Maps

System (map) pas files are JSON.

System / Map

name mandatory string there is currently no unique identifier for maps
players optional array of two numbers [minPlayers,maxPlayers] where minPlayers is normally set to number of starting planets so that no player starts alone)
creator mandatory string system sharing
description optional string system sharing
version optional string system sharing
planets mandatory array of planets
{
    "name": "Name",
    "creator": "palobby.com",
    "version": "1",
    "description" : "Description",
    "planets": [...]
}

In the future a unique identifier similar to mods will be added.

Planets

name mandatory string there is currently no unique identifier for planets
mass mandatory integer
position_x mandatory float
position_y mandatory float
velocity_x mandatory float
velocity_y mandatory float
required_thrust_to_move mandatory number 0 or number of halleys required to move planet
starting_planet mandatory boolean
planet mandatory object planet spec for procedural generator
landing_zones optional array of landing zone objects
metal_spots optional array of metal spot objects
planetCSG optional array of CSG objects

planet (spec)

planetCSG

landing_zones

list mandatory array of [x,y,z] array of locations
rules mandatory array of landing zone rule objects for each location

landing_zone rules

min mandatory number minimum number of players for this location
max mandatory number maximum number of players for this location

Example with 6 landing zones around equator and poles.

"landing_zones":
{
    "list":
    [
        [800, 0, 0],
        [-800, 0, 0],
        [0, 800, 0],
        [0, -800, 0],
        [0, 0, 800],
        [0, 0, -800]
    ],
    "rules":
    [
        {
            "min": 2,
            "max": 6
        },
        {
            "min": 2,
            "max": 6
        },
        {
            "min": 3,
            "max": 6
        },
        {
            "min": 3,
            "max": 6,
        },
        {
            "min": 3,
            "max": 6
        },
        {
            "min": 3,
            "max": 6
        }
    ]
}

The first two landing zones are available for 1v1 on opposite sides. Remaining four landing zones are available with 3 or more players.

Landing zones are currently allocated to armies in order.

ie the first available landing zone will be allocated to the first army in slot 1.

metal_spots