Include external files?

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Include external files?

Post by cgruber »

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)
MikeHaggar
Posts: 116
Joined: Mon Jul 18, 2005 2:20 am

Post by MikeHaggar »

Something like dofile("./font.lua") u mean? ;)
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Post by cgruber »

:) Sure if that works

I don't like the documentation on lua.org...
MikeHaggar
Posts: 116
Joined: Mon Jul 18, 2005 2:20 am

Post by MikeHaggar »

I use the LUA short reference by Enrico Colombini.

http://umn.dl.sourceforge.net/sourcefor ... ref-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 ;)
cgruber
Posts: 36
Joined: Tue Sep 06, 2005 6:38 am

Post by cgruber »

Thanks for the links I'll take a look. The psp functions are pretty straight forward, the majority of my questions are lua specific.
Post Reply