mirror of
https://github.com/libretro/mgba.git
synced 2024-11-27 02:00:42 +00:00
9 lines
171 B
Lua
9 lines
171 B
Lua
local theta = 0
|
|
|
|
function readLight()
|
|
theta = math.fmod(theta + math.pi / 120, math.pi * 2)
|
|
return (math.sin(theta) + 1) * 75
|
|
end
|
|
|
|
emu:setSolarSensorCallback(readLight)
|