--[[

PROGRAM NAME:	BLANK
VERSION:		4.0
AUTHOR:			KARIS (2024)

This file is part of BLANK

	BLANK is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation.

	BLANK is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

	Thanks to Matthew P. Ownby, Scott Duensing, RDG, Bladescater, DirtBagXon.

	YOU CAN EDIT THIS FILE TO CREATE YOUR OWN GAME IN A FEW HOURS! 

	If you want to create your own Laserdisc game using SINGE, you just need to have some videos and then to edit this file. 
	It's really easy, most of the work is already done. Just read my comments. The file is quite long but you probably 
	don't need to fill everything.

]]--


-------------------------
-- 1. General settings --
-------------------------

MovieFPS = 23.976								-- Number of frames per second of your movies (used for timed actions).

dofile("./KimmyScript/Script/globals.singe")	-- Don't touch this line!

altCfg = false 									-- If you're making 2 versions of the same game: false for the main version and true for the Alt.

												-- Advanced Settings (like scoring, type of games, etc) are now located in Script/addons.singe
												-- That's because in most case you don't need to touch them.	

------------------------------------------------------------------------
-- 2. Starting and ending frames for the various elements of the game --
------------------------------------------------------------------------
													
-- Intro frames --
												-- For this part, you just need to adjust the frames values.
offsetTitle = 0									-- Title start frame (short video with the logo).
offsetTitleend = 148							-- End frame of the title video. 

offsetIntro01 = 164								-- Attract video start frame.
offsetIntro01end = 1512							-- End frame of the Attract video #1.

offsetIntro02 = 75627							-- Attract video #2 start frame (if you've got only one : match title or Intro01).
offsetIntro02end = 75706						-- End frame of the Attract video #2.

offsetIntro03 = 0	 	  						-- You can have a third attract video.
offsetIntro03end = 148							-- I've got only 1 so i just matched The rankings video values.

offsetIntroGame = 0   							-- Optional: a sequence played only when the game starts
offsetIntroGameend = 0							-- Leave to zero if you don't have such sequence


-- Menu frames --

offsetMenus = 74990								-- Menu video start frame (continue, high score, game over, etc).														
												-- Now we set the frames for the menu video.
frameOptions = offsetMenus +0					-- Frame for the background picture of the Service Menu.
frameVictory = offsetMenus +3					-- Frame for the picture shown when the game is completed.
frameSave = offsetMenus +6						-- Frame for the background picture of the Save Menu.
frameRankings =offsetMenus +9					-- Frame for the background picture of the Top 10.
frameControls = offsetMenus +12					-- Frame for the picture with instructions for key/buttons (appear between attract videos). 
frameSpecial = offsetMenus +15					-- Frame to show special moves (you can replace with same value than frameCommands).
frameSecret = offsetMenus +18					-- Frame for the "secret level" (if you finish the game with only one life).
frameTrophy = offsetMenus +21					-- Frame for the trophies (optional).
frameHints = offsetMenus + 24					-- Frame for the hints (optional).
frameQuit = offsetMenus +27						-- Frame for the Quit screen.
frameNewGame = offsetMenus +30					-- Frame for the New Game Screen.

-- Game Frames --

offsetGameOver = 75038							-- Positions of the Game over #1 video in the menus (regular ending).
offsetGameOverend = 75120

offsetGameOverAlt = 75136						-- Positions of the Game over #2 video in the menus (happy ending, like high sore).
offsetGameOverAltend = 75612					-- You can also copy the values of game over #1.

offsetNewHScore = 75940							-- Positions of the High score announcement video.
offsetNewHScoreend = 75970						-- Not too long

offsetEnterHScore = 75971						-- Positions of the video for entering High Scores (quite long to give enough time).
offsetEnterHScoreend = 76864					-- This video is quite long to grant enough time to enter the name.

offsetRankings = 76880							-- Positions of the video for Rankings (after High Score).
offsetRankingsend = 77068						-- If you don't have this, replace with the values of NewHscore (above)

offsetContinue = 77084							-- Positions of the Continue video (quite long to give enough time for the player).
offsetContinueend = 78163

offsetClear = 75722								-- Positions of the video after clearing a level (can be a single frame).
offsetClearend = 75842				

offsetGetReady = 75627							-- Position of the (optional) resurrect video. 
offsetGetReadyEnd = 75657						-- Example of get ready video: Dirk appears in Dragon's Lair

offsetSupDeath = 78179							-- Position of the (optional) extra death video. 
offsetSupDeathEnd = 78249						-- Example of extra death video: Borf laughing in Space Ace. 

offsetQuit = 0									-- Position of the (optional) Quit video. 
offsetQuitend = 1	

offsetMovieEnd = 74975							-- Last frame of the last level. Used by Movie mode.


-- Death frames --

totalDeath = 4									-- Total number of death scenes.
offsetDeath = 78270								-- Start frame for the death video.

Death[1] = {offsetDeath + 0, offsetDeath +10}	-- The following lines define the positions for different death scenes. You need at least Death[1].		
Death[2] = {offsetDeath +20, offsetDeath +30}	-- For each death, the first number is the beginning of death scene, the second number is the end.
Death[3] = {offsetDeath +40, offsetDeath +50}	-- This is Death #3 video, you can add an unlimited number of deaths.
Death[4] = {offsetDeath +60, offsetDeath +70}	-- Death #4 and so on...


------------------------------------------------------------------------------------------------------------------------------
-- 3. List of Levels (Title, Start Frame, End of Intro Clip, Total Scenes, Mirror, Death Mirror, Replay, Select (optional)) --
------------------------------------------------------------------------------------------------------------------------------

finalstage = 5	     		     								-- Last stage of the story. Prevent the game to go to a level that does not exist.
PlayOrder = {1,2,3,4,5}											-- Normal order of play for the levels.
AllowSecret = false		  										-- If you have a "secret level" video then: replace false by true.
RelativeFrames = true 											-- True if frame 1 starts with each level. False if frame 1 is the disc start.	

																-- Informations about the Levels:	
