---------------------------------------------------------------------------------------------------
--  Copyright © 2009 PoBros, Incorporated. All Rights Reserved.
--
--  This source code is the proprietary confidential property of PoBros Incorporated.
--  Modification, reproduction, publication, or distribution in any form to any party 
--  other than the licensee is strictly prohibited.
--
--  FOR USE BY AUTHORIZED PERSONS ONLY
---------------------------------------------------------------------------------------------------

require( "scripts/style.lua" );

local yoffset = 0;

dialogs =
{
	meditate_dialog_intro =
	{
		name = "meditate_dialog_intro";
		image = "autumn_thoughtful";
		sound = "autumn_gramps_trying_guide_me";
		text = "autumn_gramps_trying_guide_me";
	};
	
	meditate_dialog_oncomplete =
	{
		name = "meditate_dialog_oncomplete";
		image = "gramps";
		sound = "gramps_almost_there_stole_jade_coin";
		text = "gramps_almost_there_stole_jade_coin";
	};
};

---------------------------------------------------------------------------------------------------

MakeDialog
{
	SetStyle( MinigameStyle );
	
	MinigameMeditate
	{
		name = "meditate";
		maximages = 24;
		numofguesses = 6;
		
		buddha =
		{
			x = -4;
			y = 21 + yoffset;
			image = "minigames/meditate/buddha";
			hilighttime = 750;
			hilightalpha = 0.5;
		};
		
		gramps =
		{
			x = 279;
			y = 225 + yoffset;
			image = "minigames/meditate/gramps";
			fadetime = 750;
			floatdistance = 20;
			floattime = 1100;
			wiggletime = 40;
			wiggledistance = 2;
			wigglecount = 9;
		};
		
		windowsprite =
		{
			sprite = "minigames/meditate/background";
			xcenter = 400;
			ycenter = 300 - yoffset;
		};
		
		overlay =
		{
			image = "minigames/meditate/overlay";
			x = 0;
			y = yoffset;
		};
		
		candles =
		{
			image = "minigames/meditate/candlelight";
			x = 14;
			y = 338 + yoffset;
			framespeed = 150;
			animation = "random";
			crossfade = false;
			xcenter = 0;
			ycenter = 0;
			name = "candles";
		};
		
		soundfloat =
		{
			name = "float";
			loop = true;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundMagicalFloating;
		};
		
		MinigameButtons();
		AddMinigameTutorial( 400, 300, "meditatetutorial", "tutorial", -1 );
	};
};

---------------------------------------------------------------------------------------------------
