   Game world initialization from Lua
  What is the correct way to pass objects to script files,ie implement this pseudo code:lua.do_file("script_file.lua", Map parameter, Object otherparameters);My guess: I would have make a LuaMap object type that is usable by Lua, and convert my Map object to a LuaMap and throw it on a stack before executing the script file? I am only just getting into scripting.MANY THANKS   
  I want to move this codeActor* a;for(int i = 0; i < 4; i++){a = new Actor(rand() % map->numRows(), rand() % map->numCols());a->sprite = new hgeSprite(hge->Texture_Load("media/army_s2.png"), 0xF, 0xF, float(TILE_W), float(TILE_H)); // implement the resource manageradd(a);}over to a script file.   ;  Use some wrapper generator like tolua or swig. they generate the required code to access your host application variables from lua scripts. I use SWIG, but tolua is easier to underestand for the beginner.