
/* NIGHT CLUB - Game name "DOWNTOWN" */


/* ------------------ SETUP INFO -----------------------*/

PLAY_TIME 4800

SKIP_MINI_GAMES


// Arena
LANDSCAPE clubmesh.obe 0 -1 0
	ACTOR_DONT_STATIC_LIGHT
	ACTOR_DONT_FOG


// Periphery
BACKGROUND nightclub_periphery.obe 0 0 0
	ACTOR_DONT_LIGHT

// Dry ice				          
ADD_SLIDDING_TEXTURE_MODEL club_smoke.obe 	0 30 0  0.0 0.002	20
ADD_SLIDDING_TEXTURE_MODEL club_smoke2.obe 	0 30 0  0.0 0.003	20

/*
PUZZLE AFTER_TIME 1
	NUMTIMES 1
	ACTION ENABLE_SLIDDING_TEXTURE_MODEL 20 0 0
*/


RESPAWN_POINT -300 8000 300
RESPAWN_POINT 300 8000 300
RESPAWN_POINT 300 8000 -300
RESPAWN_POINT -300 8000 -300


GLOBAL_VENT_DROP_BALL_LIMIT 10	



/* -------------------- CAMERA -------------------------*/


CAMERA_ORIGIN -2000 0 3000000
CAMERA_ROT -0.55



INTRO_CAM     club1.lom
INTRO_CAM_LOW_DETAIL
INTRO_CAM     club2.lom
INTRO_CAM     club3.lom
INTRO_CAM     club4.lom
INTRO_CAM     club5.lom

WINNER_CAM
// campos
		800	1060	-495
// WInners
		345	600	160
		535	600	290
		750	600	285
		250	600	-40
// Losers
		-250	600	220
		-70	600	435
		210	600	610


/* ----------------------- FOG -------------------------*/

// lilac
FOG  3000  20000  178 141 245




/* ------------------- SCENE LIGHTING ------------------*/


AMBIENTLIGHT 140 140 120	
DIRECTIONAL_LIGHT 250 230 200  -0.4 2.5

//                    	xRot    yRot   zRot
SHADOW DIRECTIONAL       0.7	0	0 




/* ---------------------- SFX -------------------------*/

#define SFX_BEAT_LONG_1 	1
#define SFX_RISE_CLUNK 		2
#define SFX_CROWD_CHEER_1 	3
#define SFX_CROWD_CHEER_2 	4
#define SFX_BUTTON_HAZARD	5
#define SFX_INTRO_CHEER		6
#define SFX_SHORT_BEAT		7

SAMPLE long_bass_a.wav SFX_BEAT_LONG_1 
SAMPLE nightclub_02b.wav SFX_RISE_CLUNK 	
SAMPLE nightclub_04a.wav SFX_CROWD_CHEER_1
SAMPLE nightclub_04b.wav SFX_CROWD_CHEER_2	
SAMPLE hazard.wav SFX_BUTTON_HAZARD
SAMPLE nightclub_04c.wav SFX_INTRO_CHEER
SAMPLE small_bass_boom.wav SFX_SHORT_BEAT


#define TEMP_VOL 255
#define BACK_VOL 175

PUZZLE START_OF_FIRST_HALF
	ACTION PLAY_SAMPLE SFX_INTRO_CHEER TEMP_VOL 0 0 



/* ------------------------------ GAME  ------------------------------------*/


/* ------------------------ TIMING ---------------------*/


/* These times are used to trigger when platforms change position during the level.
Each section finishes on the end of a set of 4 bars*/

// Outer rings of platforms move up
#define FIRST_MOVE_START 	900
#define SECOND_MOVE_START	930	
#define SECOND_MOVE_FINISH	960	// 16 seconds - 4 bars

// Platforms return to flat position
#define THIRD_MOVE_START 	1860
#define FOURTH_MOVE_START	1890	
#define FOURTH_MOVE_FINISH	1920	// 32 seconds - 8 bars

// Rear platforms and centre rise up
#define FIFTH_MOVE_START 	2820
#define SIXTH_MOVE_START	2850	
#define SIXTH_MOVE_FINISH	2880	// 48 seconds - 12 bars


PUZZLE AFTER_TIME 1
	NUMTIMES 1
	ACTION CHANGE_HEIGHT_MAP SECOND_MOVE_FINISH
	ACTION CHANGE_HEIGHT_MAP FOURTH_MOVE_FINISH
	ACTION CHANGE_HEIGHT_MAP SIXTH_MOVE_FINISH


/* ---------------------- GOALS ------------------------*/

/* One goal rests at the rear of the arena in front of a vertical bass woofer.
The other is in the centre, over a horizontal speaker*/

  #define GOAL_BACK 2
  #define GOAL_CENTRE 3
  #define GOAL_BACK_EFFECT 4
  #define GOAL_CENTRE_EFFECT 5


PLATFORM goalbase.obe 0 20 1100
	TAG GOAL_BACK
	TEXTURE_ANIM  activegoalanim.gif  1
	GOAL 
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 20 1100 	0 
	MOVEKEY 0 20 1100 	FIRST_MOVE_START 
	MOVEKEY 0 620 1100 	SECOND_MOVE_FINISH 
	MOVEKEY 0 620 1100 	THIRD_MOVE_START
	MOVEKEY 0 20 1100 	FOURTH_MOVE_FINISH 
	MOVEKEY 0 20 1100 	FIFTH_MOVE_START
	MOVEKEY 0 620 1100 	SIXTH_MOVE_FINISH 
	ACTOR_DONT_LIGHT
	


PLATFORM goalbase.obe 0 40 0
	TAG GOAL_CENTRE
	TEXTURE_ANIM  activegoalanim.gif  1
	GOAL 
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 40 0 0 
	MOVEKEY 0 40 0 FIFTH_MOVE_START
	MOVEKEY 0 640 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_LIGHT


PLATFORM_BACKGROUND goaleffect.obe  0 -20 1100
	TAG	GOAL_BACK_EFFECT
	TEXTURE_ANIM  goalsign_anim.gif  1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND goaleffect.obe  0 0 0
	TAG	GOAL_CENTRE_EFFECT
	TEXTURE_ANIM  goalsign_anim.gif  1
	ACTOR_DONT_LIGHT


PUZZLE START_OF_FIRST_HALF
//	ACTION ATTACH_PLATFORM_TO_NODE GOAL_CENTRE 		CENTRE centre 	0 40 0  0
	ACTION ATTACH_PLATFORM_TO_NODE GOAL_CENTRE_EFFECT 	CENTRE centre 	0 0 0  0
//	ACTION ATTACH_PLATFORM_TO_NODE GOAL_BACK 		BACK_OUTER back_outer 	0 20 1100  0
	ACTION ATTACH_PLATFORM_TO_NODE GOAL_BACK_EFFECT 	BACK_OUTER back_outer 	0 -20 1100  0
	ACTION ANIMATE_PLATFORM GOAL_CENTRE_EFFECT	active 1  0  0.5  0.1  0
	ACTION ANIMATE_PLATFORM GOAL_BACK_EFFECT	active 1  0  0.5  0.1  0
	ACTION SET_TEXTURE_ANIM_SPEED  GOAL_CENTRE_EFFECT  		1  0  0
	ACTION SET_TEXTURE_ANIM_SPEED  GOAL_BACK_EFFECT  		1  0  0
	

/* ----------------------- BUTTON -------------------------*/


#define WOOFER_BUTTON 39

PLATFORM brb.obe 0 0 -1100
	BIGREDBUTTON AUTOMATIC 125 3.2 0
	TAG WOOFER_BUTTON
	ACTOR_DONT_STATIC_LIGHT


PUZZLE AFTER_TIME 300
	NUMTIMES 1
	ACTION ACTIVATE_BRB WOOFER_BUTTON 1 0
	ACTION SPRITE_ONOFF SPRITE_BUTTON 1 0



// Sub-woofer -------------------------

  #define UPRIGHT_WOOFER 40 
  #define UPRIGHT_WOOFER_FAN 41
  #define FLOOR_WOOFER 42 
  #define FLOOR_WOOFER_FAN 43
  #define SE_UPRIGHT_WOOFER 44
  #define SE_FLOOR_WOOFER 45
  
 
  #define FAN_DEBRIS_CYL_RADIUS 0
  #define FAN_DEBRIS_CYL_HEIGHT 0
  #define FAN_SPEEDZ 30		//30
  #define FAN_DEBRIS_RANDOMX 0	//3		
  #define FAN_DEBRIS_RANDOMY 0	//3
  #define FAN_DEBRIS_1 3
  #define FAN_DEBRIS_2 3
  #define FAN_EFFECT_RADIUS 170
  #define FAN_EFFECT_LENGTH 500
  #define FAN_STRENGTH 50



