mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
David Vogel
b923ee6f51
- Make it possible to free roam before capturing - Show coordinates (Also while capturing) - Disable grid updates and some other magic number adjustments
14 lines
569 B
Lua
14 lines
569 B
Lua
dofile("mods/noita-mapcap/files/init.lua")
|
|
|
|
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)
|
|
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.
|
|
end
|
|
|
|
ModMagicNumbersFileAdd("mods/noita-mapcap/files/magic_numbers.xml") -- override some game constants
|