game types, deathmatch and melee
This commit is contained in:
@@ -187,7 +187,7 @@ func (r *Robot) checkCollisions(g *game, move_vector v.Vector2d) (bool, v.Point2
|
||||
collision, move_collision, translation := v.PolyPolyIntersection(
|
||||
bot_polygon, move_vector, player_rect)
|
||||
if collision || move_collision {
|
||||
return true, r.Position.Add(move_vector).Add(translation.Scale(1.2)), bot
|
||||
return true, r.Position.Add(move_vector).Add(translation.Scale(1.1)), bot
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user