// Upright Woofer fan ----------------------

PLATFORM_BACKGROUND woofer.obe 0 250 1400
	TAG UPRIGHT_WOOFER
	ACTOR_DONT_STATIC_LIGHT


NEW_VENT SONIC_RING 0 0 0  UPRIGHT_WOOFER_FAN  0 SONIC_RING_DENSITY
	VENT_POS  0 250 1150	 	FAN_DEBRIS_CYL_RADIUS FAN_DEBRIS_CYL_HEIGHT
	VENT_VEL   0 0 -30 		FAN_DEBRIS_RANDOMX FAN_DEBRIS_RANDOMY
	VENT_PATTERN 			FAN_DEBRIS_1 FAN_DEBRIS_2
	VENT_PATTERN 			FAN_DEBRIS_2 FAN_DEBRIS_1
	VENT_FAN  0 0 -1 		FAN_EFFECT_RADIUS FAN_EFFECT_LENGTH FAN_STRENGTH HURT_ALWAYS
	VENT_PLATFORM			BACK_OUTER
//	VENT_PLATFORM			UPRIGHT_WOOFER
    	 	 

PLATFORM_BACKGROUND speaker_woofer_effect.obe 0 250 1150
	TAG SE_UPRIGHT_WOOFER
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	ACTOR_DONT_LIGHT
	



// Floor Woofer fan ------------------------

PLATFORM_BACKGROUND woofer2.obe 0 0 0
	TAG FLOOR_WOOFER
	ACTOR_DONT_STATIC_LIGHT	


NEW_VENT SONIC_RING 0 0 0  FLOOR_WOOFER_FAN  0 SONIC_RING_DENSITY
	VENT_POS  0 0 0	 		FAN_DEBRIS_CYL_RADIUS FAN_DEBRIS_CYL_HEIGHT
	VENT_VEL   0 30 0 		FAN_DEBRIS_RANDOMX FAN_DEBRIS_RANDOMY
	VENT_PATTERN 			FAN_DEBRIS_1 FAN_DEBRIS_2
	VENT_PATTERN 			FAN_DEBRIS_2 FAN_DEBRIS_1
	VENT_FAN  0 1 0 		FAN_EFFECT_RADIUS 200 30 HURT_ALWAYS
	VENT_PLATFORM			CENTRE


PLATFORM_BACKGROUND speaker_woofer_effect.obe 0 40 0 
	TAG SE_FLOOR_WOOFER
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY -90 0 0 1
	ACTOR_DONT_LIGHT
	

// Setup Woofers ---------------------------

PUZZLE START_OF_FIRST_HALF
	ACTION ATTACH_PLATFORM_TO_NODE UPRIGHT_WOOFER 		BACK_OUTER back_outer 	0 250 1400  	0
	ACTION ATTACH_PLATFORM_TO_NODE FLOOR_WOOFER 		CENTRE centre 	0 0 0  		0
	ACTION ATTACH_PLATFORM_TO_NODE SE_UPRIGHT_WOOFER 	BACK_OUTER back_outer 	0 250 1150  	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FLOOR_WOOFER 		CENTRE centre  	0 40 0		0
	
	ACTION ANIMATE_PLATFORM UPRIGHT_WOOFER	1beat 1  0  0.5  0.1  0
	ACTION ANIMATE_PLATFORM FLOOR_WOOFER 	1beat 1  0  0.5  0.1  0
	ACTION SET_TEXTURE_ANIM_SPEED SE_UPRIGHT_WOOFER		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FLOOR_WOOFER		1  0  0	
	


PUZZLE BRB_JUST_DOWN WOOFER_BUTTON 0
	// Warning
	ACTION PLAY_SAMPLE SFX_BUTTON_HAZARD TEMP_VOL 0 0
	
	// Speakers on
	ACTION ANIMATE_PLATFORM 	UPRIGHT_WOOFER 	2boom 0  0  0.3  0.1 	60
	ACTION ANIMATE_PLATFORM 	FLOOR_WOOFER 	2boom 0  0  0.3  0.1 	60
	ACTION ACTIVATE_VENT 		UPRIGHT_WOOFER_FAN 			60
	ACTION ACTIVATE_VENT 		FLOOR_WOOFER_FAN 			60
	ACTION ANIMATE_PLATFORM 	SE_UPRIGHT_WOOFER boom 0 0 0.25 0.1 	60
	ACTION ANIMATE_PLATFORM 	SE_FLOOR_WOOFER   boom 0 0 0.25 0.1 	60
	
	ACTION PLAY_SAMPLE 		SFX_BEAT_LONG_1 TEMP_VOL 0 		60
	
	// Speakers off
	ACTION ANIMATE_PLATFORM 	UPRIGHT_WOOFER 	1beat 1  0  0.5  0.1 	180
	ACTION ANIMATE_PLATFORM 	FLOOR_WOOFER 	1beat 1  0  0.5  0.1 	180
	ACTION DEACTIVATE_VENT 		UPRIGHT_WOOFER_FAN 			180
	ACTION DEACTIVATE_VENT 		FLOOR_WOOFER_FAN 			180
	
	// Button
	ACTION ACTIVATE_BRB 		WOOFER_BUTTON 0 			0
	ACTION SPRITE_ONOFF 		SPRITE_BUTTON 0 			0
	ACTION ACTIVATE_BRB 		WOOFER_BUTTON 1 			900
	ACTION SPRITE_ONOFF 		SPRITE_BUTTON 1 			900





/* ------------------ MOVING PLATFORMS ------------------- */


// Platforms
  #define BACK_OUTER 100
  #define BACK_MIDDLE 101
  #define BACK_INNER 102
  #define CENTRE 103
  #define FRONT_INNER_LEFT 104
  #define FRONT_INNER_MIDDLE 105
  #define FRONT_INNER_RIGHT 106
  #define FRONT_MIDDLE_LEFT 107
  #define FRONT_MIDDLE_MIDDLE 108
  #define FRONT_MIDDLE_RIGHT 109
  #define FRONT_OUTER_LEFT 110
  #define FRONT_OUTER_RIGHT 112


// Heights to rise to

  #define HEIGHT_0 0
  #define HEIGHT_1 300
  #define HEIGHT_2 600



/* -------------- PLATFORM OBJECTS ----------------*/


#define GRAPHIC_LIGHTS_ANIMSPEED 1


PLATFORM back_outer.obe 0 0 0
	TAG BACK_OUTER
	TEXTURE_ANIM  anim_lights2.gif  GRAPHIC_LIGHTS_ANIMSPEED
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 FIRST_MOVE_START 
	MOVEKEY 0 HEIGHT_2 0 SECOND_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_2 0 THIRD_MOVE_START
	MOVEKEY 0 HEIGHT_0 0 FOURTH_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_0 0 FIFTH_MOVE_START
	MOVEKEY 0 HEIGHT_2 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM back_middle.obe 0 0 0
	TAG BACK_MIDDLE
	TEXTURE_ANIM  anim_lights2.gif  GRAPHIC_LIGHTS_ANIMSPEED
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 SECOND_MOVE_START 
	MOVEKEY 0 HEIGHT_1 0 SECOND_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_1 0 FOURTH_MOVE_START
	MOVEKEY 0 HEIGHT_0 0 FOURTH_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_0 0 FIFTH_MOVE_START
	MOVEKEY 0 HEIGHT_2 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM_BACKGROUND back_inner.obe 0 0 0
	TAG BACK_INNER
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 FIFTH_MOVE_START
	MOVEKEY 0 HEIGHT_2 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM centre2.obe 0 0 0
	TAG CENTRE
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 FIFTH_MOVE_START
	MOVEKEY 0 HEIGHT_2 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM front_inner_left.obe 0 0 0
	TAG FRONT_INNER_LEFT
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 SIXTH_MOVE_START
	MOVEKEY 0 HEIGHT_1 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM front_inner_middle.obe 0 0 0
	TAG FRONT_INNER_MIDDLE
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 SIXTH_MOVE_START
	MOVEKEY 0 HEIGHT_1 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM front_inner_right.obe 0 0 0
	TAG FRONT_INNER_RIGHT
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 SIXTH_MOVE_START
	MOVEKEY 0 HEIGHT_1 0 SIXTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM front_middle_left.obe 0 0 0
	TAG FRONT_MIDDLE_LEFT
	TEXTURE_ANIM  anim_lights2.gif  GRAPHIC_LIGHTS_ANIMSPEED
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 SECOND_MOVE_START 
	MOVEKEY 0 HEIGHT_1 0 SECOND_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_1 0 FOURTH_MOVE_START
	MOVEKEY 0 HEIGHT_0 0 FOURTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
	
PLATFORM front_middle_middle.obe 0 0 0
	TAG FRONT_MIDDLE_MIDDLE
	ACTOR_DONT_STATIC_LIGHT

PLATFORM front_middle_right.obe 0 0 0
	TAG FRONT_MIDDLE_RIGHT
	TEXTURE_ANIM  anim_lights2.gif  GRAPHIC_LIGHTS_ANIMSPEED
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 SECOND_MOVE_START 
	MOVEKEY 0 HEIGHT_1 0 SECOND_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_1 0 FOURTH_MOVE_START
	MOVEKEY 0 HEIGHT_0 0 FOURTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT

PLATFORM front_outer_left.obe 0 0 0
	TAG FRONT_OUTER_LEFT
	TEXTURE_ANIM  anim_lights2.gif  GRAPHIC_LIGHTS_ANIMSPEED
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 FIRST_MOVE_START 
	MOVEKEY 0 HEIGHT_2 0 SECOND_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_2 0 THIRD_MOVE_START
	MOVEKEY 0 HEIGHT_0 0 FOURTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT

PLATFORM front_outer_right.obe 0 0 0
	TAG FRONT_OUTER_RIGHT
	TEXTURE_ANIM  anim_lights2.gif  GRAPHIC_LIGHTS_ANIMSPEED
	BEHAVIOUR STOP
	SPEED 0
	MOVEKEY 0 HEIGHT_0 0 0 
	MOVEKEY 0 HEIGHT_0 0 FIRST_MOVE_START 
	MOVEKEY 0 HEIGHT_2 0 SECOND_MOVE_FINISH 
	MOVEKEY 0 HEIGHT_2 0 THIRD_MOVE_START
	MOVEKEY 0 HEIGHT_0 0 FOURTH_MOVE_FINISH 
	ACTOR_DONT_STATIC_LIGHT
		

/* ----------------- PLATFORM HANDLING --------------------*/


#define SMALL_SPK_ANIMSPEED 1

PUZZLE AFTER_TIME 1
	NUMTIMES 1
	// Set platforms moving
	ACTION SET_PLATFORM_SPEED  GOAL_CENTRE		1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  GOAL_BACK		1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  CENTRE  		1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  BACK_OUTER  		1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_OUTER_LEFT  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_OUTER_RIGHT  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  BACK_MIDDLE  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_MIDDLE_LEFT  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_MIDDLE_RIGHT  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  BACK_INNER	  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_INNER_LEFT  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_INNER_MIDDLE  	1  NO_FLAGS 0
	ACTION SET_PLATFORM_SPEED  FRONT_INNER_RIGHT  	1  NO_FLAGS 0

	// Small animating speakers
	ACTION ANIMATE_PLATFORM CENTRE 			pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM BACK_OUTER 		pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_OUTER_LEFT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_OUTER_RIGHT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM BACK_MIDDLE 		pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_MIDDLE_LEFT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_MIDDLE_RIGHT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_INNER_LEFT	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_INNER_MIDDLE	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	ACTION ANIMATE_PLATFORM FRONT_INNER_RIGHT	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 0
	
	// SFX as platforms change formation
	ACTION PLAY_SAMPLE SFX_RISE_CLUNK TEMP_VOL 0 	FIRST_MOVE_START
	ACTION PLAY_SAMPLE SFX_CROWD_CHEER_1 BACK_VOL 0 SECOND_MOVE_FINISH
	
	ACTION PLAY_SAMPLE SFX_RISE_CLUNK TEMP_VOL 0 	THIRD_MOVE_START
	ACTION PLAY_SAMPLE SFX_CROWD_CHEER_2 BACK_VOL 0 FOURTH_MOVE_FINISH
	
	ACTION PLAY_SAMPLE SFX_RISE_CLUNK TEMP_VOL 0 	FIFTH_MOVE_START
	ACTION PLAY_SAMPLE SFX_CROWD_CHEER_1 BACK_VOL 0 SIXTH_MOVE_FINISH




/* ------------------  SPEAKER VENTS -------------------------------*/


// Actual vents are listed after ORBS section as they take up lots of space.



/* -------------- ACTIVATE AND DEACTIVATE VENTS  ------------------*/

/* ------------------ SPEAKER EFFECT MODELS ----------------*/

// Small additive models which animate when vents blast out.


#define SE_FRONT_OUTER_LEFT 	6
#define SE_BACK_OUTER_1 	7
#define SE_BACK_OUTER_2 	8
#define SE_BACK_OUTER_3 	9
#define SE_BACK_OUTER_4 	10
#define SE_FRONT_OUTER_RIGHT 	11
#define SE_FRONT_MIDDLE_LEFT_1 	12
#define SE_FRONT_MIDDLE_LEFT_2 	13
#define SE_BACK_MIDDLE_1 	14	
#define SE_BACK_MIDDLE_2 	15	
#define SE_FRONT_MIDDLE_RIGHT_1 16	
#define SE_FRONT_MIDDLE_RIGHT_2 17	
#define SE_FRONT_INNER_RIGHT 	18
#define SE_FRONT_INNER_MIDDLE_1 19	
#define SE_FRONT_INNER_MIDDLE_2 20	
#define SE_FRONT_INNER_LEFT 	21
#define SE_CENTRE_1 		22
#define SE_CENTRE_2		23
#define SE_CENTRE_3 		24


PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	TAG SE_FRONT_OUTER_LEFT
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -110 0 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	TAG SE_BACK_OUTER_1
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -70 0 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	TAG SE_BACK_OUTER_2
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -30 0 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	TAG SE_BACK_OUTER_3
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 30 0 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	TAG SE_BACK_OUTER_4
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 70 0 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_OUTER_RIGHT
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 110 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_MIDDLE_LEFT_1
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -130 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_MIDDLE_LEFT_2
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -90 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_BACK_MIDDLE_1
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -50 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_BACK_MIDDLE_2
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 50 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_MIDDLE_RIGHT_1
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 90 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_MIDDLE_RIGHT_2
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 130 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_INNER_RIGHT
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -70 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_INNER_MIDDLE_1
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -30 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_INNER_MIDDLE_2
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 30 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_FRONT_INNER_LEFT
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 70 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_CENTRE_1
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 -80 0 1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0
	ACTOR_DONT_LIGHT
	TAG SE_CENTRE_2
	TEXTURE_ANIM  speaker_effect_horiz.gif  1

PLATFORM_BACKGROUND speaker_effect.obe 0 0 0 
	ACTOR_DONT_LIGHT
	TAG SE_CENTRE_3
	TEXTURE_ANIM  speaker_effect_horiz.gif  1
	BEHAVIOUR STOP
	SPEED 1
	ROTATEKEY 0 0 0 0 
	ROTATEKEY 0 80 0 1



// Setup speaker effect models ----------------------------	

PUZZLE START_OF_FIRST_HALF
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_OUTER_LEFT	FRONT_OUTER_LEFT  	front_outer_left   -830 -150 -300	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_BACK_OUTER_1		BACK_OUTER  		back_outer  	   -835 -150  300	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_BACK_OUTER_2		BACK_OUTER  		back_outer  	   -438 -150  772	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_BACK_OUTER_3		BACK_OUTER  		back_outer  	    438 -150  772	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_BACK_OUTER_4		BACK_OUTER  		back_outer  	    835 -150  300	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_OUTER_RIGHT 	FRONT_OUTER_RIGHT 	front_outer_right   830 -150 -300	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_MIDDLE_LEFT_1	FRONT_MIDDLE_LEFT  	front_middle_left  -447 -150 -380 	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_MIDDLE_LEFT_2	FRONT_MIDDLE_LEFT  	front_middle_left  -590 -150    0 	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_BACK_MIDDLE_1		BACK_MIDDLE  		back_middle  	   -453 -150  382	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_BACK_MIDDLE_2		BACK_MIDDLE  		back_middle  	    453 -150  382	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_MIDDLE_RIGHT_1	FRONT_MIDDLE_RIGHT  	front_middle_right  590 -150    0 	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_MIDDLE_RIGHT_2	FRONT_MIDDLE_RIGHT  	front_middle_right  447 -150 -380 	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_INNER_RIGHT 	FRONT_INNER_RIGHT 	front_inner_right   671 -150 -247	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_INNER_MIDDLE_1 	FRONT_INNER_MIDDLE 	front_inner_middle  360 -150 -614	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_INNER_MIDDLE_2	FRONT_INNER_MIDDLE  	front_inner_middle -360 -150 -614	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_FRONT_INNER_LEFT	FRONT_INNER_LEFT  	front_inner_left   -671 -150 -247	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_CENTRE_1		CENTRE  		centre  	    393 -150  -74	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_CENTRE_2 		CENTRE 			centre 		      0 -150 -400	0
	ACTION ATTACH_PLATFORM_TO_NODE SE_CENTRE_3		CENTRE  		centre  	   -393 -150  -71	0
	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_OUTER_LEFT	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_BACK_OUTER_1		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_BACK_OUTER_2		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_BACK_OUTER_3		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_BACK_OUTER_4		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_OUTER_RIGHT 	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_MIDDLE_LEFT_1	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_MIDDLE_LEFT_2	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_BACK_MIDDLE_1		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_BACK_MIDDLE_2		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_MIDDLE_RIGHT_1	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_MIDDLE_RIGHT_2	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_INNER_RIGHT 	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_INNER_MIDDLE_1 	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_INNER_MIDDLE_2	1  0  0
	ACTION SET_TEXTURE_ANIM_SPEED SE_FRONT_INNER_LEFT	1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_CENTRE_1		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_CENTRE_2 		1  0  0	
	ACTION SET_TEXTURE_ANIM_SPEED SE_CENTRE_3		1  0  0	
	
	

/* --------------------------- VENT TIMED ACTIONS ----------------------------*/

#define SE_ANIMSPEED 0.5

// Variables to end loops on

#define RISE_OUTER_VENTS 26
#define STOP_OUTER_VENTS 27
#define RISE_INNER_VENTS 28

#define END_LOOP_1 240


// First formation vents - vents have common tag
#define OUTER_VENTS 300

// Second formation vents - vents have common tag
#define INNER_VENTS 301


// Beat action delays

#define BEAT_1 0	// Speakers on
#define BEAT_1_OFF 30	// Speakers off




PUZZLE START_OF_FIRST_HALF
	ACTION SET_VAR STOP_OUTER_VENTS 0 NO_FLAGS 0


// Initiate vent beat patterns for first rise
// 960 frames is SECOND_MOVE_FINISH - 16 seconds, 4 bars.


PUZZLE  ( AFTER_TIME 1200 ) & (VAR_NOT_EQUAL STOP_OUTER_VENTS 1 ) & ( REPEAT )
	ACTION ACTIVATE_VENT 	OUTER_VENTS	BEAT_1
	ACTION DEACTIVATE_VENT 	OUTER_VENTS	BEAT_1_OFF
	
	// small speakers
	ACTION ANIMATE_PLATFORM BACK_OUTER 		thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_OUTER_LEFT 	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_OUTER_RIGHT 	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM BACK_MIDDLE 		thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_MIDDLE_LEFT 	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_MIDDLE_RIGHT 	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1

	ACTION ANIMATE_PLATFORM BACK_OUTER 		pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF	
	ACTION ANIMATE_PLATFORM FRONT_OUTER_LEFT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	ACTION ANIMATE_PLATFORM FRONT_OUTER_RIGHT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	ACTION ANIMATE_PLATFORM BACK_MIDDLE 		pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF	
	ACTION ANIMATE_PLATFORM FRONT_MIDDLE_LEFT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	ACTION ANIMATE_PLATFORM FRONT_MIDDLE_RIGHT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	
	
	// Speaker effect
	ACTION ANIMATE_PLATFORM SE_FRONT_OUTER_LEFT 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_BACK_OUTER_1 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_BACK_OUTER_2 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_BACK_OUTER_3 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_BACK_OUTER_4 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_OUTER_RIGHT 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_MIDDLE_LEFT_1   boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_MIDDLE_LEFT_2   boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_BACK_MIDDLE_1 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_BACK_MIDDLE_2 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_MIDDLE_RIGHT_1  boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_MIDDLE_RIGHT_2  boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	
	// SFX
	ACTION PLAY_SAMPLE SFX_SHORT_BEAT TEMP_VOL 0 BEAT_1
	
	//end loop
	ACTION SET_VAR RISE_OUTER_VENTS 1 NO_FLAGS END_LOOP_1




// Stop first formation of vents from venting when platforms fall back to original formation

PUZZLE ( AFTER_TIME THIRD_MOVE_START )
	NUMTIMES 1
	ACTION SET_VAR STOP_OUTER_VENTS 1 NO_FLAGS 0
	ACTION DEACTIVATE_VENT OUTER_VENTS 0

	ACTION DEACTIVATE_PLATFORM SE_FRONT_OUTER_LEFT 	0
	ACTION DEACTIVATE_PLATFORM SE_BACK_OUTER_1 	0
	ACTION DEACTIVATE_PLATFORM SE_BACK_OUTER_2 	0
	ACTION DEACTIVATE_PLATFORM SE_BACK_OUTER_3 	0
	ACTION DEACTIVATE_PLATFORM SE_BACK_OUTER_4 	0
	ACTION DEACTIVATE_PLATFORM SE_FRONT_OUTER_RIGHT 0	
	ACTION DEACTIVATE_PLATFORM SE_FRONT_MIDDLE_LEFT_1 0 
	ACTION DEACTIVATE_PLATFORM SE_FRONT_MIDDLE_LEFT_2 0 
	ACTION DEACTIVATE_PLATFORM SE_BACK_MIDDLE_1 	0
	ACTION DEACTIVATE_PLATFORM SE_BACK_MIDDLE_2 	0
	ACTION DEACTIVATE_PLATFORM SE_FRONT_MIDDLE_RIGHT_1 0
	ACTION DEACTIVATE_PLATFORM SE_FRONT_MIDDLE_RIGHT_2 0



// Second formation ------------------------------------
// SIXTH_MOVE_FINISH = 2880

PUZZLE  ( AFTER_TIME 3120 ) & ( REPEAT )
	ACTION ACTIVATE_VENT 	INNER_VENTS	BEAT_1
	ACTION DEACTIVATE_VENT 	INNER_VENTS	BEAT_1_OFF
		
	// small speakers
	ACTION ANIMATE_PLATFORM CENTRE 		thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_INNER_LEFT	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_INNER_MIDDLE 	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1
	ACTION ANIMATE_PLATFORM FRONT_INNER_RIGHT	thump 0 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1

	ACTION ANIMATE_PLATFORM CENTRE 		pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	ACTION ANIMATE_PLATFORM FRONT_INNER_LEFT 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	ACTION ANIMATE_PLATFORM FRONT_INNER_MIDDLE 	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
	ACTION ANIMATE_PLATFORM FRONT_INNER_RIGHT	pulse 1 0 SMALL_SPK_ANIMSPEED 0.1 BEAT_1_OFF
		
	// Speaker effect
	ACTION ANIMATE_PLATFORM SE_FRONT_INNER_RIGHT 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_INNER_MIDDLE_1  boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_INNER_MIDDLE_2  boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_FRONT_INNER_LEFT 	 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_CENTRE_1 		 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_CENTRE_2 		 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	ACTION ANIMATE_PLATFORM SE_CENTRE_3 		 boom 0 0 SE_ANIMSPEED 0.1 BEAT_1	
	
	// SFX
	ACTION PLAY_SAMPLE SFX_SHORT_BEAT TEMP_VOL 0 BEAT_1
	
	//end loop
	ACTION SET_VAR RISE_INNER_VENTS 1 NO_FLAGS END_LOOP_1






/* ------------------------- ORB HANDLING ------------------------*/


  #define GOLDEN PERSONALISED


PUZZLE START_OF_FIRST_HALF 
	ACTION SET_TILE_DEAL_DELAY 0 0
	ACTION ACTIVATE_TILE_GROUP 1 0
	ACTION ACTIVATE_TILE_GROUP 2 0


#define TILE_GENERATION_LOOP 21

// Normal orbs

PUZZLE AFTER_TIME 1 & REPEAT
	ACTION CREATE_RANDOM_TILE_GROUP 1 GOLDEN 1 1 0
	ACTION SET_VAR TILE_GENERATION_LOOP 1 NO_FLAGS 60
	

// Gold orbs

PUZZLE AFTER_TIME 1
	NUMTIMES 1
	ACTION CREATE_RANDOM_TILE_GROUP 1 SUPER 20 1 1800
	ACTION DESTROY_TILE_GROUP 20 2400
	ACTION CREATE_RANDOM_TILE_GROUP 1 SUPER 20 1 3000
	ACTION DESTROY_TILE_GROUP 20 3600
	ACTION CREATE_RANDOM_TILE_GROUP 1 SUPER 20 1 4200




/* ------------------------- POWER UPS ------------------------------*/


