Lua interpreter mode and easings module.

This commit is contained in:
jussi
2022-11-11 19:23:35 +02:00
parent 1094b1f833
commit 921ed3b07f
17 changed files with 1213 additions and 28 deletions

View File

@@ -108,11 +108,20 @@ bool stateInit( const char *exePath ) {
if ( state->run ) {
InitAudioDevice();
state->run = luaInit();
// luaRegister();
// defineGlobals();
state->run = luaInit();
}
return state->run;
}
bool stateInitInterpret() {
state = malloc( sizeof( State ) );
luaInit();
}
void stateFree() {
for ( int i = 0; i < state->imageCount; ++i ) {
if ( state->images[i] != NULL ) {