- tbg_core: board (10x22, ROM layout), pieces, shared piece queue, player (gravity, DAS, lock delay, line clear); placeholder rotation/RNG/timings - SDL3 front end: single board, 60 Hz fixed step, next-3 preview - core tests - RE tooling: Ghidra seed/export scripts, 65816 disassembler, headless Mesen2 wrapper + Lua input/snapshot driver, asm export, NOTES.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
578 B
Lua
13 lines
578 B
Lua
local f=0
|
|
emu.addEventCallback(function() emu.setInput({start=true}, 0) end, emu.eventType.inputPolled)
|
|
emu.addEventCallback(function()
|
|
f=f+1
|
|
if f==100 then
|
|
local ok, v = pcall(emu.getInput, 0)
|
|
print("getInput:", ok, v and (type(v)=="table" and (function() local s="" for k,x in pairs(v) do s=s..k.."="..tostring(x).." " end return s end)() or tostring(v)))
|
|
local st = emu.getState()
|
|
for k,v in pairs(st) do if tostring(k):lower():find("port") or tostring(k):lower():find("control") then print(k,v) end end
|
|
emu.stop(0)
|
|
end
|
|
end, emu.eventType.endFrame)
|