Thanks. I might try and get into this Ds Lua stuff. Is it hard to do?
Hey, Jeremysr over on the DS Lua forums has started a tutorial page from what he knows about DS Lua, I've read it and its helped me so if anyone is interested take a look:
http://www.bio-gaming.com/jeremy/dsl...?act=tutorials
Take note that it's not finished yet, he said (As of now) that hes working on the Background & Sprite section of it, he said it would also be a long tutorial. (but it would help me alot)
Thanks. I might try and get into this Ds Lua stuff. Is it hard to do?
It's not too hard to get into once you get the hang of it . I'm waiting for the BAckgrounds & Sprites section to get finished and maybe i can actuaully get something...i have an idea for a game but i dont know if it will work or not
Wow, never have had so many errors in such little lines of code. And then I have to put my sd card back into the usb reader and do that process again just to test it. Totally worth it though, made my first hello world program!The stylus imput is way easier than I thought it would be. Here is my source code for my tiny little program that puts a message if the user presses the stylus or presses A,B,X,or Y buttons. It ends with the press of the start button. Thought it might help some confused people, maybe.
PHP Code:
SCREEN_TOP = 1
SCREEN_BOT = 0
BGTopText = Screen.LoadTextBG()
BGBotText = Screen.LoadTextBG()
Screen.Initialize( SCREEN_TOP, BGTopText )
Screen.Initialize( SCREEN_BOT, BGBotText )
while Pads.Start() == false do
if Stylus.Down() then
BGBotText:SetColor( 6 )
BGBotText:PrintXY( 10, 12, "You used your stylus!" )
end
if Pads.A() then
BGTopText:SetColor( 5 )
BGTopText:PrintXY ( 10, 12, "A" )
end
if Pads.B() then
BGTopText:SetColor( 2 )
BGTopText:PrintXY ( 10, 12, "B" )
end
if Pads.X() then
BGTopText:SetColor( 1 )
BGTopText:PrintXY ( 10, 12, "X" )
end
if Pads.Y() then
BGTopText:SetColor( 3 )
BGTopText:PrintXY ( 10, 12, "Y" )
end
end
The code looks pretty simple. I dont know if I will be able to do anything good for ages. Im just learning Java at university at the moment, going into second year now.
Thanks for posting this CPU_Smarts! Now I know why my hidden page counters on each page were going up so fast...I'm glad I could help so many people to start using DSLua, that was my goal.![]()
I acctaully think the counter started going up before i posted it here, um, but i could use alittle help,
When I try to make a button using this
if stylusInBox( 80, 64, 142, 85 ) then
BGBotText:PrintXY( 10, 12, "You pressed the button!" )
end
But what happens is I'll load it up, press the button and it doesnt do anything, then I'll exit it and re-load the script it says "You Pressed the button!" without even pressing the button...
I'm quite confused about this...
Heh, back when I was interested in learning Lua, there was next to no documentation; but now that I've moved on, this appears.
*sigh*
Maybe I'll whip a little something up, and post it on the DSlua forums.
Hah, same here but i got interested again when i saw some docs on it, but i just have to learn enough to pull of what i would like to do...Originally Posted by brennxn
I added a Sprites and Background Maps tutorial, the one I'm sure you've all being waiting for.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks