Posted Feb 21, 2007 at 08:38AM by Tim Y. Listed in: Homebrew Development, How-To Tags: Lua, Glynnder
Ó

Lua Devkit screenshot - Image 1 Ever wanted to know how to code in lua? Homebrew developer Glynnder has just announced that in line with his recent coding break, he has set up a tutorial for lua coding over at the boards. Now, before you get started on the (free) session, be reminded that you will need the following tools:

  • The latest version of Lua Devkit
  • Lua Player (preferably versions v0.16, v0.17DK2, v0.20, or v0.20MOD3
  • Notepad++ (in case Lua Devkit doesn't work)
Lua coding provides a relatively simple interface to work with, hence making it a favorite for newcomers just getting used to coding for a PSP. As Glynnder explains comparisons of "C" and Lua codes:
  • "#include int main() { printf("hello world"); return 0;} That is 'hello world' in C"
  • "print("hello world")  That is 'hello world' in lua"
There's also the long list of heavy-hitting lua games that are out as of late, like Quest of Link by Zion. For now, anybody who wishes to learn the ropes of PSP coding in Lua can access Glynnder's tutorial via the discuss link. Enjoy!

Discuss: [Lua Tutorial]


Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:


9 Comments


Sort by:
   by wooot (Unregistered) - 2007-02-21
 » Que loco

wow another type for the Lua codign yeah

   by Sniper78 - 2007-02-21
 » kool

kool this is kool

   by AlucardZero (Unregistered) - 2007-02-21
 » Im gonna start making homebrew

But I do need to know... Is C++ better? is it harder to code? And does it give me more control?


   Re: Pal (Unregistered) - 2007-02-21
 » Yes

C++ is definitely more powerful, but as you guessed, has a steeper learning curve. It's not a bad idea however to get your feet wet with Lua.
   by Advertising -
   by MickMog - 2007-02-21
 » lua looks easier by far

if you cant read above youll have probs wi both AlucardZero;-)

heres the example between the two........
# "#include int main() { printf("hello world"); return 0;} That is 'hello world' in C"
# "print("hello world") That is 'hello world' in lua"


   Re: AlcuardZero (Unregistered) - 2007-02-21
 » Actually

I've been scripting Actionscript for flash games, it has the same layout as Java, and C++ what with the () and {} and ; and all...

Like

onClipEvent(enterFrame){
play();
}

Stuff like that.
   by Firestorm (Unregistered) - 2007-02-21
 » Nice work

Wow. Nice tut. Sounds like it's pretty easy to do. I really want to try it later

   by adog (Unregistered) - 2007-02-21
 » I did some lua games then got bored

LUA is an alright language but I already know c++ to an extent, I was only using lua because you can run the same game on both the pc and psp to debug.c++ is much better and now I'm making a game on the lte engine.

   by hj (Unregistered) - 2007-02-21
 » hg

hjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
kk
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k
k



The QJ.net Network RSS Feeds
QJ Forums
PC Gaming
Sony PSP
PlayStation 3
Xbox 360
Nintendo DS
Nintendo Wii
Blog of Blogs Feed / PDA
QJ.NET RSS / PDA
Gaming Consoles Feed / PDA
Nintendo DS RSS / PDA
PlayStation 3 RSS / PDA
PSP Updates RSS / PDA
Wii RSS / PDA
Xbox 360 RSS / PDA
PC Gaming Feed / PDA
MMORPG RSS / PDA
Personal Computer Games RSS / PDA
World of Warcraft RSS / PDA
Technology Feed / PDA
Apple RSS / PDA
iPhone - iPod Touch RSS / PDA
Add QJ.NET
Add to My Yahoo!
Google Reader Subscribe with Bloglines
Add  to your Kinja digest Subscribe in NewsGator Online
Subscribe with Pluck RSS reader Add 'www.qj.net' to Newsburst from CNET News.com
Subscribe with SearchFox RSS del.icio.us www.qj.net
Add to Technorati Favorite! Add to My AOL
furl! it Stumble for Treehugger!

 Username: 
 Password:
Forgot password
New user registration



Categories
Emulators
Titles
Archives