Created
November 11, 2021 23:00
-
-
Save iiviigames/bb37e4d760216ebfad38af9f1843f80e to your computer and use it in GitHub Desktop.
SMW: Boo Ring Rotation Viewer for Mesen-S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[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