Add the intro cutscene, a start to the map, and various other things.

This commit is contained in:
Signal 2025-11-16 02:48:08 -05:00
parent d0c0a3ebb6
commit 1b2199705b
46 changed files with 1401 additions and 91 deletions

View file

@ -44,9 +44,6 @@ minetest.register_entity(":artifact:door", {
e.rotation.y = e.rotation.y +math.pi
e:rotate(e.rotation)
end
if e._locked then
e._no_interact = true
end
e._name = ""..math.random()
local nm = minetest.get_meta(e.object:get_pos())
if (node.name:find "_open") and not e._open then
@ -54,6 +51,12 @@ minetest.register_entity(":artifact:door", {
elseif not (node.name:find "_open") and e._open then
e:close(true)
end
if nm:get_string("locked") == "true" then
e._locked = true
end
if e._locked then
e._no_interact = true
end
doors[e.object:get_pos():round():to_string()] = e
end,
on_deactivate = function(e)