Results 1 to 4 of 4

Thread: Help Me Please

                  
   
  1. #1

    Default Help Me Please

    i started gettin into lua i and i am trying to do this simple thing where it loads a picture and displays some text on top of the image. One thing i have figured out about lua is that it is VERY VERY VEEEERY CASE SENSITIVE. can someone tell me how to fix this code.


    --COLORS
    pink = Color.new(255, 0 , 153)
    blue = Color.new(0 , 153, 255)
    orange = Color.new(255, 102, 0)
    gray = Color.new(153, 153, 153)
    black = Color.new(0 , 0 , 0)

    -- Background Image

    background = Image.load("images/background.jpg")

    -- Text

    screenrint(200, 170, "PSP BREW" pink)
    screenrint(200, 150, "PSP BREW" blue)
    screenrint(200, 120, "PSP BREW" gray)

    -- Ending Process
    screen.flip()
    while true do
    screen.waitVblankStart()
    end


    apparently it is not working for lua player windows, help anyone?????

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

    Default

    Do you get any text appearing?
    The image doesn't show because you haven't blitted it to the screen.

    Side note: Not 100% sure on this, but I think you have to do all your rendering once per frame (ie: Every game loop). Also a lot of other languages are case sensitive.

  3. #3

    Default

    how do i do that blit thing and wat does it mean???? i just started lua with yeldarbs tutorials i dont know what that bliting is or what that game loop thing is.

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

    Default

    These tutorials should be better
    http://wiki.ps2dev.org/psp:lua_player:tutorial

Thread Information

Users Browsing this Thread

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

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
  •