mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-07-07 15:20:28 -04:00
Initial Commit
This commit is contained in:
parent
f72b110b33
commit
c251f07ae5
18 changed files with 3290 additions and 0 deletions
24
init.lua
Normal file
24
init.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
creatura = {}
|
||||
|
||||
local path = minetest.get_modpath("creatura")
|
||||
|
||||
dofile(path.."/pathfinder.lua")
|
||||
dofile(path.."/api.lua")
|
||||
dofile(path.."/methods.lua")
|
||||
|
||||
-- Optional Files --
|
||||
|
||||
-- Optional files can be safely removed
|
||||
-- by game developers who don't need the
|
||||
-- extra features
|
||||
|
||||
local function load_file(filepath, filename)
|
||||
if io.open(filepath .. "/" .. filename, "r") then
|
||||
dofile(filepath .. "/" .. filename)
|
||||
else
|
||||
minetest.log("action", "[Creatura] The file " .. filename .. " could not be loaded.")
|
||||
end
|
||||
end
|
||||
|
||||
load_file(path, "boids.lua")
|
||||
load_file(path, "spawning.lua")
|
Loading…
Add table
Add a link
Reference in a new issue