Level[1] = {"Title 1", 9749, 9984, 2, 0, 0, -1} 				-- Title, Start Frame, End of Intro Clip, Total Scenes, Mirror, Death Mirror, Replay. 
Level[2] = {"Title 2", 1302, 15232, 8, 0, 0, -1}				-- Each level has one line with those informations.
Level[3] = {"Title 3", 20787, 21164, 13, 0, 0, -1}				-- Replay -1 is default (loop), 0 no replay, 1 is one replay now.
Level[4] = {"Title 4", 27789, 27847, 9, 0, 0, -1}				-- Higher values means 1 replay later (value is the position).		
Level[5] = {"Title 5", 34945, 34946, 10, 0, 0, -1}				-- The total number of Levels lines must match finalstage (here 5).
Level[levelSecret] = {"Secret Lvl", 78327, 78447, 4, 0, 0, -1}  -- Secret Level infos (just for demo: useless if you don't have a secret level)


------------------------------------------------------------------------------------
-- 4. List of moves for each level, by scene (StartFrame, EndFrame, MOVE, Death#) --
------------------------------------------------------------------------------------

-- A scene is a list of moves you need to complete without "dying" in order to advance to the next scene.
-- If you die during a scene, you restart this scene (though you can alter this in the game's menu).
-- Basic moves: UP, DOWN, LEFT, RIGHT, BUTTON1, BUTTON2, BUTTON3, UPLEFT, UPRIGHT, DOWNLEFT, DOWNRIGHT.
-- COMBO (2 Basic Moves at a same time), MASH (hit one or two basic moves quickly), MULTI (Sequence of Basic moves).  
-- LOOP (all kind of loops with the Stick), HOLD (hold one basic move), LETGO (release the thing you HOLD), SKIP (skip some narrative frames).
-- Advanced Moves: CHOOSE, TIMED, PATH, YESNO, TOSCENE, TOLEVEL, WAY (RTFM!!!)

function setupMoves(thisLevel, thisScene)	

	if thisLevel == 1 then 										-- We begin with Level 1 (which has 2 scenes, as defined in part 3)
	
		if thisScene == 1 then 									-- And Scene 1					

			sceneStart = 236									-- The scene 1 starts at frame 236
			sceneEnd   = 2047									-- And ends at frame 2047
			totalMoves = 10										-- Scene 1 has 10 moves

			move[1] = {271, 286, UP, 4}							-- Move 1 between frames 271 and 286, the player must go UP. If not Death 4. 
			move[2] = {321, 514, SKIP, 0}						-- Move 2 is just a SKIP (death is irrelevant).					
			move[3] = {709, 724, LEFT, 4}						-- 15 is a good starting point for the lenght of a move. 10 is quite short.
			move[4] = {825, 1134, SKIP, 0}				
			move[5] = {1279, 1294, LEFT, 23}				
			move[6] = {1309, 1324, RIGHT, 23}
			move[7] = {1362, 1377, UP, 23}			
			move[8] = {1435, 1448, BUTTON1, 14}											
			move[9] = {1535, 1902, SKIP, 0}
			move[10] = {1968, 1983, DOWN, 14}					-- Move 10 is the last move of the scene (as defined earlier).

		elseif thisScene == 2 then 								-- Now scene 2					

			sceneStart = 2048									-- Scene starts at 2048 (it's just where the previous scene ends +1).		
			sceneEnd   = 2249									-- And so on... 
			totalMoves = 5

			move[1] = {2090, 2103, LEFT, 4}
			move[2] = {2110, 2123, UPRIGHT, 3}			
			move[3] = {2133, 2145, ACTLEFT, 6}
			move[4] = {2152, 2172, HOLDLEFT, 5}
			move[5] = {2175, 2181, LETGO, 3}
									
		end 													-- We made 2 scenes, this Level is finished.

	elseif thisLevel == 2 then									-- Now Level 2. Exact same process than level 1.

		if thisScene == 1 then   										

			sceneStart = 2213
			sceneEnd   = 2720
			totalMoves = 4

			move[1] = {2229, 2242, DOWN, 14}
			move[2] = {2305, 2318, RIGHT, 23}
			move[3] = {2411, 2424, LEFT, 12}
			move[4] = {2508, 2521, RIGHT, 12}
									
							
		elseif thisScene == 2 then
		
			sceneStart = 2721
			sceneEnd   = 3616
			totalMoves = 7

			move[1] = {2835, 2848, DOWN, 14}
			move[2] = {2946, 2959, BUTTON1, 14}
			move[3] = {2985, 2998, RIGHT, 14}
			move[4] = {3032, 3045, LEFT, 9}
			move[5] = {3257, 3270, DOWN, 9}
			move[6] = {3292, 3305, RIGHT, 8}
			move[7] = {3394, 3407, DOWN, 8}
						
			
		elseif thisScene == 3 then
		
			sceneStart = 3617
			sceneEnd   = 4279
			totalMoves = 5

			move[1] = {3690, 3702, DOWN, 8}
			move[2] = {3743, 3770, MASHMIN, 7}
			move[3] = {3773, 3783, RIGHT, 9}
			move[4] = {3800, 3829, HOLDRIGHT, 10}
			move[5] = {3876, 3889, ACTDOWN, 8}
			

		elseif thisScene == 4 then   				
		
			sceneStart = 4280
			sceneEnd   = 4799
			totalMoves = 10

			move[1] = {4310, 4332, MASH, 8}
			move[2] = {4340, 4350, ACTDOWN, 8}
			move[3] = {4385, 4395, LEFT, 7}
			move[4] = {4400, 4410, ACTUP, 8}
			move[5] = {4523, 4535, BUTTON1, 8}
			move[6] = {4586, 4599, DOWN, 8}
			move[7] = {4620, 4633, UP, 7}
			move[8] = {4685, 4710, MASH, 8}
			move[9] = {4723, 4731, RIGHT, 8}
			move[10] = {4733, 4742, ACTUP, 8}

		elseif thisScene == 5 then   				
		
			sceneStart = 4800
			sceneEnd   = 5241
			totalMoves = 9	

			move[1] = {4834, 4855, MASH, 9}
			move[2] = {4871, 4881, ACTLEFT, 9}
			move[3] = {4902, 4940, HOLDRIGHT, 10}
			move[4] = {4989, 5002, ACTDOWN, 8}
			move[5] = {5007, 5020, BUTTON1, 8}
			move[6] = {5082, 5092, RIGHT, 8}
			move[7] = {5094, 5103, ACTRIGHT, 10}
			move[8] = {5116, 5138, HOLDLEFT, 9}
			move[9] = {5148, 5158, UP, 10}
			
		elseif thisScene == 6 then   				
		
			sceneStart = 5242
			sceneEnd   = 5726
			totalMoves = 6

			move[1] = {5280, 5293, RIGHT, 8}
			move[2] = {5338, 5351, LEFT, 7}
			move[3] = {5373, 5386, ACTRIGHT, 8}
			move[4] = {5388, 5398, LEFT, 8}
			move[5] = {5403, 5413, ACTUP, 8}
			move[6] = {5544, 5557, BUTTON1, 8}

		elseif thisScene == 7 then   				
		
			sceneStart = 5727
			sceneEnd   = 6899
			totalMoves = 8

			move[1] = {5790, 5805, BUTTON1, 10}
			move[2] = {5900, 5913, UP, 10}	
			move[3] = {5940, 5953, DOWN, 10}
			move[4] = {6065, 6080, UP, 10}
			move[5] = {6187, 6200, DOWN, 10}
			move[6] = {6287, 6302, UP, 10}
			move[7] = {6683, 6696, RIGHT, 14}
			move[8] = {6857, 6870, UP, 14}
		
		elseif thisScene == 8 then   				
		
			sceneStart = 6900
			sceneEnd   = 7752
			totalMoves = 9

			move[1] = {6930, 6944, DOWN, 14}
			move[2] = {7058, 7071, RIGHT, 14}
			move[3] = {7105, 7118, DOWN, 14}
			move[4] = {7289, 7302, UP, 14}
			move[5] = {7317, 7330, RIGHT, 14}
			move[6] = {7347, 7360, LEFT, 23}
			move[7] = {7372, 7385, UP, 23}
			move[8] = {7446, 7459, LEFT, 23}	
			move[9] = {7719, 7732, UP, 23}	

		end

	elseif thisLevel == 3 then

		if thisScene == 1 then   										

			sceneStart = 378
			sceneEnd   = 775
			totalMoves = 5

			move[1] = {419, 432, RIGHT, 14}
			move[2] = {487, 500, LEFT, 14}
			move[3] = {626, 638, DOWN, 14}
			move[4] = {683, 696, BUTTON1, 14}
			move[5] = {719, 732, LEFT, 17}
							
		elseif thisScene == 2 then
		
			sceneStart = 776
			sceneEnd   = 1332
			totalMoves = 8
			
			move = nil; move = {}
			move[1] = {859, 943, HOLDUP, 22}
			move[2] = {983, 994, RIGHT, 20}
			move[3] = {996, 1005, LEFT, 21}
			move[4] = {1016, 1055, MASH, 22}
			move[5] = {1096, 1108, RIGHT, 20}
			move[6] = {1127, 1210, MASH, 20}
			move[7] = {1228, 1238, RIGHT, 20}
			move[8] = {1299, 1309, RIGHT, 20}
					
		elseif thisScene == 3 then
		
			sceneStart = 1333
			sceneEnd   = 1899
			totalMoves = 9

			move[1] = {1355, 1367, DOWN, 22}
			move[2] = {1400, 1412, RIGHT, 20}
			move[3] = {1419, 1530, HOLDRIGHT, 20}
			move[4] = {1552, 1562, RIGHT, 20}
			move[5] = {1591, 1612, MASH, 22}
			move[6] = {1650, 1675, HOLDUP, 22}
			move[7] = {1700, 1760, MASH, 22}
			move[8] = {1765, 1790, HOLDUP, 22}
			move[9] = {1810, 1822, LEFT, 22}
			
		elseif thisScene == 4 then   				
		
			sceneStart = 1900
			sceneEnd   = 2259
			totalMoves = 5

			move[1] = {1924, 1936, LEFT, 21}
			move[2] = {1980, 1992, UP, 21}
			move[3] = {2113, 2123, LEFT, 21}
			move[4] = {2190, 2202, UP, 21}
			move[5] = {2240, 2250, DOWNRIGHT, 20}

		elseif thisScene == 5 then   				
		
			sceneStart = 2260
			sceneEnd   = 2426
			totalMoves = 8	

			move[1] = {2279, 2289, DOWN, 22}
			move[2] = {2319, 2353, MASH, 22}
			move[3] = {2365, 2375, LEFT, 22}
			move[4] = {2377, 2386, RIGHT, 22}
			move[5] = {2388, 2399, RIGHT, 22}
			move[6] = {2401, 2410, RIGHT, 22}
			move[7] = {2412, 2417, LEFT, 22}
			move[8] = {2419, 2424, RIGHT, 22}
		
		elseif thisScene == 6 then   				
		
			sceneStart = 2427
			sceneEnd   = 2527
			totalMoves = 6

			move[1] = {2446, 2452, RIGHT, 22}
			move[2] = {2458, 2466, LEFT, 22}
			move[3] = {2468, 2473, LEFT, 22}
			move[4] = {2475, 2480, RIGHT, 22}
			move[5] = {2487, 2495, RIGHT, 22}
			move[6] = {2497, 2503, LEFT, 22}
			
		elseif thisScene == 7 then   				
		
			sceneStart = 2528
			sceneEnd   = 2959
			totalMoves = 6

			move[1] = {2572, 2593, HOLDUP, 22}
			move[2] = {2644, 2679, MASHMAX, 22}
			move[3] = {2692, 2715, MASHMAX, 22}
			move[4] = {2742, 2785, HOLDRIGHT, 20}
			move[5] = {2850, 2863, RIGHT, 20}
			move[6] = {2933, 2946, UP, 22}
			
		elseif thisScene == 8 then   				
		
			sceneStart = 2960
			sceneEnd   = 3518
			totalMoves = 7

			move[1] = {2980, 3055, HOLDRIGHT, 20}
			move[2] = {3066, 3079, RIGHT, 20}
			move[3] = {3130, 3140, BUTTON1, 18}
			move[4] = {3194, 3241, HOLDUP, 22}
			move[5] = {3363, 3376, UP, 27}
			move[6] = {3391, 3445, MASHMAX, 27}
			move[7] = {3451, 3464, RIGHT, 27}
			
		elseif thisScene == 9 then   				
		
			sceneStart = 3519
			sceneEnd   = 4671
			totalMoves = 6

			move[1] = {3611, 3624, LEFT, 16}
			move[2] = {3740, 3753, LEFT, 16}
			move[3] = {3800, 3814, UP, 17}
			move[4] = {3873, 4193, HOLDRIGHT, 27}
			move[5] = {4281, 4401, SKIP, 0}
			move[6] = {4456, 4657, HOLDUP, 16}

		elseif thisScene == 10 then   				
		
			sceneStart = 4672
			sceneEnd   = 5249
			totalMoves = 9

			move[1] = {4710, 4723, DOWN, 25}
			move[2] = {4748, 4761, DOWNRIGHT, 17}
			move[3] = {4795, 4808, RIGHT, 26}
			move[4] = {4916, 4963, HOLDUP, 16}
			move[5] = {4980, 4993, RIGHT, 26}
			move[6] = {5037, 5047, LEFT, 25}
			move[7] = {5052, 5062, RIGHT, 26}
			move[8] = {5065, 5075, LEFT, 25}
			move[9] = {5122, 5162, HOLDUP, 17}
			
		elseif thisScene == 11 then   				
		
			sceneStart = 5250
			sceneEnd   = 6040
			totalMoves = 15

			move[1] = {5263, 5276, DOWNRIGHT, 17}
			move[2] = {5313, 5323, LEFT, 25}
			move[3] = {5324, 5336, RIGHT, 26}
			move[4] = {5338, 5351, LEFT, 25}
			move[5] = {5353, 5365, RIGHT, 26}
			move[6] = {5367, 5379, LEFT, 25}
			move[7] = {5381, 5393, RIGHT, 26}
			move[8] = {5395, 5413, LEFT, 25}
			move[9] = {5418, 5431, UP, 17}
			move[10] = {5455, 5505, HOLDBUT, 25}
			move[11] = {5523, 5536, BUTTON1, 26}
			move[12] = {5546, 5559, BUTTON1, 26}
			move[13] = {5576, 5589, UPLEFT, 16}
			move[14] = {5618, 5631, LEFT, 16}
			move[15] = {5757, 5942, SKIP, 0}

		elseif thisScene == 12 then   				
		
			sceneStart = 6041
			sceneEnd   = 6628
			totalMoves = 7

			move[1] = {6185, 6198, UPLEFT, 16}
			move[2] = {6280, 6292, RIGHT, 17}
			move[3] = {6309, 6321, LEFT, 16}
			move[4] = {6338, 6350, UP, 16}
			move[5] = {6423, 6435, LEFT, 16}
			move[6] = {6493, 6566, HOLDDOWN, 25}
			move[7] = {6602, 6615, BUTTON1, 16}
			
		elseif thisScene == 13 then   				
		
			sceneStart = 6629
			sceneEnd   = 6987
			totalMoves = 6

			move[1] = {6642, 6655, UP, 14}
			move[2] = {6704, 6717, UP, 14}
			move[3] = {6724, 6737, RIGHT, 14}
			move[4] = {6796, 6809, LEFT, 14}
			move[5] = {6919, 6932, UP, 14}
			move[6] = {6935, 6948, LEFT, 14}
							
		end

	elseif thisLevel == 4 then

		if thisScene == 1 then   										

			sceneStart = 59
			sceneEnd   = 1131
			totalMoves = 10

			move[1] = {108, 121, DOWNLEFT, 14}
			move[2] = {245, 258, LEFT, 25}
			move[3] = {382, 395, RIGHT, 25}
			move[4] = {473, 486, LEFT, 16}
			move[5] = {676, 689, RIGHT, 16}
			move[6] = {730, 743, UP, 25}
			move[7] = {783, 796, BUTTON1, 25}
			move[8] = {832, 845, LEFT, 16}
			move[9] = {1001, 1014, LEFT, 16}
			move[10] = {1081, 1094, ACTDOWN, 25}
									
		elseif thisScene == 2 then
		
			sceneStart = 1132
			sceneEnd   = 1828
			totalMoves = 9

			move[1] = {1162, 1262, HOLDLEFT, 16}
			move[2] = {1300, 1468, SKIP, 0}
			move[3] = {1506, 1518, LEFT, 16}
			move[4] = {1578, 1588, RIGHT, 17}
			move[5] = {1728, 1740, LEFT, 16}
			move[6] = {1748, 1759, ACTLEFT, 16}
			move[7] = {1771, 1784, RIGHT, 17}
			move[8] = {1786, 1797, DOWN, 26}
			move[9] = {1810, 1823, BUTTON1, 16}
			
		elseif thisScene == 3 then   				
		
			sceneStart = 1829
			sceneEnd   = 2365
			totalMoves = 7

			move[1] = {1913, 1926, RIGHT, 25}
			move[2] = {1994, 2005, RIGHT, 11}
			move[3] = {2039, 2050, RIGHT, 17}
			move[4] = {2058, 2069, UP, 25}
			move[5] = {2095, 2155, MASH, 17}
			move[6] = {2166, 2246, HOLDRIGHT, 17}
			move[7] = {2262, 2274, ACTUP, 17}

		elseif thisScene == 4 then   										

			sceneStart = 2382
			sceneEnd   = 3159
			totalMoves = 5

			move[1] = {2503, 2516, DOWN, 14}
			move[2] = {2710, 2723, BUTTON1, 14}
			move[3] = {2848, 2861, UP, 14}
			move[4] = {2889, 2902, UP, 14}
			move[5] = {2958, 2971, UP, 14}
			

		elseif thisScene == 5 then
		
			sceneStart = 3160
			sceneEnd   = 3613
			totalMoves = 5

			move[1] = {3269, 3284, LEFT, 14}
			move[2] = {3298, 3311, RIGHT, 14}
			move[3] = {3385, 3398, UP, 16}
			move[4] = {3413, 3429, LEFT, 16}
			move[5] = {3467, 3480, RIGHT, 16}
					

		elseif thisScene == 6 then   				
		
			sceneStart = 3614
			sceneEnd   = 4196
			totalMoves = 5

			move[1] = {3635, 3648, UP, 24}
			move[2] = {3657, 3672, DOWN, 14}
			move[3] = {3679, 3692, LEFT, 16}
			move[4] = {3735, 3748, RIGHT, 25}
			move[5] = {3799, 4128, HOLDBUT, 31}
			

		elseif thisScene == 7 then   				
		
			sceneStart = 4197
			sceneEnd   = 4713
			totalMoves = 7

			move[1] = {4324, 4339, LEFT, 16}
			move[2] = {4372, 4385, BUTTON1, 16}
			move[3] = {4463, 4476, DOWN, 16}
			move[4] = {4531, 4546, BUTTON1, 16}
			move[5] = {4625, 4638, UP, 16}
			move[6] = {4653, 4666, BUTTON1, 16}
			move[7] = {4699, 4712, ACTLEFT, 16}
					

		elseif thisScene == 8 then   				
		
			sceneStart = 4714
			sceneEnd   = 5265
			totalMoves = 5

			move[1] = {4732, 4747, DOWNLEFT, 31}
			move[2] = {4773, 4786, LEFT, 31}
			move[3] = {4850, 4863, UP, 32}
			move[4] = {4955, 4968, DOWN, 17}
			move[5] = {5185, 5198, ACTRIGHT, 16}
			

		elseif thisScene == 9 then   				
		
			sceneStart = 5266
			sceneEnd   = 7143
			totalMoves = 8

			move[1] = {5273, 5286, DOWN, 16}
			move[2] = {5454, 5468, RIGHT, 16}
			move[3] = {5604, 5742, HOLDBUT, 11}
			move[4] = {6021, 6034, BUTTON1, 17}
			move[5] = {6472, 6485, BUTTON1, 17}
			move[6] = {6763, 6776, DOWN, 17}
			move[7] = {6997, 7010, DOWN, 14}
			move[8] = {7032, 7045, LEFT, 14}
				
		end

	elseif thisLevel == 5 then

		if thisScene == 1 then

			sceneStart = 2
			sceneEnd   = 892
			totalMoves = 7
			
			
			move[1] = {59, 72, DOWN, 14}
			move[2] = {148, 161, UP, 23}
			move[3] = {352, 365, RIGHT, 23}
			move[4] = {493, 506, ACTLEFT, 32}
			move[5] = {532, 578, HOLDRIGHT, 32}
			move[6] = {669, 682, UP, 14}
			move[7] = {731, 744, RIGHT, 31}

		elseif thisScene == 2 then

			sceneStart = 893
			sceneEnd   = 1164
			totalMoves = 5
			
			move[1] = {968, 981, UP, 23}		
			move[2] = {1041, 1090, HOLDUP, 15}
			move[3] = {1100, 1112, LEFT, 31}
			move[4] = {1120, 1133, LEFT, 32}
			move[5] = {1143, 1156, DOWNRIGHT, 31}
			
		elseif thisScene == 3 then

			sceneStart = 1165
			sceneEnd   = 1634
			totalMoves = 7
					
			move[1] = {1205, 1218, ACTUP, 24}
			move[2] = {1259, 1304, HOLDUP, 32}
			move[3] = {1322, 1335, ACTRIGHT, 14}
			move[4] = {1371, 1384, DOWN, 31}
			move[5] = {1410, 1536, HOLDLEFT, 31}
			move[6] = {1569, 1582, DOWN, 31}
			move[7] = {1610, 1623, UP, 15}
			
		elseif thisScene == 4 then

			sceneStart = 1635
			sceneEnd   = 1910
			totalMoves = 5
					
			move[1] = {1655, 1690, MASH, 31}
			move[2] = {1707, 1720, ACTRIGHT, 31}
			move[3] = {1750, 1790, MASH, 31}
			move[4] = {1800, 1810, LEFT, 31}
			move[5] = {1841, 1854, ACTUP, 31}

		elseif thisScene == 5 then

			sceneStart = 1911
			sceneEnd   = 2246
			totalMoves = 8
					
			move[1] = {1962, 1975, BUTTON1, 14}
			move[2] = {2000, 2077, HOLDBUT, 14}
			move[3] = {2089, 2099, RIGHT, 32}
			move[4] = {2120, 2132, LEFT, 31}
			move[5] = {2144, 2157, RIGHT, 32}
			move[6] = {2188, 2201, UP, 31}
			move[7] = {2208, 2218, LEFT, 31}
			move[8] = {2222, 2232, DOWN, 31}

		elseif thisScene == 6 then

			sceneStart = 2247
			sceneEnd   = 2637
			totalMoves = 7
					
			move[1] = {2260, 2275, BUTTON1, 14}
			move[2] = {2308, 2321, ACTLEFT, 14}
			move[3] = {2360, 2373, DOWNRIGHT, 32}
			move[4] = {2386, 2399, DOWN, 31}
			move[5] = {2437, 2498, MASH, 15}
			move[6] = {2515, 2551, HOLDLEFT, 31}
			move[7] = {2595, 2608, UP, 31}

		elseif thisScene == 7 then

			sceneStart = 2638
			sceneEnd   = 3209
			totalMoves = 8
		
			move[1] = {2653, 2757, MASH, 14}
			move[2] = {2794, 2807, BUTTON1, 23}
			move[3] = {2824, 2837, ACTLEFT, 23}
			move[4] = {2861, 2921, HOLDUP, 32}
			move[5] = {2934, 2947, ACTLEFT, 14}
			move[6] = {2980, 3030, MASH, 31}
			move[7] = {3110, 3123, ACTLEFT, 14}
			move[8] = {3135, 3180, HOLDDOWN, 25}
			
		elseif thisScene == 8 then

			sceneStart = 3210
			sceneEnd   = 3685
			totalMoves = 7
		
			move[1] = {3250, 3263, UP, 14}
			move[2] = {3365, 3378, UP, 14}
			move[3] = {3409, 3422, LEFT, 14}
			move[4] = {3465, 3478, BUTTON1, 14}
			move[5] = {3515, 3530, DOWN, 14}
			move[6] = {3551, 3566, LEFT, 14}
			move[7] = {3625, 3640, LEFT, 14}

		elseif thisScene == 9 then

			sceneStart = 3686
			sceneEnd   = 4018
			totalMoves = 5
					
			move[1] = {3751, 3764, LEFT, 12}
			move[2] = {3775, 3788, RIGHT, 14}
			move[3] = {3801, 3814, LEFT, 14}
			move[4] = {3863, 3876, RIGHT, 14}
			move[5] = {3985, 3998, RIGHT, 14}
			
		elseif thisScene == 10 then

			sceneStart = 4019
			sceneEnd   = 4820
			totalMoves = 9
		
			move[1] = {4100, 4112, UP, 14}
			move[2] = {4240, 4253, UP, 14}
			move[3] = {4262, 4275, ACTDOWN, 14}
			move[4] = {4295, 4308, BUTTON1, 12}
			move[5] = {4325, 4338, UP, 14}
			move[6] = {4347, 4360, DOWNLEFT, 14}
			move[7] = {4427, 4440, DOWN, 14}
			move[8] = {4573, 4586, UP, 14}
			move[9] = {4776, 4789, RIGHT, 24}
					
		end

	end	
	
end

