haxball / haxball-issues

113 stars 42 forks source link

Real Soccer map colors #1280

Open Abdullah642150 opened 3 years ago

Abdullah642150 commented 3 years ago

The colors of the crown regions of some rs maps are black. How can I do that?

andreaisgod commented 3 years ago

Taç bölgesi derken sahanın dışını mı kastediyorsunuz?

thenorthstar commented 3 years ago

The colors of the crown regions of some rs maps are black. How can I do that?

@Abdullah642150 You can make it by adjusting bg property in the stadium object. To provide you make it easy, I'm sending an example of stadium whose crown region is black.

{"name":"New Stadium","width":420,"height":200,"spawnDistance":170,"redSpawnPoints":[],"blueSpawnPoints":[],"bg":{"color":"000000","height":170,"width":370,"cornerRadius":0,"kickOffRadius":0,"type":"grass"},"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"]}},"vertexes":[],"segments":[],"goals":[],"discs":[{"pos":[0,0]}],"planes":[],"joints":[],"playerPhysics":{},"ballPhysics":{},"canBeStored":false}

And here's its output on HaxPuck:

example