newbie here
Found https://luau.org/ a typed superset of lua, in a similar way typescript is a typed superset of javascript, would it be possible to use it in Love2D?
All existing lua 5.1 code is compatible with luau, but luau has more features and it's more type safe
Usage with luau lang
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Usage with luau lang
I don't think so, LOVE uses standard Lua.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
-
- Party member
- Posts: 559
- Joined: Wed Oct 05, 2016 11:53 am
Re: Usage with luau lang
You can rebuild LÖVE from source to replace luajit (which is an off-shoot of lua 5.1 with some features from 5.2) with luau (which itself is an off-shoot of 5.1). However, due to the differences between luajit and luau, you may need some elbow grease to do so.
Re: Usage with luau lang
thanks, yes actually realized it's not possible as Luau has it's own VM and does not compile down to lua like moonscript or teal
got teal working with love2D, should be enough
got teal working with love2D, should be enough
Who is online
Users browsing this forum: Bing [Bot] and 14 guests