Global Values Config and Description - snoopy-team/snoopy-server GitHub Wiki
The global game constants are being read in from a JSON file, one for physics and the other for game constants and controls. This page describes those constants and what they do.
The Java server reads these in as JSON files.
GameConfig
: Global Game Constants
These are constants for controls and graphics.
turnSpeed
: the turning speed of the player, in velocity per game second
bulletRadius
: the radius of a bullet in game units
playerRadius
: the radius of the player in game units
bulletCooldown
: the delay between player shots in game seconds
PhysicsModel
: Global Physics Constants
These are the constants for the physics of the game.
thrustPower
: the thrust acceleration, in units per game second squared
gravityStrength
: the acceleration due to gravity, in units per game second squared
dragFactor
: a constant controlling the effects of drag, akin to the density of air.
Current Values
The current values are the ones found in src/test/resources/gameConfig.json
and src/test/resources/physicsModel.json
.