censored/engine.lua

25 lines
567 B
Lua

function room_scene(self) return true; end
word_simple = function(word)
return obj{
nam = '',
_word = word,
_enabled = true,
dsc = function(this)
value = ""
if (this._enabled == true) then
value = this._word
else
value = string.rep("",string.len(this._word)/2)
end
return "{".. value .."}"
end,
act = function(this)
this._enabled = not this._enabled
return true
end
}
end
newline = vobj("^^", "^^")
space = vobj(" ", " ")
signed = vobj(" ", txtr("Проверено: цензор ███████████^^"))