- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
['run'] = function(num, skipt)
if num > 0 and num <= table.maxn(_G.levels_code.list) then
if tbl_save._.options.tutorial then
if ((_G.levels_code.list[num][2] == 1 and _G.levels_code.list[num][1] == 1) or (_G.levels_code.list[num][2] == 1 and _G.levels_code.list[num][1] == 0)) and not skipt then
game.Mission.instance():runLevel(fld.levelTutorial, 1)
mawidgets._.hud.action.set_lvl(fld.levelTutorial, 1)
mawidgets._.tips_widget.action.set('tutorial')
_G.widget_type = 'tutorial';
mawidgets._.tutorial.texts.tutorial_text:setText("Tutorial1")
elseif ((_G.levels_code.list[num][2] == 2 and _G.levels_code.list[num][1] == 1) or (_G.levels_code.list[num][2] == 5 and _G.levels_code.list[num][1] == 0)) and not skipt then
game.Mission.instance():runLevel(fld.levelTutorial, 2)
mawidgets._.hud.action.set_lvl(fld.levelTutorial, 2)
mawidgets._.tips_widget.action.set('tutorial')
_G.widget_type = 'tutorial';
mawidgets._.tutorial.texts.tutorial_text:setText("Tutorial2")
elseif ((_G.levels_code.list[num][2] == 3 and _G.levels_code.list[num][1] == 1) or (_G.levels_code.list[num][2] == 11 and _G.levels_code.list[num][1] == 0)) and not skipt then
game.Mission.instance():runLevel(fld.levelTutorial, 3)
mawidgets._.hud.action.set_lvl(fld.levelTutorial, 3)
mawidgets._.tips_widget.action.set('tutorial')
_G.widget_type = 'tutorial';
mawidgets._.tutorial.texts.tutorial_text:setText("Tutorial3")
elseif ((_G.levels_code.list[num][2] == 5 and _G.levels_code.list[num][1] == 1) or (_G.levels_code.list[num][2] == 15 and _G.levels_code.list[num][1] == 0)) and not skipt then
game.Mission.instance():runLevel(fld.levelTutorial, 4)
mawidgets._.hud.action.set_lvl(fld.levelTutorial, 4)
mawidgets._.tips_widget.action.set('tutorial')
_G.widget_type = 'tutorial';
mawidgets._.tutorial.texts.tutorial_text:setText("Tutorial4")
elseif ((_G.levels_code.list[num][2] == 6 and _G.levels_code.list[num][1] == 1) or (_G.levels_code.list[num][2] == 16 and _G.levels_code.list[num][1] == 0)) and not skipt then
game.Mission.instance():runLevel(fld.levelTutorial, 5)
mawidgets._.hud.action.set_lvl(fld.levelTutorial, 5)
mawidgets._.tips_widget.action.set('tutorial')
_G.widget_type = 'tutorial';
mawidgets._.tutorial.texts.tutorial_text:setText("Tutorial5")
else
mawidgets._.tips_widget.action.set('clear')
_G.widget_type = 0;
mawidgets._.tutorial.action.hide()
if _G.levels_code.list[num][1] == 2 and tbl_save._.options.tutorial_bonus then
mawidgets._.tutorial.texts.tutorial_text:setText("Tutorial6")
end
game.Mission.instance():runLevel(_G.levels_code.list[num][1], _G.levels_code.list[num][2])
mawidgets._.hud.action.set_lvl(_G.levels_code.list[num][1], _G.levels_code.list[num][2])
end
else
mawidgets._.tips_widget.action.set('clear')
tbl_save._.options.tutorial_bonus = false
data.WriteDataInSlot(tbl_save._)
mawidgets._.tutorial.action.hide()
game.Mission.instance():runLevel(_G.levels_code.list[num][1], _G.levels_code.list[num][2])
mawidgets._.hud.action.set_lvl(_G.levels_code.list[num][1], _G.levels_code.list[num][2])
end
else print('_G.levels_code.run -> bad level num: ', num) end
end;
Игра - головоломка, язык этого гк - Lua, в проекте - ~ 26 000 файлов.
Нет в жизни счастья.