PUZZLE AFTER_TIME 1
	NUMTIMES 1
	ACTION CREATE_COLLECTABLE SPEEDUP 	-300 0 -900	600
	ACTION CREATE_COLLECTABLE SPEEDUP 	500 0 -900   	1200
	ACTION CREATE_COLLECTABLE SPEEDUP 	1100 0 -300  	1920
	ACTION CREATE_COLLECTABLE SPEEDUP 	-1100 0 -300  2400
	ACTION CREATE_COLLECTABLE SUPER_ATTACK 	900 0 100  	2000
	ACTION CREATE_COLLECTABLE INVINCIBILITY  -700 0 500	2800



/* ---------------------- TEXTURE ANIMS ---------------------------*/

#define START_TEXTURES 360

PUZZLE AFTER_TIME 1
	NUMTIMES 1
	ACTION SET_TEXTURE_ANIM_SPEED  BACK_OUTER  		1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_OUTER_LEFT  	1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_OUTER_RIGHT  	1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  CENTRE  			1  0  START_TEXTURES
	
	ACTION SET_TEXTURE_ANIM_SPEED  BACK_MIDDLE  		1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_MIDDLE_LEFT  	1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_MIDDLE_RIGHT  	1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_INNER_LEFT  	1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_INNER_MIDDLE  	1  0  START_TEXTURES
	ACTION SET_TEXTURE_ANIM_SPEED  FRONT_INNER_RIGHT 	1  0  START_TEXTURES




/* -------------------- ORB POSITIONS ------------------------*/

TILE_POSITION -800 0 -800 	20 SUPER+MOVEABLE
TILE_POSITION -400 0 700 	20 SUPER+MOVEABLE
TILE_POSITION 400 0 700 	20 SUPER+MOVEABLE
TILE_POSITION -1100 0 0 	20 SUPER+MOVEABLE
TILE_POSITION 1100 0 0 		20 SUPER+MOVEABLE
TILE_POSITION 800 0 -800 	20 SUPER+MOVEABLE


TILE_POSITION -500 0 0		1 GOLDEN+MOVEABLE
TILE_POSITION 0 0 -500		1 GOLDEN+MOVEABLE
TILE_POSITION 500 0 0		1 GOLDEN+MOVEABLE
TILE_POSITION 0 0 500		1 GOLDEN+MOVEABLE
TILE_POSITION -700 0 0		1 GOLDEN+MOVEABLE
TILE_POSITION -900 0 0		1 GOLDEN+MOVEABLE
TILE_POSITION 900 0 0		1 GOLDEN+MOVEABLE
TILE_POSITION 700 0 0		1 GOLDEN+MOVEABLE
TILE_POSITION 0 0 -700		1 GOLDEN+MOVEABLE
TILE_POSITION 0 0 -900		1 GOLDEN+MOVEABLE
TILE_POSITION -1100 0 -200	1 GOLDEN+MOVEABLE
TILE_POSITION -800 0 -200	1 GOLDEN+MOVEABLE
TILE_POSITION -1000 0 -400	1 GOLDEN+MOVEABLE
TILE_POSITION -900 0 -600	1 GOLDEN+MOVEABLE
TILE_POSITION -600 0 -500	1 GOLDEN+MOVEABLE
TILE_POSITION -400 0 -300	1 GOLDEN+MOVEABLE
TILE_POSITION -300 0 -500	1 GOLDEN+MOVEABLE
TILE_POSITION -400 0 -700	1 GOLDEN+MOVEABLE
TILE_POSITION -600 0 -900	1 GOLDEN+MOVEABLE
TILE_POSITION -400 0 -1000	1 GOLDEN+MOVEABLE
TILE_POSITION -200 0 -800	1 GOLDEN+MOVEABLE
TILE_POSITION -200 0 -1100	1 GOLDEN+MOVEABLE
TILE_POSITION 200 0 -1100	1 GOLDEN+MOVEABLE
TILE_POSITION 200 0 -800	1 GOLDEN+MOVEABLE
TILE_POSITION 400 0 -1000	1 GOLDEN+MOVEABLE
TILE_POSITION 600 0 -900	1 GOLDEN+MOVEABLE
TILE_POSITION 400 0 -700	1 GOLDEN+MOVEABLE
TILE_POSITION 300 0 -500	1 GOLDEN+MOVEABLE
TILE_POSITION 400 0 -300	1 GOLDEN+MOVEABLE
TILE_POSITION 600 0 -500	1 GOLDEN+MOVEABLE
TILE_POSITION 900 0 -600	1 GOLDEN+MOVEABLE
TILE_POSITION 1100 0 -200	1 GOLDEN+MOVEABLE
TILE_POSITION 1000 0 -400	1 GOLDEN+MOVEABLE
TILE_POSITION 800 0 -200	1 GOLDEN+MOVEABLE
TILE_POSITION 300 0 400		1 GOLDEN+MOVEABLE
TILE_POSITION 600 0 600		1 GOLDEN+MOVEABLE
TILE_POSITION 200 0 800		1 GOLDEN+MOVEABLE
TILE_POSITION 400 0 1100	1 GOLDEN+MOVEABLE
TILE_POSITION 800 0 800		1 GOLDEN+MOVEABLE
TILE_POSITION -200 0 800	1 GOLDEN+MOVEABLE
TILE_POSITION -600 0 600	1 GOLDEN+MOVEABLE
TILE_POSITION -700 0 400	1 GOLDEN+MOVEABLE
TILE_POSITION -800 0 800	1 GOLDEN+MOVEABLE
TILE_POSITION -400 0 1100	1 GOLDEN+MOVEABLE
//TILE_POSITION -200 0 1100	1 GOLDEN+MOVEABLE
TILE_POSITION 0 0 300		1 GOLDEN+MOVEABLE

TILE_POSITION 0 0 800		1 GOLDEN+MOVEABLE
TILE_POSITION -500 0 200	1 GOLDEN+MOVEABLE
TILE_POSITION -300 0 400	1 GOLDEN+MOVEABLE
TILE_POSITION 500 0 200		1 GOLDEN+MOVEABLE
TILE_POSITION 700 0 400		1 GOLDEN+MOVEABLE
//TILE_POSITION 200 0 1100	1 GOLDEN+MOVEABLE
TILE_POSITION 600 0 1000	1 GOLDEN+MOVEABLE
TILE_POSITION 1000 0 500	1 GOLDEN+MOVEABLE
TILE_POSITION 1100 0 300	1 GOLDEN+MOVEABLE
TILE_POSITION -1000 0 400	1 GOLDEN+MOVEABLE
TILE_POSITION -900 0 600	1 GOLDEN+MOVEABLE
TILE_POSITION -600 0 1000	1 GOLDEN+MOVEABLE



/* ----------------------------- SOUND WAVES ---------------------------*/

/* --------------- Setup defines ------------*/


// Common parameters
  #define DEBRIS_CYL_RADIUS 0	// 50
  #define DEBRIS_CYL_HEIGHT 0	// 150
  #define DEBRIS_RANDOMX 0	// 3
  #define DEBRIS_RANDOMY 0	// 3	// 50
  #define EFFECT_RADIUS 50
  #define EFFECT_LENGTH 200
  #define EFFECT_STRENGTH 30	//50 //15

#define SONIC_RING_DENSITY 0.5


// Speaker patterns - first half
  #define SPEAKERS_ON 3
  #define SPEAKERS_OFF 3


// Heights of speaker effects

  #define SPEAK_YPOS_1 -150	//150	// 50


// Multiply vector values by 1000, then divide by 60 for VENT_VEL entries

/* ---------------- First level vents - outer ring -----------------------*/

// Outer left beat 1
// Vector number 1 	0.939693	0.342020

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-856 SPEAK_YPOS_1 -312 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	15.66155 0 5.700  		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.939693 0 0.342020		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_OUTER

// Outer left beat 2
// Vector number 17	0.939693	-0.342020

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-856 SPEAK_YPOS_1 312 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	15.66155 0 -5.700   		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.939693 0 -0.342020  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_OUTER


// Outer left beat 3
// Vector number 15	0.500000	-0.866025

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-455 SPEAK_YPOS_1 789		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	8.333 0 -14.43375		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.500000 0 -0.866025 		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_OUTER


// Outer right beat 1
// Vector number 8	-0.939693	0.342020

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	856 SPEAK_YPOS_1 -312		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-15.66155 0 5.700		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.939693 0 0.342020		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_OUTER


// Outer right beat 2
// Vector number 10	-0.939693	-0.342020

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	856 SPEAK_YPOS_1 312		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-15.66155 0 -5.700		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.939693 0 -0.342020		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_OUTER


// Outer right beat 3
// Vector number 12	-0.500000	-0.866025

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	455 SPEAK_YPOS_1 789		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL	-8.333 0 -14.43375		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.500000 0 -0.866025		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_OUTER






