PDA

View Full Version : LUA2C - Example C Code For Lua Or Begginer Coders



Zack
July 30th, 2008, 00:51
I made this some time ago and just gave it a little brush up today.

What is it?

Lua2C is a small C example for lua coders who are looking to move from lua to C but need a small sample to help them on there way.

What features does it have?


Mp3 Loading & Playing Example.
Wav Loading & Playing Example.
Background Scrolling Example.
FPS Counter Example.
Basic Defines Example.
Header Files Example.
Function Example.
Input Example.
Runs On PSP Phat Or Slim.


It's all aimed at being simple to follow. The main point of this is to make the introduction to C a bit less daunting for lua coders.

Don't expect this to blow you away, I am sure it is of no interest to anyone bar lua coders.

What is included in the download?

1) A compiled eboot that shows the scrolling background, plays the mp3, shows the fps & plays the sound if you press X. Press Start to quit.

2) The full source code including makefile. The code is in C.

You may use any of this code free of credit.

I took a screen shot even though it was pretty pointless :D

http://i310.photobucket.com/albums/kk437/Zackpspcoder/lua2c.jpg

Download & Give Feedback Via Comments

wolfpack
July 30th, 2008, 02:01
hmm ill have to look into this, im a beginner :)

DNS
July 30th, 2008, 07:47
Well done, sure it'll be some great help for beginners ;)

103798
March 31st, 2009, 21:18
Just 1 question: how do i get it from the source to an eboot file?, i haven't got the slightest idea

ty for the great example dude^^