Skip to content
Snippets Groups Projects
Commit 5da6a9e5 authored by DarkGod's avatar DarkGod
Browse files

plop

parent 3fa3311b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -21,9 +21,12 @@
local nb = 1
local force_dir = nil
if tx and ty then force_dir = math.deg(math.atan2(-ty, -tx)) end
return { generator = function()
local sradius = 10 * (engine.Map.tile_w + engine.Map.tile_h) / 2
local ad = rng.float(0, 360)
local ad = force_dir or rng.float(0, 360)
local a = math.rad(ad)
local x = sradius * math.cos(a)
local y = sradius * math.sin(a)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment