dofile("/Users/scott/source/daphne/singe/framework.singe") sprCross = spriteLoad("/Users/scott/source/daphne/singe/crosshair.png") mouseX = 0 mouseY = 0 crosshairCenterX = spriteGetWidth(sprCross) / 2 crosshairCenterY = spriteGetHeight(sprCross) / 2 discSetFPS(23.976) discSearch(1) discPlay() function onInputPressed(intWhat) end function onInputReleased(intWhat) if (intWhat == SWITCH_RIGHT) then discPlay() end if (intWhat == SWITCH_LEFT) then discPause() end if (intWhat == SWITCH_UP) then daphneScreenshot() end if (intWhat == SWITCH_BUTTON3) then R, G, B = vldpGetPixel(mouseX, mouseY) debugPrint("R " .. R .. " G " .. G .. " B " .. B) end end function onMouseMoved(intX, intY, intXrel, intYrel) mouseX = intX mouseY = intY end function onOverlayUpdate() overlayClear() overlayPrint(1, 2, "Mouse: " .. mouseX .. "x" .. mouseY) spriteDraw(mouseX - crosshairCenterX, mouseY - crosshairCenterY, sprCross) -- Skip into game video when the intro is over. if (discGetFrame() == 354) then discSearch(360) discPlay() end return(OVERLAY_UPDATED) end function onShutdown() discStop() end function onSoundCompleted(intWhich) end