Add Lua scripting #4

Open
opened 2026-11-05 10:51:00 -04:00 by swordcube · 0 comments
Owner

lua scripting??!!? in my fnf engine!?!!?? in 2026?!!? 💥 💥

i want to add some api like this:

local thing = sprite.new()
thing:loadTexture(paths.image("thing"))
scene:add(thing)

to create objects

accessing objects that already exist in a scene will be quite odd if i chose not to use lscript

...which i might follow up on because lscript does work very well for what i would want it for

but if you have too many sprites made from lua updating at once, you start to get lag spikes because something something metatable make gc laggy idk

i wanna try to implement lua myself, not just for that reason but also because i want to learn how the lua C api works

i can wait on this though because my current hscript implementation works fine, it's just slow which using something like luajit would solve very easily if i pull it off right

lua scripting??!!? in my fnf engine!?!!?? in 2026?!!? 💥 💥 i want to add some api like this: ```lua local thing = sprite.new() thing:loadTexture(paths.image("thing")) scene:add(thing) ``` to create objects accessing objects that already exist in a scene will be quite odd if i chose not to use lscript ...which i might follow up on _because_ lscript does work very well for what i would want it for but if you have too many sprites made from lua updating at once, you start to get lag spikes because something something metatable make gc laggy idk i wanna try to implement lua myself, not just for that reason but also because i want to learn how the lua C api works i can wait on this though because my current hscript implementation works fine, it's just slow which using something like luajit would solve very easily if i pull it off right
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
swordcube/fnf-heaps#4
No description provided.