Skip to content

Instantly share code, notes, and snippets.

View BitPatty's full-sized avatar
🐕
Walking my watchdog

Matteias Collet BitPatty

🐕
Walking my watchdog
View GitHub Profile
@BitPatty
BitPatty / qftimer.s
Created September 16, 2024 17:49 — forked from QbeRoot/qftimer.s
Source for Quarterframe Timer
qftRect = 0x817F0094 # u32[4] coordinates of the textbox relative to the top left corner of the screen, in order: left X, top Y, right X, bottom Y
qftFormat = 0x817F00A4 # string printf format string of the timer, containing 3 specifiers for minutes, seconds and milliseconds in order
qftStop = 0x817F00B2 # bool if nonzero, the timer is stopped on the value of qftOffset, otherwise it continues to run
qftReset = 0x817F00B3 # bool if nonzero, the timer will restart from 0 in the next area, otherwise it will continue where it left off
qftOffset = 0x817F00B4 # u32 cumulative time spent in previous areas since the last reset, includes current area iff qftStop is true
qftFreezeTime = 0x817F00B8 # u32 fixed time to be displayed if qftFreezeFor > 0 and qftStop is false, only includes current area
qftFreezeFor = 0x817F00BC # u32 duration of a timer freeze (in frames)
qftTextBox = 0x817F0110 # J2DTextBox textbox used to render the timer (0x128