TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

Request: -- script: nimscript

Open thisago opened this issue 4 years ago • 6 comments

Hello! Thanks for creating this awesome project!!

As mentioned in issue #207 the Nim is a great language for game development because it syntax is like Python and has much better performance.

And also has the Nimscript, a scripting language like Lua with syntax of Nim but runs on a VM. The Nimscript is very better than Lua (on my vision) because it has the Nim macros on it. The Nim's macros is a powerfull feature that handles the code as data and allows chage the code automatically!

See the Nimscript doc here

Edit: The Nimscript (also Nim) has a strong type system that helps the code be more organized and avoid runtime errors

thisago avatar Jul 02 '21 17:07 thisago

Hi, we will try it in the next version. Thank you

nesbox avatar Jul 03 '21 15:07 nesbox

Thank you very much!

thisago avatar Jul 03 '21 15:07 thisago

FYI, this will be indirectly supported via the new WASM support - in that you could use Nim to compile a binary WASM file and then import that into your cartridge.

joshgoebel avatar Jan 07 '22 17:01 joshgoebel

with the addition of python scripting, and as @joshgoebel mentioned existing support for nim, is there still a strong desire for this?

AlecTroemel avatar Nov 09 '23 14:11 AlecTroemel

I think that WASM support is great, but supporting plain Nim code in TIC's editor would be very good because can be edited on mobile too. But it's not needed (despite WASM4 supporting Nim through WASM too), there's a lot of supported languages and Nim can be used to compile JavaScript if don't want to use WASM. Here's an binding that I've made a time ago https://github.com/thisago/tic80

So I think that this issue can be closed for now.

thisago avatar Nov 09 '23 21:11 thisago

Now it is supported: https://github.com/nesbox/TIC-80/pull/2645

Miguel-hrvs avatar Aug 05 '24 07:08 Miguel-hrvs