пример кода со всеми переменными(не советую так делать)
<pre>{
"type": "flyingUnit",
"name": "Chrome Wraith",
"description": "Generally annoying and flashy.",
"maxVelocity": 10,
"speed": 0.5,
"drag": 10,
"flying": true,
"health": 90,
"engineOffset": 5.5,
"range": 160,
"weaponOffsetY": 7,
"engineSize": 5,
"rotateSpeed": 16,
"baseRotateSpeed": 16,
"shootCone": 16,
"mass": 1500,
"targetAir": true,
"rotateWeapon": true,
"retreatPercent": 100,
"itemCapacity": 100,
"tomine": "copper-ore"
"buildPower": 80,
"deathSound": "swings.ogg",
"weapon": {
"name": "chrome-blaster",
"length": 1.5,
"damage":45,
"reload": 10,
"alternate": true,
"bullet": "lightning"
}
}
</pre>
====Патроны====