Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Sanchez committed Nov 11, 2024
1 parent 3127d1c commit b82a591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/arena/lib/arena/game_updater.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,9 @@ defmodule Arena.GameUpdater do
end

defp random_position_in_square(object_radius, external_wall, obstacles, initial_position, square_wall) do
IO.inspect(square_wall, label: :aver_wall)
IO.inspect(initial_position, label: :aver_position)

x =
Enum.random(trunc(square_wall.left)..trunc(square_wall.right)) / 1.0 + initial_position.x

Expand Down

0 comments on commit b82a591

Please sign in to comment.