I design simple games as a hobby. For my new project, I want some parts to be scriptable. I am familiar with python, but not against learning new languages. Here is the question:
I plan to implement path detection, field of view, conflict detection, etc. in C ++, but I want to use scripts for authorized AI machines, event scripts. What structure is used for this kind of work? I suppose I can get a C ++ program to run a python process, which in turn calls C ++ methods, but it seems inefficient. Another idea is to create a library that will be called from python, which is also not very attractive. What is the usual way to do this (except for writing your own language and parser?) I heard that lua is popular for embedding in C programs.
source
share