|#port, on move bullets, needs, @move bullets| |#port body, on move bullets, lua| local dt = state.dt local bullets = state.bullets for _, bullet in ipairs(bullets) do if not (bullet.frozen and counters["game is paused"] > 0) then bullet.frozen = false bullet.x = bullet.x + math.cos(bullet.angle) * 350 * dt bullet.y = bullet.y + math.sin(bullet.angle) * 350 * dt local in_bounds = -10 <= bullet.x and bullet.x <= 810 and -10 <= bullet.y and bullet.y <= 610 if not in_bounds then bullet.deleted = true end end end