{
	"name": "ev_camera",
	"events": [
		{
			"eventType": "variable",
			"name": "CAM_SMOOTH_FAC",
			"type": "number",
			"initialValue": "0.4",
			"comment": "",
			"isStatic": false,
			"isConstant": true,
			"sid": 636519686671811
		},
		{
			"eventType": "variable",
			"name": "ZOOM_SMOOTH_FAC",
			"type": "number",
			"initialValue": "0.18",
			"comment": "",
			"isStatic": false,
			"isConstant": true,
			"sid": 131059721652157
		},
		{
			"eventType": "variable",
			"name": "ZOOMED_IN",
			"type": "number",
			"initialValue": "2",
			"comment": "",
			"isStatic": false,
			"isConstant": true,
			"sid": 372714559386370
		},
		{
			"eventType": "variable",
			"name": "ZOOMED_OUT",
			"type": "number",
			"initialValue": "1.5",
			"comment": "",
			"isStatic": false,
			"isConstant": true,
			"sid": 188718554980520
		},
		{
			"eventType": "variable",
			"name": "BASE_ZOOM",
			"type": "number",
			"initialValue": "3",
			"comment": "",
			"isStatic": false,
			"isConstant": true,
			"sid": 357216929255717
		},
		{
			"eventType": "variable",
			"name": "FADE_TIME",
			"type": "number",
			"initialValue": "0.6",
			"comment": "",
			"isStatic": false,
			"isConstant": false,
			"sid": 905528936062733
		},
		{
			"eventType": "variable",
			"name": "zoomLevel",
			"type": "number",
			"initialValue": "1",
			"comment": "",
			"isStatic": false,
			"isConstant": false,
			"sid": 830221754080349
		},
		{
			"eventType": "group",
			"disabled": false,
			"title": "Zoom",
			"description": "",
			"isActiveOnStart": true,
			"children": [
				{
					"eventType": "block",
					"conditions": [
						{
							"id": "is-boolean-instance-variable-set",
							"objectClass": "camera",
							"sid": 707914764652335,
							"parameters": {
								"instance-variable": "isZoomEnabled"
							}
						}
					],
					"actions": [
						{
							"id": "set-layout-scale",
							"objectClass": "System",
							"sid": 573793709277721,
							"parameters": {
								"scale": "lerp(LayoutScale, zoomLevel, ZOOM_SMOOTH_FAC)"
							}
						}
					],
					"sid": 874154441832888,
					"children": [
						{
							"eventType": "block",
							"conditions": [
								{
									"id": "is-between-values",
									"objectClass": "System",
									"sid": 960351386483691,
									"parameters": {
										"value": "LayoutScale",
										"lower-bound": "zoomLevel - 0.05",
										"upper-bound": "zoomLevel + 0.05"
									}
								}
							],
							"actions": [
								{
									"id": "set-layout-scale",
									"objectClass": "System",
									"sid": 586669807551019,
									"parameters": {
										"scale": "zoomLevel"
									}
								}
							],
							"sid": 902276364638368
						}
					]
				},
				{
					"eventType": "block",
					"conditions": [
						{
							"id": "else",
							"objectClass": "System",
							"sid": 230769624953168
						}
					],
					"actions": [
						{
							"id": "set-layout-scale",
							"objectClass": "System",
							"sid": 582807556277780,
							"parameters": {
								"scale": "BASE_ZOOM"
							}
						}
					],
					"sid": 175153171576955
				}
			],
			"sid": 881280521236630
		},
		{
			"eventType": "group",
			"disabled": false,
			"title": "Fade functions",
			"description": "",
			"isActiveOnStart": true,
			"children": [
				{
					"functionName": "FadeIn",
					"functionDescription": "",
					"functionCategory": "",
					"functionReturnType": "none",
					"functionIsAsync": false,
					"functionParameters": [
						{
							"name": "fadeTime",
							"type": "number",
							"initialValue": "1",
							"comment": "Amount of seconds it takes to fade in",
							"sid": 291646111717749
						}
					],
					"eventType": "function-block",
					"conditions": [],
					"actions": [
						{
							"id": "create-object",
							"objectClass": "System",
							"sid": 855529717626832,
							"parameters": {
								"object-to-create": "fadeTex",
								"layer": "\"Fade\"",
								"x": "0",
								"y": "0"
							}
						},
						{
							"id": "set-size",
							"objectClass": "fadeTex",
							"sid": 265043000753716,
							"parameters": {
								"width": "ViewportRight(\"Fade\") * 2",
								"height": "ViewportBottom(\"Fade\") * 2"
							}
						},
						{
							"id": "set-fade-out-time",
							"objectClass": "fadeTex",
							"sid": 627168928117557,
							"behaviorType": "Fade",
							"parameters": {
								"fade-out-time": "fadeTime"
							}
						},
						{
							"id": "set-wait-time",
							"objectClass": "fadeTex",
							"sid": 961579891612748,
							"behaviorType": "Fade",
							"parameters": {
								"wait-time": "0"
							}
						},
						{
							"id": "set-fade-in-time",
							"objectClass": "fadeTex",
							"sid": 797489024805661,
							"behaviorType": "Fade",
							"parameters": {
								"fade-in-time": "0"
							}
						},
						{
							"id": "restart-fade",
							"objectClass": "fadeTex",
							"sid": 527320899102356,
							"behaviorType": "Fade"
						}
					],
					"sid": 348644169413194
				},
				{
					"functionName": "FadeOut",
					"functionDescription": "",
					"functionCategory": "",
					"functionReturnType": "none",
					"functionIsAsync": false,
					"functionParameters": [
						{
							"name": "fadeTime",
							"type": "number",
							"initialValue": "1",
							"comment": "Amount of seconds it takes to fade in",
							"sid": 554299941216653
						}
					],
					"eventType": "function-block",
					"conditions": [],
					"actions": [
						{
							"id": "create-object",
							"objectClass": "System",
							"sid": 892397191661681,
							"parameters": {
								"object-to-create": "fadeTex",
								"layer": "\"Fade\"",
								"x": "0",
								"y": "0"
							}
						},
						{
							"id": "set-opacity",
							"objectClass": "fadeTex",
							"sid": 482922135328336,
							"parameters": {
								"opacity": "0"
							}
						},
						{
							"id": "set-size",
							"objectClass": "fadeTex",
							"sid": 271550985091034,
							"parameters": {
								"width": "ViewportRight(\"Fade\")",
								"height": "ViewportBottom(\"Fade\")"
							}
						},
						{
							"id": "set-fade-out-time",
							"objectClass": "fadeTex",
							"sid": 283895870969234,
							"behaviorType": "Fade",
							"parameters": {
								"fade-out-time": "0"
							}
						},
						{
							"id": "set-wait-time",
							"objectClass": "fadeTex",
							"sid": 118927552663359,
							"behaviorType": "Fade",
							"parameters": {
								"wait-time": "0"
							}
						},
						{
							"id": "set-fade-in-time",
							"objectClass": "fadeTex",
							"sid": 938587501478660,
							"behaviorType": "Fade",
							"parameters": {
								"fade-in-time": "fadeTime"
							}
						},
						{
							"id": "restart-fade",
							"objectClass": "fadeTex",
							"sid": 544812335439476,
							"behaviorType": "Fade"
						}
					],
					"sid": 490672115516769
				}
			],
			"sid": 388700186490267
		},
		{
			"eventType": "group",
			"disabled": false,
			"title": "Freeze frame function",
			"description": "",
			"isActiveOnStart": true,
			"children": [
				{
					"functionName": "StartFreezeFrame",
					"functionDescription": "",
					"functionCategory": "",
					"functionReturnType": "none",
					"functionIsAsync": false,
					"functionParameters": [
						{
							"name": "timeToFreeze",
							"type": "number",
							"initialValue": "0.1",
							"comment": "",
							"sid": 373509467667478
						}
					],
					"eventType": "function-block",
					"conditions": [],
					"actions": [],
					"sid": 895053605826412,
					"children": [
						{
							"eventType": "block",
							"conditions": [
								{
									"id": "compare-two-values",
									"objectClass": "System",
									"sid": 159003274147320,
									"parameters": {
										"first-value": "fadeTex.Count",
										"comparison": 0,
										"second-value": "0"
									}
								}
							],
							"actions": [
								{
									"id": "start-timer",
									"objectClass": "SysObj",
									"sid": 278397864423078,
									"behaviorType": "Timer",
									"parameters": {
										"duration": "timeToFreeze",
										"type": "once",
										"tag": "\"freeze_frame\""
									}
								},
								{
									"id": "set-time-scale",
									"objectClass": "System",
									"sid": 825613110900354,
									"parameters": {
										"time-scale": "0"
									}
								}
							],
							"sid": 277627924765788
						}
					]
				},
				{
					"eventType": "block",
					"conditions": [
						{
							"id": "on-timer",
							"objectClass": "SysObj",
							"sid": 836232539830478,
							"behaviorType": "Timer",
							"parameters": {
								"tag": "\"freeze_frame\""
							}
						}
					],
					"actions": [
						{
							"id": "set-time-scale",
							"objectClass": "System",
							"sid": 856876014750978,
							"parameters": {
								"time-scale": "1"
							}
						}
					],
					"sid": 591120366305691
				}
			],
			"sid": 675280281869348
		}
	],
	"sid": 537747933757102
}