Skip to content

Latest commit

 

History

History
193 lines (169 loc) · 3.17 KB

[LEGACY prototype] - MapStandard v0.2.md

File metadata and controls

193 lines (169 loc) · 3.17 KB

InterPlanetGame: Map Standard [v 0.2 - Proposed]

Supports Protoype, but won't work with new verison, the first version of the new version is 0.3

Changes From Last Standard

File Type

The maps are stored as a JSON file.

No spaces in the file name

Required Elements

  • Name
  • Standard
  • Size
  • Planets Array, and at least one element in it

Element Details

Name:

Type Values
String Any

Standard:

Type Values
String Version of the standard in use without the 'v'
Example:
"standard": "0.2",

Size:

Type | Values ------|------- | Object| X and Y dimensions Example ```JSON "size": { "x": "0", "y": "0" }, ```

Planets (Array)

Type | Values ------|------- | Array| Planet Objects Example ```JSON "planets": [ ], ```

Planet (Object)

Type | Values ------|------- | Object| X and Y cords, Color, Radius, Start Value Example ```JSON { "radius": "10", "color": "#8ed16c", "x": "20", "y": "20", "startValue": "10" }, ``` JSON Syntax Notes

The elemsnts must by in that order in the planet object, the numbers have to be strings (surrounded by double quotes). The cordinates are distance from the upper right hand corner.

Color Palette:

Name Hex Order
Green #8ed16c 1
Blue #3fa6f3 2
Red #e25f5f 3
Magenta #ef6ab8 4
Orange #eb8932 5
Purple #af6cd1 6
Neutral Grey #bbbbbb 0

Palette Rule(s)

In a map, use the colors in order. There should never be Magenta in a 3 player map for example. Neutral grey planets don't increaese in value until they are taken over. They are "neutral" and aren't owned by a player in the start of the game.

Guide Lines:

  • The planets must alwasy fit inside the map boundries
  • The Quantity of troops for the start values should be equal
  • The combined radiuss of the planets should be equal

Planet Order In Map.json File

Top to bottom, left to right.

Accepted Start Value

* 5 * 10 * 15 * 20 * 25 * 30 * 35 * 45 * 50

Use these sparingly:

  • 60
  • 70
  • 75
  • 80
  • 90
  • 100
  • 125
  • Larger sizes make the value of capturing planets go down.

Accepted Planet Sizes

* 10 * 15 * 20 * 40 * 50 * 75 * 100 * 125 * 150 * 175 * 200 * No Bigger Planets, It's a waste of space (Pun intended).

Example Map

{
	"name": "Example Planet Map",
	"size": {
		"x": "400",
		"y": "400"
	},
	"standard": "0.2",
	"planets": [
		{
			"radius":"50",
			"color": "#8ed16c",
			"x": "55",
			"y": "55",
			"startValue": "20"
		},
		{
			"radius":"50",
			"color": "#3fa6f3",
			"x": "345",
			"y": "55",
			"startValue": "20"
		},
		{
			"radius":"75",
			"color": "#bbbbbb",
			"x": "200",
			"y": "200",
			"startValue": "20"
		},
		{
			"radius":"50",
			"color": "#e25f5f",
			"x": "55",
			"y": "345",
			"startValue": "20"
		},
		{
			"radius":"50",
			"color": "#ef6ab8",
			"x": "345",
			"y": "345",
			"startValue": "20"
		}
	]
}