User File #2432316411148352

Upload All User Files

#2432316411148352 - AVGN KO Boxing lua file

A2600-AVGN-KO-BOXING.lua
Game: AVGN KO Boxing ( A2600, see all files )
1028 downloads
Uploaded 11/9/2012 12:31 PM by tetora_X (see all 3)
lua file for AVGN KO Boxing. The game is a bit tricky that I don't feel like optimizing hardly. I hope someone make nice TAS of the game.
while true do
ehp = mainmemory.read_u8(0x24) --enemy HP
hp = mainmemory.read_u8(0x23) --HP

eahp = mainmemory.read_u8(0x2C) --enemy apparent HP
ahp = mainmemory.read_u8(0x2B) --apparent HP

rand = mainmemory.read_u8(0x0) --random number

x = mainmemory.read_u8(0x27) --X
y = mainmemory.read_u8(0x28) --Y

ex = mainmemory.read_u8(0x29) --enemyX
ey = mainmemory.read_u8(0x2A) --enemyY


gui.text(1, 60, string.format("%X",rand))
gui.text(1, 75, string.format("HP = %d/%d, eneHP = %d/%d",ahp,hp,eahp,ehp))

gui.text(1, 90, string.format("(x,y) = (%X, %X), e(x,y) = (%X, %X)",x,y,ex,ey))
emu.frameadvance()
end