From d00e2a8df81a06b128f43a3ba14d31737e61d3a7 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Mon, 24 Nov 2014 14:42:38 -0800 Subject: [PATCH] some go fmt --- robot.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/robot.go b/robot.go index f3a2484..0c583d4 100644 --- a/robot.go +++ b/robot.go @@ -199,19 +199,19 @@ func (r *Robot) checkCollisions(g *Game, probe v.Vector2d) (bool, *v.Point2d, *R bounds := []Obstacle{ Obstacle{ Bounds: v.AABB2d{A: v.Point2d{0, 0}, B: v.Point2d{0, g.width}}, - Hp: 0, + Hp: 0, }, Obstacle{ Bounds: v.AABB2d{A: v.Point2d{0, 0}, B: v.Point2d{0, g.height}}, - Hp: 0, + Hp: 0, }, Obstacle{ Bounds: v.AABB2d{A: v.Point2d{g.width, g.height}, B: v.Point2d{0, g.height}}, - Hp: 0, + Hp: 0, }, Obstacle{ Bounds: v.AABB2d{A: v.Point2d{g.width, g.height}, B: v.Point2d{g.width, 0}}, - Hp: 0, + Hp: 0, }, } @@ -278,13 +278,13 @@ func (r *Robot) Tick(g *Game) { r.TargetSpeed = r.Stats.Speed } - if r.TargetSpeed < -0.25 * r.Stats.Speed { + if r.TargetSpeed < -0.25*r.Stats.Speed { r.TargetSpeed = -0.25 * r.Stats.Speed } // Are we speeding up or slowing down? increase := true - if r.Speed - r.TargetSpeed > v.Epsilon { + if r.Speed-r.TargetSpeed > v.Epsilon { increase = false }