Amiga Going Ball demo recreation

This commit is contained in:
2026-06-20 19:38:20 +03:00
parent 93c632ed6e
commit ff627c0451
3 changed files with 623 additions and 40 deletions
+4 -6
View File
@@ -47,15 +47,13 @@ function event.pull(...)
end
end
-- Check if we've timed out
if timeout and computer.uptime() >= startTime + timeout then
return nil -- Timed out, return nil
if timeout ~= nil and computer.uptime() >= startTime + timeout then
return nil
end
-- Yield to allow other processes to run and more events to be added
if timeout and timeout > 0 then
if timeout == nil then
coroutine.yield()
elseif not timeout then
elseif timeout > 0 then
coroutine.yield()
end
end