/* --------------- First level vents - middle ring ---------------------*/


//Middle left beat 1
// Vector number 2	0.766044	0.642788

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-471 SPEAK_YPOS_1 -396 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	12.7674 0 10.7131   		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.766044 0 0.642788  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_MIDDLE


//Middle left beat 2
// Vector number 0	1.000000	0.000000

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS  	-616 SPEAK_YPOS_1 0 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	16.667 0 0   			DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	1 0 0 				EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_MIDDLE


//Middle left beat 3
// Vector number 16	0.766045	-0.642787

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS  	-471 SPEAK_YPOS_1 396 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	12.7674 0 -10.7131   		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.766045 0 -0.642787  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_MIDDLE


//Middle right beat 1
// Vector number 7	-0.766044	0.642788

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS  	472 SPEAK_YPOS_1 -395 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-12.7674 0 10.7131		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.766044 0 0.642788  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_MIDDLE


//Middle right beat 2
// Vector number 9	-1.000000	-0.000000

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS  	616 SPEAK_YPOS_1 0 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-16.667 0 0   			DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-1 0 0  			EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_MIDDLE


//Middle right beat 3
// Vector number 11	-0.766044	-0.642788

NEW_VENT SONIC_RING 0 0 0  OUTER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS  	472 SPEAK_YPOS_1 396 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-12.7674 0 -10.7131		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.766044 0 -0.642788 		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	BACK_MIDDLE





/* ---------------- First level vents - central ring -----------------------*/


// Centre left beat 1
// Vector number 0 (9 SEGS)	-1.000000	-0.000000

NEW_VENT SONIC_RING 0 0 0   INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-370 SPEAK_YPOS_1 -65  		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-16.667 0 -0			DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-1.000000 0 -0.000000  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	CENTRE


// Centre middle beat 2
// Vector number 2 (9 SEGS)	-0.173648	-0.984808

NEW_VENT SONIC_RING 0 0 0  INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	0 SPEAK_YPOS_1 -376  		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-2.8941 0 -16.4134		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.173648 0 -0.984808  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	CENTRE


// Centre right beat 1
// Vector number 4 (9 SEGS)	0.939693	-0.342020

NEW_VENT SONIC_RING 0 0 0  INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	370 SPEAK_YPOS_1 -65  		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	15.66155 0 -5.700		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.939693 0 -0.342020  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM 	CENTRE



/* ---------------- First level vents - inner ring -----------------------*/


// Inner left beat 1
// Vector number 3	-0.500000	-0.866025

NEW_VENT SONIC_RING 0 0 0  INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-344 SPEAK_YPOS_1 -597  	DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-8.333 0 -14.43375  		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.500000 0 -0.866025  		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM	FRONT_INNER_LEFT


// Inner left beat 2
// Vector number 1 	-0.939693	-0.342020

NEW_VENT SONIC_RING 0 0 0  INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	-647 SPEAK_YPOS_1 -235 		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	-15.66155 0 -5.700  		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	-0.939693 0 -0.342020		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM	FRONT_INNER_MIDDLE


// Inner right beat 1
// Vector number 6 	0.500000	-0.866025

NEW_VENT SONIC_RING 0 0 0  INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	345 SPEAK_YPOS_1 -597		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	8.333 0 -14.43375		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.500000 0 -0.866025 		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM	FRONT_INNER_RIGHT


// Inner right beat 2
// Vector number 8	0.939693	-0.342020

NEW_VENT SONIC_RING 0 0 0  INNER_VENTS 0 SONIC_RING_DENSITY
	VENT_POS 	648 SPEAK_YPOS_1 -235		DEBRIS_CYL_RADIUS DEBRIS_CYL_HEIGHT
	VENT_VEL 	15.66155 0 -5.700		DEBRIS_RANDOMX DEBRIS_RANDOMY
	VENT_PATTERN 	SPEAKERS_OFF SPEAKERS_ON
	VENT_FAN 	0.939693 0 -0.342020		EFFECT_RADIUS EFFECT_LENGTH EFFECT_STRENGTH HURT_ALWAYS
	VENT_PLATFORM	FRONT_INNER_MIDDLE



/* ------------------ SCENIC OBJECTS ----------------------*/


/* -------------------- GLOWS ---------------------*/

// Lines of red glows pop up before platforms rise


#define GLOW_1 120
#define GLOW_2 121

PLATFORM_BACKGROUND glow1.obe 0 0 0
	TAG GLOW_1
	INACTIVE
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND glow2.obe 0 0 0
	TAG GLOW_2
	INACTIVE
	ACTOR_DONT_LIGHT

/*
// Smoke from between cracks 

#define FIRST_SMOKE_RING_IN 200
#define FIRST_SMOKE_RING_OUT 201
#define SECOND_SMOKE_RING_IN 202
#define SECOND_SMOKE_RING_OUT 203
#define	SMOKE_R 200
#define SMOKE_G 150
#define SMOKE_B 150

#define SMOKE_Y1 -50
#define SMOKE_Y2 250


// First rings
// Lower left
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -777 SMOKE_Y1 -961	-370 SMOKE_Y1 -473	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -370 SMOKE_Y1 -473	-539 SMOKE_Y1 -280	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -539 SMOKE_Y1 -280	-594 SMOKE_Y1 -316	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -594 SMOKE_Y1 -316	-658 SMOKE_Y1 -135	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -658 SMOKE_Y1 -135	-595 SMOKE_Y1 -125	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -595 SMOKE_Y1 -125	-595 SMOKE_Y1  122	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -595 SMOKE_Y1  122	-660 SMOKE_Y1  140	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -660 SMOKE_Y1  140	-594 SMOKE_Y1  317	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -594 SMOKE_Y1  317	-534 SMOKE_Y1  288	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -534 SMOKE_Y1  288	-368 SMOKE_Y1  483	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -368 SMOKE_Y1  483	-414 SMOKE_Y1  530	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -414 SMOKE_Y1  530	-234 SMOKE_Y1  634	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -234 SMOKE_Y1  634	   0 SMOKE_Y1  671	0  FIRST_SMOKE_RING_IN NOFLAGS
// Lower right
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  777 SMOKE_Y1 -961	 370 SMOKE_Y1 -473	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  370 SMOKE_Y1 -473	 539 SMOKE_Y1 -280	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  539 SMOKE_Y1 -280	 594 SMOKE_Y1 -316	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  594 SMOKE_Y1 -316	 658 SMOKE_Y1 -135	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  658 SMOKE_Y1 -135	 595 SMOKE_Y1 -125	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  595 SMOKE_Y1 -125	 595 SMOKE_Y1  122	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  595 SMOKE_Y1  122	 660 SMOKE_Y1  140	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  660 SMOKE_Y1  140	 594 SMOKE_Y1  317	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  594 SMOKE_Y1  317	 534 SMOKE_Y1  288	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  534 SMOKE_Y1  288	 368 SMOKE_Y1  483	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  368 SMOKE_Y1  483	 414 SMOKE_Y1  530	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  414 SMOKE_Y1  530	 234 SMOKE_Y1  634	0  FIRST_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  234 SMOKE_Y1  634	   0 SMOKE_Y1  671	0  FIRST_SMOKE_RING_IN NOFLAGS
// Upper left
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -635 SMOKE_Y2 -434	-829 SMOKE_Y2 -510	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -829 SMOKE_Y2 -510	-765 SMOKE_Y2 -468	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -765 SMOKE_Y2 -468	-894 SMOKE_Y2 -129	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -894 SMOKE_Y2 -129	-961 SMOKE_Y2 -138	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -961 SMOKE_Y2 -138	-961 SMOKE_Y2  140	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -961 SMOKE_Y2  140	-897 SMOKE_Y2  129	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -897 SMOKE_Y2  129	-764 SMOKE_Y2  476	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -764 SMOKE_Y2  476	-823 SMOKE_Y2  509	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -823 SMOKE_Y2  509	-646 SMOKE_Y2  722	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -646 SMOKE_Y2  722	-600 SMOKE_Y2  676	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -600 SMOKE_Y2  676	-283 SMOKE_Y2  855	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -283 SMOKE_Y2  855	-306 SMOKE_Y2  920	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -306 SMOKE_Y2  920	   0 SMOKE_Y2  972	0  FIRST_SMOKE_RING_OUT NOFLAGS
// Upper right
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  635 SMOKE_Y2 -434	 829 SMOKE_Y2 -510	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  829 SMOKE_Y2 -510	 765 SMOKE_Y2 -468	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  765 SMOKE_Y2 -468	 894 SMOKE_Y2 -129	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  894 SMOKE_Y2 -129	 961 SMOKE_Y2 -138	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  961 SMOKE_Y2 -138	 961 SMOKE_Y2  140	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  961 SMOKE_Y2  140	 897 SMOKE_Y2  129	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  897 SMOKE_Y2  129	 764 SMOKE_Y2  476	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  764 SMOKE_Y2  476	 823 SMOKE_Y2  509	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  823 SMOKE_Y2  509	 646 SMOKE_Y2  722	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  646 SMOKE_Y2  722	 600 SMOKE_Y2  676	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  600 SMOKE_Y2  676	 283 SMOKE_Y2  855	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  283 SMOKE_Y2  855	 306 SMOKE_Y2  920	0  FIRST_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  306 SMOKE_Y2  920	   0 SMOKE_Y2  972	0  FIRST_SMOKE_RING_OUT NOFLAGS

// Second rings
//Lower Left
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -1280 SMOKE_Y1  202	-638 SMOKE_Y1   94 	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -638 SMOKE_Y1   94 	-638 SMOKE_Y1  -91	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -638 SMOKE_Y1  -91	-722 SMOKE_Y1 -104	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -722 SMOKE_Y1 -104	-615 SMOKE_Y1 -383	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -615 SMOKE_Y1 -383	-544 SMOKE_Y1 -343	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -544 SMOKE_Y1 -343	-436 SMOKE_Y1 -477	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -436 SMOKE_Y1 -477	-490 SMOKE_Y1 -545	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -490 SMOKE_Y1 -545	-231 SMOKE_Y1 -694	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -231 SMOKE_Y1 -694	-197 SMOKE_Y1 -616	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  -197 SMOKE_Y1 -616	   0 SMOKE_Y1 -653	0  SECOND_SMOKE_RING_OUT NOFLAGS
// Lower Right
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  1280 SMOKE_Y1  202	 638 SMOKE_Y1   94 	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   638 SMOKE_Y1   94 	 638 SMOKE_Y1  -91	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   638 SMOKE_Y1  -91	 722 SMOKE_Y1 -104	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   722 SMOKE_Y1 -104	 615 SMOKE_Y1 -383	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   615 SMOKE_Y1 -383	 544 SMOKE_Y1 -343	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   544 SMOKE_Y1 -343	 436 SMOKE_Y1 -477	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   436 SMOKE_Y1 -477	 490 SMOKE_Y1 -545	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   490 SMOKE_Y1 -545	 231 SMOKE_Y1 -694	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   231 SMOKE_Y1 -694	 197 SMOKE_Y1 -616	0  SECOND_SMOKE_RING_OUT NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B   197 SMOKE_Y1 -616	   0 SMOKE_Y1 -653	0  SECOND_SMOKE_RING_OUT NOFLAGS
// Upper left
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -608 SMOKE_Y2   83	-417 SMOKE_Y2   47 	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -417 SMOKE_Y2   47 	-365 SMOKE_Y2 -233	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -365 SMOKE_Y2 -233	-295 SMOKE_Y2 -203	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -295 SMOKE_Y2 -203	-149 SMOKE_Y2 -333	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -149 SMOKE_Y2 -333	-157 SMOKE_Y2 -398	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B -157 SMOKE_Y2 -398	 157 SMOKE_Y2 -398	0  SECOND_SMOKE_RING_IN NOFLAGS
// Upper right
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  608 SMOKE_Y2   83	 417 SMOKE_Y2   47 	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  417 SMOKE_Y2   47 	 365 SMOKE_Y2 -233	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  365 SMOKE_Y2 -233	 295 SMOKE_Y2 -203	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  295 SMOKE_Y2 -203	 149 SMOKE_Y2 -333	0  SECOND_SMOKE_RING_IN NOFLAGS
DEBRIS_EMITTER  BLEND_SMOKE_BIG SMOKE_R SMOKE_G SMOKE_B  149 SMOKE_Y2 -333	 157 SMOKE_Y2 -398	0  SECOND_SMOKE_RING_IN NOFLAGS

*/



// Set glowing 5 seconds before change

PUZZLE AFTER_TIME 1
	NUMTIMES 1	
	// First change
	ACTION ACTIVATE_PLATFORM 	GLOW_1 				600
	ACTION ANIMATE_PLATFORM 	GLOW_1 glow 0 0 0.1 0.1 	600
	ACTION DEACTIVATE_PLATFORM 	GLOW_1 				SECOND_MOVE_START
	
	/*
	ACTION SET_EMITTER_RATE 	FIRST_SMOKE_RING_IN 1 		840
	ACTION SET_EMITTER_RATE 	FIRST_SMOKE_RING_OUT 1 		940
	ACTION SET_EMITTER_RATE 	FIRST_SMOKE_RING_IN 0 		900
	ACTION SET_EMITTER_RATE 	FIRST_SMOKE_RING_OUT 0 		1000
	*/

	// Second change
	ACTION ACTIVATE_PLATFORM 	GLOW_2 				2320
	ACTION ANIMATE_PLATFORM 	GLOW_2 glow 0 0 0.1 0.1 	2320
	ACTION DEACTIVATE_PLATFORM 	GLOW_2 				SIXTH_MOVE_START
	/*
	ACTION SET_EMITTER_RATE 	SECOND_SMOKE_RING_OUT 1 	2730
	ACTION SET_EMITTER_RATE 	SECOND_SMOKE_RING_IN 1 		2860
	ACTION SET_EMITTER_RATE 	SECOND_SMOKE_RING_OUT 0 	2790
	ACTION SET_EMITTER_RATE 	SECOND_SMOKE_RING_IN 0 		2920
	*/



/* -------------------------- SCENIC LIGHTS -------------------------*/

// Lights hanging below balcony, left to right

// Left hand side
PLATFORM_BACKGROUND club_spot_light.obe -4015 275 1628
	ANIMATE swing 1 0 0.8 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 -133 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT


PLATFORM_BACKGROUND club_spot_light.obe -3245 275 3104
	ANIMATE swing 1 0 0.8 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 47 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND club_spot_light.obe -1967 691 3982
	ANIMATE swing 1 0 0.7 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 -133 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT


PLATFORM_BACKGROUND club_spot_light.obe -956 939 5303
	ANIMATE swing 1 0 0.5 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 27.5 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT


// Right hand side (from left)
PLATFORM_BACKGROUND club_spot_light.obe 1164 939 5269
	ANIMATE swing 1 0 0.5 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 128 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT


PLATFORM_BACKGROUND club_spot_light.obe 2105 691 3870
	ANIMATE swing 1 0 0.7 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 -42.5 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND club_spot_light.obe 3481 281 3086
	ANIMATE swing 1 0 0.8 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 137 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND club_spot_light.obe 3810 275 1788
	ANIMATE swing 1 0 0.8 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 88.7 0 -46.8 1
	BEHAVIOUR STOP
	SPEED 1
	ACTOR_DONT_LIGHT




// Centre back - on intro cam
PLATFORM_BACKGROUND club_spot_light.obe -138 3693 5000
	ANIMATE swing 1 0 1 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 41.6 0 0 1
	BEHAVIOUR STOP
	SPEED 1
	TAG 231
	ACTOR_DONT_LIGHT

// Upper left - on intro cam
PLATFORM_BACKGROUND club_spot_light.obe -1960 1138 2837
	ANIMATE swing 1 0 0.7 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY -110.7 0 0 1
	BEHAVIOUR STOP
	SPEED 1
	TAG 231
	ACTOR_DONT_LIGHT

// Upper right - on intro cam
PLATFORM_BACKGROUND club_spot_light.obe 1682 1138 2844
	ANIMATE swing 1 0 0.7 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY -69.3 0 -180 1
	BEHAVIOUR STOP
	SPEED 1
	TAG 231
	ACTOR_DONT_LIGHT

// Bottom left - on intro cam
PLATFORM_BACKGROUND club_spot_light.obe -732 -1085 -2707
	ANIMATE swing 1 0 1 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY -110.7 0 180 1
	BEHAVIOUR STOP
	SPEED 1
	TAG 231
	ACTOR_DONT_LIGHT

// Bottom right - on intro cam
PLATFORM_BACKGROUND club_spot_light.obe 804 -1085 -2009
	ANIMATE swing 1 0 1 0.1
	ROTATEKEY 0 0 0 0
	ROTATEKEY -69.3 0 0 1
	BEHAVIOUR STOP
	SPEED 1
	TAG 231
	ACTOR_DONT_LIGHT



// Spinning Lights

#define HOVVER_LIGHT_1 230
/*
#define HOVVER_SMOKE_1 236
#define HOVVER_SMOKE_2 237
#define HOVVER_SMOKE_3 238
#define HOVVER_SMOKE_4 239
#define HOVVER_SMOKE_5 240
#define HOVVER_SMOKE_6 241
*/

