Fun. In response to the rehashed zapper.read(), I hereby create a silly little script for it:
local PrettyColors={
0x0000FFFF, 0x0020FFFF, 0x0040FFFF, 0x0060FFFF,
0x0080FFFF, 0x00A0FFFF, 0x00C0FFFF, 0x00E0FFFF,
0x00FFFFFF, 0x00FFE0FF, 0x00FFC0FF, 0x00FFA0FF,
0x00FF80FF, 0x00FF60FF, 0x00FF40FF, 0x00FF20FF,
0x00FF00FF, 0x20FF00FF, 0x40FF00FF, 0x60FF00FF,
"#80FF00FF","#A0FF00FF","#C0FF00FF","#E0FF00FF", -- Odd glitch with red
"#FFFF00FF","#FFE000FF","#FFC000FF","#FFA000FF", -- when at least 128...
"#FF8000FF","#FF6000FF","#FF4000FF","#FF2000FF",
"#FF0000FF","#FF0020FF","#FF0040FF","#FF0060FF",
"#FF0080FF","#FF00A0FF","#FF00C0FF","#FF00E0FF",
"#FF00FFFF","#E000FFFF","#C000FFFF","#A000FFFF",
"#8000FFFF",0x6000FFFF, 0x4000FFFF, 0x2000FFFF}
while true do
gui.pixel(0,0,0x00000000) -- Clears gui
local Clr= PrettyColors[ ( movie.framecount()%36 )+1 ]
local T = zapper.read()
T.y= T.y-8
if T.fire == 1 then
gui.line( T.x , 0 , T.x , 220 ,Clr)
gui.line( 0 , T.y , 255 , T.y ,Clr)
end
emu.frameadvance()
end
... Odd, running this script when a movie ends from natural causes (
let movie play out all its frames) causes FCEUX to crash here. Hrm...