Page 8 of 12 FirstFirst ... 456789101112 LastLast
Results 71 to 80 of 116

Thread: Help with Lua

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

    Default

    Quote Originally Posted by fg-54
    create games for the pc, and psp...and ds...
    Then quite frankly I would NOT use Lua if you are trying to create a cross platform application. Especially with the DS in the mix. The DS does not have LuaPlayer, it uses a different Lua framework so the applications you develop for PSP (LuaPlayer) will NOT work with the DS unless major changes are made to the code.

    LuaPlayer for windows doesn't cut it, you be better off using GameMaker and the internal scripting language in the engine (which is not too dissimilar in usage as Lua).

  2. #72
    DCEmu Reviewer fg-54's Avatar
    Join Date
    Jun 2006
    Location
    gainesville
    Age
    33
    Posts
    726
    Rep Power
    73

    Default

    i ment any of them, not all of them, it would be extremly hard to make a game for all of those systems.

  3. #73
    DCEmu Old Pro BL4Z3D247's Avatar
    Join Date
    Jun 2006
    Location
    BL4Z3D 24/7 in CT
    Posts
    1,970
    Rep Power
    83

    Default

    Quote Originally Posted by Shadowblind
    I want to run a script.lua by itself. I made it from the tutorial, and since I cant run it on my computer I want to run it on PSP. How can I do that?
    just make a folder with the script.lua and anything else need to run the script, such as sprites or backgrounds and put it in the Applications folder in the Luaplayer .16 folder on ur psp

  4. #74
    DCEmu Reviewer Shadowblind's Avatar
    Join Date
    Apr 2006
    Location
    PR:SB End
    Posts
    3,796
    Rep Power
    115

    Default

    -- Lua program 1
    -- Author: Shadowblind

    -- Green Color Object
    green = Color.new(0, 255, 0)
    -- Store birth year in variable myBirthYear
    myBirthYear = 1992
    -- Store current year in currentYear
    currentYear = 2006
    -- create an empty variable
    myAge = nil
    -- Store some text in a variable
    someText = "My age is roughly 14 "
    -- Subtract myBirthYear from currentYear and store in myAge
    myAge = currentYear - myBirthYear
    -- Print our text variable and age to the screen
    screenrint(10,100,someText .. myAge,green)
    -- Buffer offscreen to onscreen
    screen.flip()
    -- Loop forever
    while true do
    screen.waitVblankStart()
    end

    will this work?

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

    Default

    Quote Originally Posted by fg-54
    i ment any of them, not all of them, it would be extremly hard to make a game for all of those systems.
    In which case:
    PC: Either stick with GameMaker and the internal scripting language in the engine (which is not too dissimilar in usage as Lua) or learn Pygame which will be FAR better for you in the long run.

    PSP: Short route: LuaPlayer and Lua in which case, start reading evilmana.com tutorials.
    Long Route: C/C++ with SDL and/or OpenGL

    DS: Short route: Lua with their homebrew Lua Framework which as far as I can see is completely different to LuaPlayer barring the base Lua language.
    Long route: C/C++ with SDL or without SDL.

  6. #76
    DCEmu Reviewer fg-54's Avatar
    Join Date
    Jun 2006
    Location
    gainesville
    Age
    33
    Posts
    726
    Rep Power
    73

    Default

    cool thanks! i should probably get to bed now... its 12:25 right now, i apreciate all of you'r help yaustar.

  7. #77

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

    Default

    Great, now I would appreciate in knowing which path you have chosen.

  9. #79
    DCEmu Reviewer fg-54's Avatar
    Join Date
    Jun 2006
    Location
    gainesville
    Age
    33
    Posts
    726
    Rep Power
    73

    Default

    wait....where is the engine? i can't find the engine on http://www.pygame.org/news.html

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

    Default

    Quote Originally Posted by fg-54
    wait....where is the engine? i can't find the engine on http://www.pygame.org/news.html
    Downloads
    http://www.pygame.org/download.shtml

Page 8 of 12 FirstFirst ... 456789101112 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
  •