QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

LUA coding help

This is a discussion on LUA coding help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi guys im coding an lua port of a certain game (cant say what yet) And i'm having trouble loading ...

Reply
 
LinkBack Thread Tools
Old 11-25-2006, 02:45 PM   #1
 
mussy's Avatar
 
Join Date: Sep 2006
Location: Under your moms bed
Posts: 154
Trader Feedback: 0
Default LUA coding help

Hi guys im coding an lua port of a certain game (cant say what yet)

And i'm having trouble loading a 480x272 image called background.jpg

my image does not load up i just get a black screen and some text i have included in the page can you please give me an example of the line of code i need
mussy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2006, 02:50 PM   #2
 
Join Date: Aug 2006
Posts: 1,633
Trader Feedback: 0
Default

bg = Image.load("background.jp g")
while true do
screen:clear()
screen:blit(0,0,bg)
screenrint(0,0,"sometex t",Color.new(0,0,0))
screen.waitVblankStart()
screen.flip()
end
TacticalPenguin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-25-2006, 04:33 PM   #3

Developer
 
slicer4ever's Avatar
 
Join Date: Jul 2005
Location: everywhere
Posts: 3,357
Trader Feedback: 0
Default

yea make sure you blit the image after the screen:clear()(unless screen:clear() is after screen.flip()) and before the screen.flip()
__________________
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
slicer4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-26-2006, 01:21 AM   #4
 
mussy's Avatar
 
Join Date: Sep 2006
Location: Under your moms bed
Posts: 154
Trader Feedback: 0
Default

Thanks guys cant wait to release this
mussy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
coding , lua

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 05:39 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us