User File #37185169858096152

Upload All User Files

#37185169858096152 - GB Lion King lua script

Lion King, The (USA).lua
709 downloads
Uploaded 2/21/2017 3:02 PM by TASeditor (see all 188)
memory.usememorydomain("WRAM")
while (true) do
	
	x = memory.read_u16_le(0x0595)
	y = memory.read_u16_le(0x0597)
	xc = memory.read_u16_le(0x0524)
	yc = memory.read_u16_le(0x0528)
	gui.drawText(0,30, "x:"..x.." ")
	gui.drawText(0,43, "x:"..y.." ")
	
	for i = 0, 5, 1 do
	
		x = memory.read_u8(0x066A+i) + memory.read_u8(0x0670+i)*256
		y = memory.read_u8(0x0676+i) + memory.read_u8(0x067C+i)*256
		gui.pixelText(x-xc, y-yc, ""..x.."\n"..y)--, "white", "blue", "gens")
		
	end
	
	lag = memory.read_u8(0x004D)
	
	if lag == 2
	then tastudio.setlag(emu.framecount()-2, false)
	else tastudio.setlag(emu.framecount()-2, true)
	end
	
	emu.frameadvance()
	
end