We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca26d5 commit 53e3bf8Copy full SHA for 53e3bf8
hoverrace/math.go
@@ -42,7 +42,7 @@ func (v Vec) MagnitudeSquared() float64 {
42
func VecFromAngle(degrees float64) Vec {
43
radians := ToRadians(degrees + 90)
44
return Vec{
45
- X: math.Cos(radians),
+ X: -math.Cos(radians),
46
Y: math.Sin(radians),
47
}
48
hoverrace/player.go
@@ -7,11 +7,10 @@ import (
7
"github.com/code-game-project/go-server/cg"
8
)
9
10
-// TODO: tweak these values
11
const throttleSpeed = 1
12
-const turnSpeed = 60
+const turnSpeed = 120
13
const maxAcceleration = 5
14
-const maxVelocity = 30
+const maxVelocity = 20
15
16
type Player struct {
17
id string
0 commit comments