PLATFORM_BACKGROUND hovver_light.obe -2460 630 1300
	TAG HOVVER_LIGHT_1
	ANIMATE spin 1 0 0.2 0.1
	ACTOR_DONT_LIGHT


PLATFORM_BACKGROUND hovver_light.obe 2460 630 1300
	TAG HOVVER_LIGHT_1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 0 0 -90 1
	BEHAVIOUR STOP
	SPEED 1
	ANIMATE spin 1 0 0.2 0.1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND hovver_light.obe -1500 630 2000
	TAG HOVVER_LIGHT_1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 0 0 90 1
	BEHAVIOUR STOP
	SPEED 1
	ANIMATE spin 1 0 0.2 0.1
	ACTOR_DONT_LIGHT

PLATFORM_BACKGROUND hovver_light.obe 1500 630 2000
	TAG HOVVER_LIGHT_1
	ROTATEKEY 0 0 0 0
	ROTATEKEY 0 0 180 1
	BEHAVIOUR STOP
	SPEED 1
	ANIMATE spin 1 0 0.2 0.1
	ACTOR_DONT_LIGHT

/*
NEW_VENT STEAM2 0 0 0 HOVVER_SMOKE_1 1 1
	VENT_POS -2460 600 1300 	60 200
	VENT_PATTERN 0 10
	VENT_VEL 0 -16 0 		0 0
	VENT_PLATFORM HOVVER_LIGHT_1


NEW_VENT STEAM2 0 0 0 HOVVER_SMOKE_2 1 1
	VENT_POS 2460 600 1300 		60 200
	VENT_PATTERN 0 10
	VENT_VEL 0 -16 0 		0 0
	VENT_PLATFORM HOVVER_LIGHT_2


NEW_VENT STEAM2 0 0 0 HOVVER_SMOKE_5 1 1
	VENT_POS -1500 600 2000		60 200
	VENT_PATTERN 0 10
	VENT_VEL 0 -16 0 		0 0
	VENT_PLATFORM HOVVER_LIGHT_5


NEW_VENT STEAM2 0 0 0 HOVVER_SMOKE_6 1 1
	VENT_POS 1500 600 2000 		60 200
	VENT_PATTERN 0 10
	VENT_VEL 0 -16 0 		0 0
	VENT_PLATFORM HOVVER_LIGHT_6
*/

PUZZLE START_OF_FIRST_HALF
	ACTION SET_PLATFORM_ALPHA HOVVER_LIGHT_1 150 0

PUZZLE AFTER_TIME 1
	NUMTIMES 1
	ACTION DEACTIVATE_PLATFORM 231 0


/* ----------------------- SPRITES -------------------------*/


#define SPRITE_1_1 10
#define SPRITE_1_2 11
#define SPRITE_1_3 12
#define SPRITE_1_4 13
#define SPRITE_1_5 14
#define SPRITE_1_6 15
#define SPRITE_2_1 16
#define SPRITE_2_2 17
#define SPRITE_2_3 18
#define SPRITE_2_4 19
#define SPRITE_2_5 20
#define SPRITE_2_6 21
#define SPRITE_3_1 22
#define SPRITE_3_2 23
#define SPRITE_3_3 24
#define SPRITE_3_4 25
#define SPRITE_3_5 26
#define SPRITE_3_6 27
#define SPRITE_4_1 28
#define SPRITE_4_2 29
#define SPRITE_4_3 30
#define SPRITE_4_4 31
#define SPRITE_4_5 32
#define SPRITE_4_6 33

#define XSIZE 300
#define YSIZE 300
#define DISTANCE 100	

#define SPRITE_RED	20
#define SPRITE_GREEN	30
#define SPRITE_BLUE	70

// Sprites on left-hand bank

//			   x  y  z   xSize ySize  texture name      r  g  b  a   distance on/off

CAMERA_ALIGNED_SPRITE -1345 880 485  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE 90  DISTANCE  1	
	TAG SPRITE_1_1
	
CAMERA_ALIGNED_SPRITE -1370 682 415  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_1_2
	
CAMERA_ALIGNED_SPRITE -1320 682 558  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_1_3
	
CAMERA_ALIGNED_SPRITE -1345 480 485  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_1_4
	
CAMERA_ALIGNED_SPRITE -1370 293 415  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_1_5
	
CAMERA_ALIGNED_SPRITE -1320 293 558  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_1_6



// Sprites on left-middle bank

//			   x  y  z   xSize ySize  texture name      r  g  b  a   distance on/off

CAMERA_ALIGNED_SPRITE -720 880 1235  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE 90  DISTANCE  1	
	TAG SPRITE_2_1
	
CAMERA_ALIGNED_SPRITE -788 682 1196  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_2_2
	
CAMERA_ALIGNED_SPRITE -660 682 1268  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_2_3
	
CAMERA_ALIGNED_SPRITE -720 480 1235  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_2_4
	
CAMERA_ALIGNED_SPRITE -788 293 1196  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_2_5
	
CAMERA_ALIGNED_SPRITE -660 293 1270  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_2_6


// Sprites on right-middle bank

//			   x  y  z   xSize ySize  texture name      r  g  b  a   distance on/off

CAMERA_ALIGNED_SPRITE 706 880 1245  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE 90  DISTANCE  1	
	TAG SPRITE_3_1
	
CAMERA_ALIGNED_SPRITE 633 682 1285  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_3_2
	
CAMERA_ALIGNED_SPRITE 776 682 1203  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_3_3
	
CAMERA_ALIGNED_SPRITE 706 480 1245  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_3_4
	
CAMERA_ALIGNED_SPRITE 633 293 1285  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_3_5
	
CAMERA_ALIGNED_SPRITE 776 293 1203  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_3_6
	
	

// Sprites on right-hand bank

//			   x  y  z   xSize ySize  texture name      r  g  b  a   distance on/off

CAMERA_ALIGNED_SPRITE 1341 880 494  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE 90  DISTANCE  1	
	TAG SPRITE_4_1
	
CAMERA_ALIGNED_SPRITE 1319 682 557  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_4_2
	
CAMERA_ALIGNED_SPRITE 1371 682 412  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_4_3
	
CAMERA_ALIGNED_SPRITE 1341 480 494  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_4_4
	
CAMERA_ALIGNED_SPRITE 1319 293 557  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_4_5
	
CAMERA_ALIGNED_SPRITE 1371 293 412  XSIZE YSIZE  ai_light_glow_2.bmp SPRITE_RED SPRITE_GREEN SPRITE_BLUE  90  DISTANCE  1	
	TAG SPRITE_4_6



PUZZLE START_OF_FIRST_HALF
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_1_1 BACK_OUTER back_outer -1345 880 485 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_1_2 BACK_OUTER back_outer -1370 682 415 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_1_3 BACK_OUTER back_outer -1320 682 558 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_1_4 BACK_OUTER back_outer -1345 480 485 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_1_5 BACK_OUTER back_outer -1370 293 415 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_1_6 BACK_OUTER back_outer -1320 293 558 0
	
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_2_1 BACK_OUTER back_outer -720 880 1235 0 
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_2_2 BACK_OUTER back_outer -788 682 1196 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_2_3 BACK_OUTER back_outer -660 682 1268 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_2_4 BACK_OUTER back_outer -720 480 1235 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_2_5 BACK_OUTER back_outer -788 293 1196 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_2_6 BACK_OUTER back_outer -660 293 1270 0
	
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_3_1 BACK_OUTER back_outer  706 880 1245 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_3_2 BACK_OUTER back_outer  633 682 1285 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_3_3 BACK_OUTER back_outer  776 682 1203 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_3_4 BACK_OUTER back_outer  706 480 1245 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_3_5 BACK_OUTER back_outer  633 293 1285 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_3_6 BACK_OUTER back_outer  776 293 1203 0
	
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_4_1 BACK_OUTER back_outer  1341 880 494 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_4_2 BACK_OUTER back_outer  1319 682 557 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_4_3 BACK_OUTER back_outer  1371 682 412 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_4_4 BACK_OUTER back_outer  1341 480 494 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_4_5 BACK_OUTER back_outer  1319 293 557 0
	ACTION ATTACH_SPRITE_TO_NODE SPRITE_4_6 BACK_OUTER back_outer  1371 293 412 0	
								      
	


// On button when active

#define SPRITE_BUTTON 34

CAMERA_ALIGNED_SPRITE 0 30 -1100	275 250 ai_light_glow_2.bmp 127 90 30    90 150   0
	TAG SPRITE_BUTTON


