{
	"name" : "Moon",
	
	"width" : 800,
	"height" : 350,
	
	"spawnDistance" : 350,
	
	"bg" : { "type" : "grass", "width" : 700, "height" : 320, "kickOffRadius" : 80, "cornerRadius" : 0 },

	"vertexes" : [
		{ "x" : -700, "y" : 320,  "trait" : "ballArea" },
		{ "x" : -700, "y" : 100,   "trait" : "ballArea" },
		{ "x" : -700, "y" : -100,  "trait" : "ballArea" },
		{ "x" : -700, "y" : -320, "trait" : "ballArea" },
		
		{ "x" : 700, "y" : 320,  "trait" : "ballArea" },
		{ "x" : 700, "y" : 100,   "trait" : "ballArea" },
		{ "x" : 700, "y" : -100,  "trait" : "ballArea" },
		{ "x" : 700, "y" : -320, "trait" : "ballArea" },
		
		{ "x" : 0, "y" :  350, "trait" : "kickOffBarrier" },
		{ "x" : 0, "y" :   80, "trait" : "kickOffBarrier" },
		{ "x" : 0, "y" :  -80, "trait" : "kickOffBarrier" },
		{ "x" : 0, "y" : -350, "trait" : "kickOffBarrier" },
		
		{ "x" : -710, "y" : -100, "trait" : "goalNet" },
		{ "x" : -730, "y" : -80, "trait" : "goalNet" },
		{ "x" : -730, "y" :  80, "trait" : "goalNet" },
		{ "x" : -710, "y" :  100, "trait" : "goalNet" },
		
		{ "x" : 710, "y" : -100, "trait" : "goalNet" },
		{ "x" : 730, "y" : -80, "trait" : "goalNet" },
		{ "x" : 730, "y" :  80, "trait" : "goalNet" },
		{ "x" : 710, "y" :  100, "trait" : "goalNet" }
	],
	
	"segments" : [
		{ "v0" : 0, "v1" : 1, "trait" : "ballArea" },
		{ "v0" : 2, "v1" : 3, "trait" : "ballArea" },
		{ "v0" : 4, "v1" : 5, "trait" : "ballArea" },
		{ "v0" : 6, "v1" : 7, "trait" : "ballArea" },
		
		{ "v0" : 12, "v1" : 13, "trait" : "goalNet", "curve" : -90 },
		{ "v0" : 13, "v1" : 14, "trait" : "goalNet" },
		{ "v0" : 14, "v1" : 15, "trait" : "goalNet", "curve" : -90 },
		
		{ "v0" : 16, "v1" : 17, "trait" : "goalNet", "curve" : 90 },
		{ "v0" : 17, "v1" : 18, "trait" : "goalNet" },
		{ "v0" : 18, "v1" : 19, "trait" : "goalNet", "curve" : 90 },
		
		{ "v0" : 8, "v1" : 9, "trait" : "kickOffBarrier" },
		{ "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : 180, "cGroup" : ["blueKO"] },
		{ "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : -180, "cGroup" : ["redKO"] },
		{ "v0" : 10, "v1" : 11, "trait" : "kickOffBarrier" }
	],
	
	"goals" : [
		{ "p0" : [-700, 100], "p1" : [-700,-100], "team" : "red" },
		{ "p0" : [700, 100], "p1" : [700,-100], "team" : "blue" }
	],

// Player physics set to the game's default values:
	"playerPhysics" : {
		// The following three settings work in the same way as in discs
		"bCoef" : 0.5,
		"invMass" : 0.5,
		"damping" : 0.96,
		
		"acceleration" : 0.1085,         // This is how fast the player accelerates when moving in any direction.
		"kickingAcceleration" : 0.08, // This value will replace normal acceleration when the player is pressing the kick button. ( Setting it to the same value as acceleration would make the player not slow down when kicking )
		"kickingDamping" : 0.96,      // This value will replace the normal damping when the player is pressing the kick button. ( By default this is set to the same value as normal damping, meaning that classic haxball doesn't make use of this feature. )
		"kickStrength" : 5            // This value is the strength with which the ball will be kicked by the players.
	},
	
	
	"discs" : [
		{ "pos" : [-700,  100], "trait" : "goalPost", "color" : "FFCCCC" },
		{ "pos" : [-700, -100], "trait" : "goalPost", "color" : "FFCCCC" },
		{ "pos" : [ 700,  100], "trait" : "goalPost", "color" : "CCCCFF" },
		{ "pos" : [ 700, -100], "trait" : "goalPost", "color" : "CCCCFF" }
	],
	
	"planes" : [
		{ "normal" : [0, 1], "dist" : -320, "trait" : "ballArea" },
		{ "normal" : [0,-1], "dist" : -320, "trait" : "ballArea" },
		{ "normal" : [ 0, 1], "dist" : -350, "bCoef" : 0.1 },
		{ "normal" : [ 0,-1], "dist" : -350, "bCoef" : 0.1 },
		{ "normal" : [ 1, 0], "dist" : -800, "bCoef" : 0.1 },
		{ "normal" : [-1, 0], "dist" : -800, "bCoef" : 0.1 }
	],
	
	"traits" : {
		"ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] },
		"goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
		"goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball"] }, 
		"kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"] }
	},

	// Ball physics set to the game's default values:
	"ballPhysics" : {
		"radius" : 10,
		"bCoef" : 0.50,
		"invMass" : 1,
		"damping" : 1,
		"color" : "FFFFFF",
		"cMask" : ["all"],
		"cGroup" : ["ball"]
	}
}

