DSLua Community

DSLua - Best scripting language for Nintendo DS => Examples/Tutorials => Topic started by: Jeremysr on August 28, 2006, 12:59:37 AM



Title: Some Tutorials!
Post by: Jeremysr on August 28, 2006, 12:59:37 AM
I decided to write tutorials for people since DSLua is so hard to learn with just examples! I'm writing them on my DSLua site, I've done two so far, which teach how to use DSLua and how to use some text functions. The tutorials are located here:

http://www.bio-gaming.com/jeremy/dslua/index.php?act=tutorials

I don't know too much about DSLua, but I'll teach all I know! :P


Title: Re: Some Tutorials!
Post by: jeffx on August 28, 2006, 11:39:10 AM
awesome, I will check them out


Title: Re: Some Tutorials!
Post by: daltonlaffs on August 28, 2006, 02:26:38 PM
I am currently in the works of putting some tutorials for DSLua on my site, as well. But that Hello World tut isn't too shabby. No errors there, but why on earth do you confuse people by saying colour through the whole thing?  :-X


Title: Re: Some Tutorials!
Post by: Jeremysr on August 29, 2006, 12:10:43 AM
Lol, well ,I guess it'd be a good idea to change that...there, it's all back to color! ;D

And I added another tutorial: Loops and if statements!

Then I'll make the short tutorials of button/touch screen presses and music/sound playing, but I'll skip the sprites tutorial for now...I don't know enough about them, I don't think. Especially with frames and scrolling. Instead I will try to create a new section where I list all the functions I know/can find, and describe how each one works and give examples etc. :)


Title: Re: Some Tutorials!
Post by: daltonlaffs on August 29, 2006, 10:13:34 AM
I'll skip the sprites tutorial for now...I don't know enough about them, I don't think. Especially with frames and scrolling.
I can always teach you over MSN or PM or something, ya know. They're easy once you find out how to use em.  :o

Wanna go 2 msn or something? I have Instan-t, MSN, Yahoo, and AOL. I'm sure I can teach you what you wanna know in less than 20 minutes.


Title: Re: Some Tutorials!
Post by: Jeremysr on August 29, 2006, 10:47:35 AM
Sure ok! ;D I have MSN: jeremysr@hotmail.com


Title: Re: Some Tutorials!
Post by: daltonlaffs on August 29, 2006, 02:30:55 PM
Come on MSN whenever you can, I'll be on 4 a while.


Title: Re: Some Tutorials!
Post by: Jeremysr on September 03, 2006, 12:37:28 AM
I've added a tutorial on the touch screen and buttons, which also explains my stylusInBox() function. And here's a new bigger list of future tutorials:

Quote
Tutorial 0: How to run DSLua programs on your DS - When you download my DSLua programs, you will just get source code. Go to this document to find out how to run it on your DS.

Tutorial 1: Hello World - How to print stuff to the screen, use variables, use comments, colour text, and choose where on the screen to put the text.

Tutorial 2: Loops and If statements - Learn how to let your programs make decisions and run repetetetetive code.

Tutorial 3: Touch screen/Buttons - Get user input from the stylus and the 12 DS buttons.

Tutorial 4: Sound and Music - Coming Soon

Tutorial 5: Sprites and Backgrounds - Coming Soon

Tutorial 6: Functions - Coming Soon

Tutorial 7: Strings - Coming Soon

Tutorial 8: Randomization - Coming Soon

Tutorial 9: User Information - Coming Soon

Tutorial 10: File I/O - Coming Soon

Tutorial 11: Arrays - Coming Soon

Edit: I just quickly wrote a Sound & Music tutorial. The next one to write is Sprites & Backgrouns..which I'm scared to write.. :P It'll be so big...But at least I get to make some nice graphics for the tutorial along the way! :D


Title: Re: Some Tutorials!
Post by: Jeremysr on September 03, 2006, 11:32:43 PM
Wow, according to my hidden pageview counters on the tutorials, there are a lot of people using these! The counter keeps going up a few times every hour!


Title: Re: Some Tutorials!
Post by: brennan on September 04, 2006, 08:02:17 PM
Hehe, back when I had interest in Lua, there was almost no docuentation at all. Now, I have moved on, started learning C, and this shows up :p.

Well, it seems as if the project is dieing anyway, it'd probably been a waste of time.
(Btw, those tuts are pretty good, Jeremy)


Title: Re: Some Tutorials!
Post by: Jeremysr on September 04, 2006, 11:44:41 PM
I've added the tutorial about sprites and background maps: http://www.bio-gaming.com/jeremy/dslua/index.php?act=spritesandbackgrounds

And I'll quickly write the functions tutorial tonight. (making your own functions)


Title: Re: Some Tutorials!
Post by: jester on September 05, 2006, 09:29:28 AM
we need to save DSLua it is the most comfortable way of coding for the nds keep the dream alive i am going to also search for waruwaru


Title: Re: Some Tutorials!
Post by: daltonlaffs on September 05, 2006, 01:47:08 PM
Hey jeremysr!

I saw that you were struggling on your Language fuction, cuz you didn't know what number is what language, so here. I tested this on REAL hardware, by resetting my DS and changing my language over and over again. Here is each language and its number:

