Skip to content

Commit 53e3bf8

Browse files
committed
Tweak movement values
1 parent fca26d5 commit 53e3bf8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hoverrace/math.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (v Vec) MagnitudeSquared() float64 {
4242
func VecFromAngle(degrees float64) Vec {
4343
radians := ToRadians(degrees + 90)
4444
return Vec{
45-
X: math.Cos(radians),
45+
X: -math.Cos(radians),
4646
Y: math.Sin(radians),
4747
}
4848
}

hoverrace/player.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import (
77
"github.com/code-game-project/go-server/cg"
88
)
99

10-
// TODO: tweak these values
1110
const throttleSpeed = 1
12-
const turnSpeed = 60
11+
const turnSpeed = 120
1312
const maxAcceleration = 5
14-
const maxVelocity = 30
13+
const maxVelocity = 20
1514

1615
type Player struct {
1716
id string

0 commit comments

Comments
 (0)