noita-mapcap/init.lua

14 lines
569 B
Lua
Raw Permalink Normal View History

dofile("mods/noita-mapcap/files/init.lua")
2019-10-18 14:14:06 +00:00
function OnPlayerSpawned(player_entity)
--EntityLoad("mods/noita-mapcap/files/luacomponent.xml") -- ffi isn't accessible from inside lua components, scrap that idea
modGUI = GuiCreate()
GameSetCameraFree(true)
2019-10-18 14:14:06 +00:00
end
function OnWorldPostUpdate() -- this is called every time the game has finished updating the world
wake_up_waiting_threads(1) -- Coroutines aren't run every frame in this sandbox, do it manually here.
2019-10-18 14:14:06 +00:00
end
ModMagicNumbersFileAdd("mods/noita-mapcap/files/magic_numbers.xml") -- override some game constants