используем game.life вместо таймера
timer не работает в tiny-instead
This commit is contained in:
parent
3070439722
commit
ed23c39eb4
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue