minor cleanup

- removed comment-disabled code
- reduced verbosity in protocol logging
This commit is contained in:
sm
2013-11-07 22:11:54 -08:00
parent b490cfc228
commit 49ff6af1f3
3 changed files with 0 additions and 11 deletions
-3
View File
@@ -106,7 +106,6 @@ func (p *player) checkCollisions(g *game, move_vector v.Vector2d) (bool, v.Point
player_rect := v.RectFromPoint(player.Robot.Position, 3)
collision, _, pos := v.RectIntersection(player_rect, p.Robot.Position, move_vector)
if collision {
// log.Printf("Player Collision %v hit %v, rect:%v", p.Robot.Position, move_vector, player_rect)
return collision, pos, player
}
}
@@ -115,7 +114,6 @@ func (p *player) checkCollisions(g *game, move_vector v.Vector2d) (bool, v.Point
for _, obj := range g.obstacles {
collision, _, pos := v.RectIntersection(obj.Bounds, p.Robot.Position, move_vector)
if collision {
// log.Printf("Object Collision %v hit %v, rect:%v", p.Robot.Position, move_vector, obj.Bounds)
return collision, pos, nil
}
}
@@ -193,7 +191,6 @@ func (p *player) Tick(g *game) {
p.Robot.Position = p.Robot.Position.Add(move_vector)
if new_heading.Mag() > 0 {
p.Robot.Heading = new_heading
// log.Printf("%v %v %v", new_heading, current_heading, angle)
} else {
log.Printf("Zero Heading %v", new_heading)
}