Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 42

Thread: DS Lua Tutorials

                  
   
  1. #21
    DS LUA Coder Junixx's Avatar
    Join Date
    Mar 2006
    Location
    Missouri, USA
    Posts
    1,386
    Rep Power
    78

    Default

    Quote Originally Posted by Jeremysr
    There is no "GOTO" in lua, but one way to do things is put all the majour parts of your game each in their own function then call those functions. Or put your entire game in a while loop so that when you break out of the loop it will restart to the title screen.
    Hmm....darn i guess since i dont know how to use functions yet I'll try the while loop thing

    :Edit:

    TYVM! it works pefectly now

  2. #22

    Default

    Just wait...I'm writing the functions tutorial tonight. Functions are really easy to make and use.

  3. #23
    DS LUA Coder Junixx's Avatar
    Join Date
    Mar 2006
    Location
    Missouri, USA
    Posts
    1,386
    Rep Power
    78

    Default

    Alright i got the menu working with the while loop thing, which was much easier than i expected, but for the actual game i will need to use funtions because you will be pressing a button to shoot a gun...

    :Edit:

    I see funtions tut ^.^ looking at it right away!

    Hm, looks like I should re-write the script so all of my functions are first and then the game starts after all of my functions have been set up, I will work on that tomorrow, thanks for the help functions ARE pretty easy

    :Edit 2:

    Yep thats what i have to do, i just looked at the Snowball battle game again and i acctualy understood some more of it, Angor made ALOT of functions then called them to be executed at the very end of the script

    :Edit 3:

    Ok i re-wrote my entire sctript using functions and now its ALOT more organized and the menu still works perfectly now to start the actual game once i get my sprites working...

  4. #24

    Default

    I wrote a User Information tutorial, it tells you how to get system information like the clock, the calendar, the users username, birthday, colour, language.......

    Also, you might wanna look at the tutorials page ( http://www.bio-gaming.com/jeremy/dsl...?act=tutorials ) and see what tutorial 8 is called.

  5. #25
    DS LUA Coder Junixx's Avatar
    Join Date
    Mar 2006
    Location
    Missouri, USA
    Posts
    1,386
    Rep Power
    78

    Default

    W00t Wi-Fi!

  6. #26
    DCEmu Newbie
    Join Date
    Dec 2005
    Posts
    6
    Rep Power
    0

    Default PSP Lua Vs DS Lua

    Quick question, I've done Lua Development on the PSP before (check out Air Warriors if you can! ) and was wondering if DS Lua is essentially the same (as far as functionality?

    If so, I'd love to port over my Air Warriors game and dev some other DS stuff.

    Also, the DSLUA site is down, anyone know where else I can get the DS Lua progs from?

    Thanks in advance!

  7. #27
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    No it isn't. The core language is the same but the API/functionality is different.

    Like with all programs, you need to understand the hardware that you are developing for. The DS hardware is rather unqiue similar to the GBA and therefore will seem extremely odd to people who are used to PSP's LuaPlayer.

    DSLua uses the hardware of the DS, so you need to understand how the DS hardware works at least in principle to use DSLua.

  8. #28
    DCEmu Old Pro The Hombrew Hunter's Avatar
    Join Date
    Jun 2006
    Location
    Around.
    Posts
    1,549
    Rep Power
    77

    Default

    ....Hauh?

    I'll try coding, eventually. I'm in mutual pain.

  9. #29
    DCEmu Newbie
    Join Date
    Jun 2006
    Posts
    44
    Rep Power
    0

    Default

    http://brennan.amidal.com/lua/DSLua%200.5.zip

    This is the latest version of DSLua. It contains a few extras, like Jeremysr's keyboard, and part of the game I am coding (heh, just displays "adventure game" right now, the real file was on my card at the time I uploaded that).

  10. #30

    Default

    Whoa, looks like a really old version of keyboard. There's a way better one at http://www.bio-gaming.com/jeremy/dsl...p?act=keyboard

    It will only use the bottom screen, so you are free to use the top screen whenever you want.

    Also, here is the GBFS version if anyone wants it. (brennxn uploaded the CF version)

    http://www.bio-gaming.com/jeremy/dsl...a-0.5-gbfs.zip

Page 3 of 5 FirstFirst 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •