Implementing scripting in a game engine
What would be the best way to implement scripting in a game engine? I've been looking at reflection and runtime code compilation but I wasn't sure if they would give the user access to the engine's libraries. I was also thinking of implementing my own custom language like what Godot does, but my engine is so simple that I think it would be overkill.
I'd like to do something similar to how big engines like Unity and Godot do it (attaching scripts to objects), is there an effective way to do that?
I'd like to do something similar to how big engines like Unity and Godot do it (attaching scripts to objects), is there an effective way to do that?
