View Single Post
Old 08-22-2007   #33 (permalink)
yanko693
GamingCrazy Guru
 
Join Date: Dec 2006
Posts: 1,214
My Mood:
Credits: 13,015
Re: Lua Programming Tutorials

Quote:
Originally Posted by Luc1d View Post
Cool things mate..
I've tried these things but they didn`t go quite well..
1st when i tried the Hello World it showed the text at the up left corner but
the background was still the Lua (that chosing program thing..) so you couldn't see the writing so well..
and then when i tried the backgruond thing it should me an error:
Error: index.lua:1: Image.load: Error loading image.
press start to restart..

hope you know what the problem is and can help me
thanks

EDIT:
lol didn't put it in the write place now it's fine thx any way
for a background get a pic the size of the screen and say
background = Image.load("images/background.jpg")
then say
screen:blit(0, 0, background)
and you also have to say
screen.flip()
and to make it stay on
screen.waitVblankStart(a number here)
__________________

yanko693 is offline   Reply With Quote