forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Include external files?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Tue Sep 06, 2005 11:53 pm    Post subject: Include external files? Reply with quote

Is there away to have array in an external file and then reference it like #include in C?

My goal is to have all the maps be individual files represented by the level name (i.e 1.lua 2.lua 3.lua)
Back to top
View user's profile Send private message
MikeHaggar



Joined: 18 Jul 2005
Posts: 116

PostPosted: Wed Sep 07, 2005 1:20 am    Post subject: Reply with quote

Something like dofile("./font.lua") u mean? ;)
Back to top
View user's profile Send private message
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Wed Sep 07, 2005 1:22 am    Post subject: Reply with quote

:) Sure if that works

I don't like the documentation on lua.org...
Back to top
View user's profile Send private message
MikeHaggar



Joined: 18 Jul 2005
Posts: 116

PostPosted: Wed Sep 07, 2005 1:34 am    Post subject: Reply with quote

I use the LUA short reference by Enrico Colombini.

http://umn.dl.sourceforge.net/sourceforge/lua-users/shortref-d2.pdf

There's another shortref here:
http://www.geocities.com/keinhong/luaquickref/

But I think the top one is the best. It doesn't cover the psp special stuff though ;)
Back to top
View user's profile Send private message
cgruber



Joined: 06 Sep 2005
Posts: 36

PostPosted: Wed Sep 07, 2005 1:44 am    Post subject: Reply with quote

Thanks for the links I'll take a look. The psp functions are pretty straight forward, the majority of my questions are lua specific.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group