i am new to LUA and dont know much indepth about it..
My question is.. Say for example i have a file containing many lines of text/code... Now what i want to do is when i press the button 'x' then the screen should show the text which is on the offset 0x0002DE0 , how can i do this?
this is the kind of code i am using at the moment..
Code: Select all
somecolor = Color.new(0, 150, 150)
while true do
screen:clear()
y = 10
file = io.open("Filename.txt","r")
for line in file:lines() do
y = y + 10
screen:print(100,y,line,somecolor)
end
pad = Controls.read()
if pad:cross() then
<insert the jump code here>
end
if pad:triangle() then
Break
end
screen.waitVblankStart()
screen.flip()
end