PDA

View Full Version : Help Me Please



scarface350
February 4th, 2006, 03:38
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

screen:print(200, 170, "PSP BREW" pink)
screen:print(200, 150, "PSP BREW" blue)
screen:print(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????? :confused:

yaustar
February 4th, 2006, 03:48
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.

scarface350
February 4th, 2006, 16:33
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.

yaustar
February 4th, 2006, 17:17
These tutorials should be better
http://wiki.ps2dev.org/psp:lua_player:tutorial