This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
WeiseGuy's profile picture

Converting LUA programs to CC

Started by WeiseGuy, 30 January 2013 - 05:05 AM
WeiseGuy #1
Posted 30 January 2013 - 06:05 AM
Hello,

I'm newer to LUA and CC. I am looking at LUA programs with sprites and multiple LUA files, and was wondering if I can have these imported to CC somehow or if I take the source LUA and pastebin it, can I just drop that into a computer?

How would I do this? For example, I found pac man in LUA with sprites. I want that in a computer in MC.
GravityScore #2
Posted 30 January 2013 - 06:09 AM
That's not possible at all :(/>

CC relies on its own APIs to render things to a terminal window, which have many more limitations than an actual computer screen - Love's rendering is done completely differently and is incompatible. You'd have to re-write the program with many design changes, as the standard terminal screen is only 51 by 19.
WeiseGuy #3
Posted 30 January 2013 - 06:15 AM
Noooo, alright that's ok. I was going to convert basic to lua and lua to CC…but that is just too much. I will write my own pac man! =D