quieted things down slightly (logging)
This commit is contained in:
parent
245c483f9e
commit
2e774285ba
@ -250,7 +250,7 @@ func addPlayer(ws *websocket.Conn) {
|
|||||||
Heading: v.Vector2d{1, 0},
|
Heading: v.Vector2d{1, 0},
|
||||||
Scanners: make([]Scanner, 0)}
|
Scanners: make([]Scanner, 0)}
|
||||||
r.Health = r.Stats.Hp
|
r.Health = r.Stats.Hp
|
||||||
log.Printf("Adding Robot: %v", r)
|
log.Printf("Adding Robot: %+v", r)
|
||||||
r.reset(game)
|
r.reset(game)
|
||||||
p.Robots = append(p.Robots, &r)
|
p.Robots = append(p.Robots, &r)
|
||||||
}
|
}
|
||||||
|
2
robot.go
2
robot.go
@ -381,8 +381,6 @@ func (r *Robot) reset(g *game) {
|
|||||||
r.Position = start_pos
|
r.Position = start_pos
|
||||||
r.Health = r.Stats.Hp
|
r.Health = r.Stats.Hp
|
||||||
|
|
||||||
log.Printf("Reset %v", r)
|
|
||||||
|
|
||||||
// Check Obstacles
|
// Check Obstacles
|
||||||
retry := false
|
retry := false
|
||||||
for _, obj := range g.obstacles {
|
for _, obj := range g.obstacles {
|
||||||
|
Loading…
Reference in New Issue
Block a user