I am planning on creating a to-do list “app” in Roblox, and I was wondering if it would be possible to make the main script functionality somewhat portable to a Lua framework like Löve instead of starting over? I expect to rewrite a good chunk to make it run properly, but has anyone attempted to keep Luau as vanilla as possible to make that easier? Does Roact do that?
So far, I’m mostly thinking of writing a module in both Roblox and Löve (or some other framework) that both would use tointeract with UI, components, references, and so on.
This is really just a shot in the dark, but I appreciate any help or advice at this since there’s not much to be found on it.
The only things I can imagine being slightly different between Roblox and Love is a few math or string functions, but to mitigate that you could write your own “Utility” module that either directly references an existing function (such as math.max()) or create a replacement which the other engine might have.
Then, you can easily swap between frameworks just by replacing the Utility depending if you’re working in Roblox, Love or another engine
I might’ve been a bit unclear. Copying over scripts directly over won’t work with that specific library even if both have similar features. It interacts with UI, so I’d have to rewrite the way those systems use methods in Roblox from scratch if I didn’t think of it at start.
Well, Luau has services, methods, and properties which I would have to rewrite for it to function. Have a look at the API Reference Manual which cover some of these.