Japanese = 0 (Dualis speaks Japanese, who knew?)
English = 1
French = 2
That one that sounds like Dutch = 3
Italian = 4
Spanish = 5


And on the chinese iQue DS, they have chinese, but I don't have one, so good luck... probably 7, but not sure.

Just say (thanks Daltonlaffs) somewhere on the page  :P


Title: Re: Some Tutorials!
Post by: Jeremysr on September 05, 2006, 07:33:14 PM
Yay, thanks! ;D I'm pretty sure the dutch one is how you say "German" in German. I'll go check.

I'll definately give you credit. :)

(BTW I just "elsed" the chinese one (if the number is not inbetween 0 and 5 it must be chinese))


Title: Re: Some Tutorials!
Post by: jester on September 05, 2006, 07:58:04 PM
i cant wait for more tutorials jeremysr


Title: Re: Some Tutorials!
Post by: CPU_Smarts on September 05, 2006, 09:09:26 PM
Thanks for the tuts Jeremysr, they really help, i now understand most of how sprites work along with other things ^.^ maybe i can have a game out sometime within the next month, I'll be working on transitioning from the splash screen to the main menu now....


Title: Re: Some Tutorials!
Post by: Jeremysr on October 05, 2006, 12:52:34 AM
I wrote a short tutorial today about "advanced touch screen input (http://www.bio-gaming.com/jeremy/dslua/index.php?act=advancedtouchscreeninput)". If you plan on using menus/buttons in your game it's important to read this tutorial.


Title: Re: Some Tutorials!
Post by: benja32 on November 24, 2006, 12:49:22 PM
hi all and jerem

im french orry for my langage lol

the tutorials it doesn't work :( the tutorial0 yes but the other 1 a 9 no :( why ?


Title: Re: Some Tutorials!
Post by: daltonlaffs on November 24, 2006, 01:27:38 PM
Yeah, looks like jeremysr has some problems with his page... I have a site on bio-gaming, and I can't upload anything... guess he is going through some hard times.  :o


Title: Re: Some Tutorials!
Post by: Jeremysr on November 24, 2006, 01:58:41 PM
Sorry all my databases were disabled. They're supposed to be working now (and Daltonlaffs you can upload now) but I can't log in to my site admin panel. I'm waiting for my older brother (who lives far away) to fix it since he's the actual owner of the site.

I was only using a database for the tutorials to count how many users viewed the tutorials. So I'll just take off the counter and it should work.

Edit: Now I'm having problems uploading. I might put the tutorials on a different site for the next couple days...


Title: Re: Some Tutorials!
Post by: benja32 on November 25, 2006, 06:32:40 AM
ok thank but When your tutorials are working again ??? ??? :'(


Title: Re: Some Tutorials!
Post by: Jeremysr on November 25, 2006, 08:43:46 PM
I have moved my tutorials to http://www.geocities.com/jeremyr46 for now.


Title: Re: Some Tutorials!
Post by: Jeremysr on November 25, 2006, 10:25:39 PM
Ok bio-gaming.com is back so the tutorials work now. ;D


Title: Re: Some Tutorials!
Post by: jester on January 09, 2007, 04:48:42 AM
Anymore new tutorials coming?


Title: Re: Some Tutorials!
Post by: Jeremysr on January 09, 2007, 01:51:24 PM
Give me some ideas! ;D (Not Wifi or Mic functions yet)


Title: Re: Some Tutorials!
Post by: brennan on January 09, 2007, 08:25:14 PM
The mic functions are really simple, I could throw some together for you guys this weekend.

BTW, sypherce, is there a way to get the mic's recording's a little higher in quality? I think 0xtob has a little app out to show the mic recording at the highest level possible.


Title: Re: Some Tutorials!
Post by: Jeremysr on January 12, 2007, 10:36:06 PM
I redesigned the site. I think it looked kinda ugly before. A couple weeks ago when I accidentally replaced the sites CSS style with DSLua's documentation's CSS style, I decided it would look a lot better to look like my documentation of DSLua. ;D Tell me if you like it.

I also added the lines section to the 8-bit tutorial, and rewrote the first part of tutorial 1 for a better explanation for DSLua 0.6. Edit: Just fixed all the broken examples in the 8-bit tutorial. :)


Title: Re: Some Tutorials!
Post by: Jeremysr on January 15, 2007, 12:34:38 AM
Ok I've added a new tutorial about DSLua 0.6. I've also made a .zip file containing all the tutorials and the examples too.

http://www.bio-gaming.com/jeremy/dslua/index.php?act=tutorials


Title: Re: Some Tutorials!
Post by: jester on January 15, 2007, 08:58:00 AM
I cant wait for the Wifi Tutorial! and Mic aswell so blowing into the Mic can work on DSLua soon?


Title: Re: Some Tutorials!
Post by: Jeremysr on January 15, 2007, 01:46:34 PM
I cant wait for the Wifi Tutorial! and Mic aswell so blowing into the Mic can work on DSLua soon?

Detecting them blowing into the mic is pretty easy. Just use Mic.GetVol() to get the volume that is going into the microphone. Write a testing program that will display the value of Mic.GetVol(). Then blow into the mic and see what kind of numbers you get. Then you can hopefully detect when someone is blowing into the mic by seeing if Mic.GetVol() is close to those numbers.