I'm having problems with these programs. That is they refuse to run.
SCREEN_TOP = 1
SCREEN_BOTTOM = 0
BGTopText = Screen.LoadTextBG()
BGBotText = Screen.LoadTextBG()
Screen.Initialize(SCREEN_TOP, BGTopText)
Screen.Initialize(SCREEN_BOTTOM, BGBotText)
fruit = "apple,pear,banana,pineapple"
basket = {}
i = 1
for v in string.gmatch(fruit, "%w+") do
basket[i] = v
i = i + 1
end
-- I needs a nice, fruity drink...
message = "What about a nice " .. fruit[3] .. "?"
BGBotText:PrintXY(5, 12, message)
DSLua.WaitForAnyKey()
-- set up the screens to display text
SCREEN_TOP = 1
SCREEN_BOTTOM = 0
BGTopText = Screen.LoadTextBG() BGBotText = Screen.LoadTextBG()
Screen.Initialize(SCREEN_TOP, BGTopText)
Screen.Initialize(SCREEN_BOTTOM, BGBotText)
text = "%match this#"
match = string.match(text, "[%w%s]+")
BGTopText:PrintXY(10, 12, match)
-- wait for any key press
DSLua.WaitForAnyKey()
Any ideas? Thanks.