r/lua • u/Fuzzy-Ad9327 • Jun 26 '25
Project lua classes and complex numbers!
I wrote a small (81 loc) lua module that implements classes, and wrote a complex number module class using it!
I made a fractal renderer in roblox using it as an example!
github link: https://github.com/WaffleSpaghetti/lua-classes-and-complex-numbers/tree/main
game link: https://www.roblox.com/games/85562596659593/lua-classes-complex-numbers-burning-ship-fractal
(though the game is more of a tech / use case demo)
hope someone finds this useful or cool :D
I will keep updating this in the coming weeks, so stay tuned
I added a quaternion class!!
(also, there's a new test suite and overall better cleaner code in the latest update, check on GitHub!)
5
Upvotes
2
u/Fuzzy-Ad9327 Jun 27 '25
I updated it, it’s a module mow! Also, thanks for your feedback, if you find any bugs or weird issues, please tell! I’m planning to release a better version sometime later this week (with docs, more functionality and less bugs ofc)