Skip to content

Instantly share code, notes, and snippets.

@iiviigames
Created November 11, 2021 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iiviigames/bb37e4d760216ebfad38af9f1843f80e to your computer and use it in GitHub Desktop.
Save iiviigames/bb37e4d760216ebfad38af9f1843f80e to your computer and use it in GitHub Desktop.
SMW: Boo Ring Rotation Viewer for Mesen-S
--[[CREDITS:
AUTHOR: iiviigames | @iiviigames
EMAIL: iiviigames@pm.me
WEBSITE:https://odd.codes
GITHUB: https://github.com/iiviigames
DATE: November 11, 2021
]]--
-- Tracks the angle of the Boo Rings for experimentation and visual aid.
booringrot = 0x0fae
function get(h,tp)
tp = emu.memType[tp] ~= nil and emu.memType[tp] or emu.memType.workRam
return emu.read(h,tp)
end
function update()
emu.drawRectangle(3,10,111,12,0x2f1fff,true)
emu.drawString(4,12,"Boo Ring Rotation: ".. get(booringrot),0xffffff,1,1)
end
emu.addEventCallback(update, emu.eventType.endFrame)
emu.displayMessage('SCRIPT', 'Boo Ring Angle Tracker Loaded!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment