include "..\global\init.scr" -- посмотрим - нужно ли это здесь.

//HINT
[make_hint HINT1]
[timer HINT_TIMER 0]
[timer PICK_ANIM 0]


[make_counter OBJ_TAKEN 0]

[load background as back]

//ISPY_START
[load Ispy\_0036_lock.png as obj_01]		[tport it 500, 342]	
[load Ispy\_0035_spring.png as obj_02]		[tport it 139, 25]	
[load Ispy\_0034_knife.png as obj_03]		[tport it 3, 242]	
[load Ispy\_0033_queen.png as obj_04]		[tport it 711, 367]	
[load Ispy\_0032_oil_can.png as obj_05]		[tport it 240, 37]	

[load Ispy\_0031_!!!.png][tport it 239, 203]

[load Ispy\_0030_bottle.png as obj_06]		[tport it 552, 467]	

[load Ispy\_0029_!!!.png][tport it 604, 427]

[load Ispy\_0028_clothespin.png as obj_07]	[tport it 173, 17]	

[load Ispy\_0027_!!!.png][tport it 161, 61]

[load Ispy\_0026_seal_press.png as obj_08]	[tport it 394, 185]	
[load Ispy\_0025_tweezers.png as obj_09]	[tport it 43, 36]	
[load Ispy\_0024_watch.png as obj_10]		[tport it 581, 367]	

[load Ispy\_0023_!!!.png][tport it 589, 398]

[load Ispy\_0022_keys.png as obj_11]		[tport it 187, 452]	
[load Ispy\_0021_pen.png as obj_12]		[tport it 520, 325]	

[load Ispy\_0020_!!!.png][tport it 534, 322]

[load Ispy\_0019_hammer.png as obj_13]		[tport it 10, 109]	

[load Ispy\_0018_!!!.png][tport it 151, 100]

[load Ispy\_0017_dynamite.png as obj_14]	[tport it 43, 310]	

[load Ispy\_0016_!!!.png][tport it 140, 330]

[load Ispy\_0015_dice.png as obj_15]		[tport it 189, 166]	
[load Ispy\_0014_stapler.png as obj_16]		[tport it 126, 475]	
[load Ispy\_0013_flask.png as obj_17]		[tport it 714, 182]	

[load Ispy\_0012_!!!.png][tport it 696, 228]

[load Ispy\_0011_flashlight.png as obj_18]	[tport it 589, 277]	

[load Ispy\_0010_!!!.png][tport it 578, 289]

[load Ispy\_0009_scissors.png as obj_19]	[tport it 0, 104]	

[load Ispy\_0007_rope.png as obj_20]		[tport it 303, 355]	

[load Ispy\_0006_!!!.png][tport it 371, 378]

[load Ispy\_0005_compasses.png as obj_21]	[tport it 186, 397]	

[load Ispy\_0004_brush.png as obj_22]		[tport it 665, 50]	
[load Ispy\_0003_brush.png as obj_23]		[tport it 185, 225]	
[load Ispy\_0008_friction_tape.png as obj_24]	[tport it 89, 71]	

[ use_alpha_mask it]
//ISPY_END


[load shadow]


//ISPY_WORK_START
[make_group BRUSH]
[set_group obj_22 BRUSH]
[set_group obj_23 BRUSH]

[make_counter OBJS 22] //Число всех объектов минуc группы одинаковых.
[make_counter OBJS_ALL 24] //Число всех объектов.
[make_counter OBJ_LIST 11]

[{OBJS_ALL}x add_ps obj_? "psystem/ispy_f.ps" center][{OBJS_ALL}x set_ps_play_time obj_? 100][{OBJS_ALL}x fast_stretch obj_? off]

[{OBJS_ALL}x use_alpha_mask obj_?]

[make_list TEMP {OBJS}]
[make_list ISPY] 

[{trunc(OBJS/2)}x drop_from_list TEMP {?}]		// остаются четные

[randomize_list TEMP]

[let {i=0}]
[while {i=i+1;i<=OBJ_LIST}]
	[put_in_list ISPY {(i)TEMP}]
	[ no_clicking_through obj_{(i)TEMP}]
[endw]

[change_in_list ISPY 1 24]
[ no_clicking_through obj_{(1)TEMP}]

[for {j=0} {j=j+1;j<=OBJ_LIST}]
	[fill_qq_with {j}]
	[$LIST_? " "]
	[tport $LIST_? {i=?-1; 136+i*92},{573}]
	[font_number $LIST_? 5]
	[color $LIST_? 255, 255, 255]
	[justify $LIST_? 0]
	[resize $LIST_? 92]
[endf]

[$OBJ_COUNT_HUD " "]
[tport $OBJ_COUNT_HUD 625,575]
[font_number $OBJ_COUNT_HUD 4]
[color $OBJ_COUNT_HUD 255, 255, 255]
[justify $OBJ_COUNT_HUD 0]
[resize $OBJ_COUNT_HUD 60]
[show $OBJ_COUNT_HUD]
//Game



/// создание списка объектов кандидатов в хинты
[make_list HINT_CANDIDATES]
[make_list HINT_CANDIDATE_LIST]
[make_counter HINT_CA_CNT 0]
[let {i=0}]
[while {i=i+1;i<=OBJ_LIST}]
	[let {j=0}]
	[while {j=j+1;j<=OBJS_ALL}]
		[let {temp=(i)ISPY}]
		[if {temp==j} or {(obj_&temp&_group_n==obj_&j&_group_n)*(obj_&j&_group_n!=0)}]
			[put_in_list HINT_CANDIDATES {j}]
			[put_in_list HINT_CANDIDATE_LIST {i}]
			[inc_counter HINT_CA_CNT]
		[endif]
	[endw]
[endw]

[write $OBJ_COUNT_HUD "#" HINT_CA_CNT]


--------------ПОПЫТКА ВТУЛИТЬ СЮДА ТУТОР------------------------------

[make_spec_obj spot]
[opacity _SPOT 0.0]

[make_spec_obj tut_dlg][tport it 195, 610]
[ opacity _TUT_DLG 0.0]

[make_counter TUTORIAL 2]

[ once note SHOW_NEXT_TUTORIAL]

---- ЭТОТ БЛОК ОТКЛЮЧИТ СТАРТ ТУТОРА, ЕСЛИ В ПРОФИЛЕ ВЫКЛЮЧИЛИ ---
[check _TUT_DLG checkbox]
[if _TUT_DLG_checkbox]
	[note NO_TUTORIAL]
[endif]

---Патроны для хинтов--- в самом низу файла---
[make_group BULLETS]
					 -- должны быть по порядку
[load ..\global\bullet01 as bullet01][tport it -100,-100][set_group it BULLETS]
[load ..\global\bullet04 as bullet02][tport it -100,-100][set_group it BULLETS]
[load ..\global\bullet05 as bullet03][tport it -100,-100][set_group it BULLETS]
[load ..\global\round as round][hide it]
[load_sound sounds\hint as hint]

[tport bullet01 592,125]
[tport bullet02 80,236]
[tport bullet03 695,418]

---Воздух---
[load air]

[load ..\global\got_it.png as got_it][tport it 216, 202][rescale it 0.5, 0.5][hide it]

[make_main_board] -- панель интерфейса
#include "..\global\init_final.scr" -- внизу файла, чтобы объекты были поверх всех


---------Звуки---------
[load_sound sounds/Ispy as Ispy]
[load_sound sounds/win_mg as win]
