используем game.life вместо таймера

timer не работает в tiny-instead
This commit is contained in:
Alexander Yakovlev 2021-01-14 17:58:48 +07:00
parent 3070439722
commit ed23c39eb4
Signed by: oreolek
GPG Key ID: 1CDC4B7820C93BD3
1 changed files with 2 additions and 11 deletions

View File

@ -4,7 +4,6 @@
std.SOURCES_DIRS = { '..' }
dofile '../main3.lua'
require "timer"
instead.noautosave = true
local lust = require 'lust'
@ -19,16 +18,8 @@ function parse(text)
--return std.call(mp, 'input:text', text)
end
-- timer не работает в tiny-instead
function init()
timer:set(100)
end
game.timer = function(s)
if time() > 1 then
timer:stop();
return false
end
game.life = function(s)
lifeoff(s)
describe('игра', function()
lust.before(function()