示例#1
0
void CloudsIntroSequence::selfSetDefaults(){

	selectedQuestion = NULL;
	showingQuestions = false;
	paused = false;
	currentFontSize = -1;
	currentFontExtrusion = -1;
	startedOnclick = false;
	caughtQuestion = NULL;
	titleNoisePosition = 0;
	titleNoiseSpeed = 0;
	hoveringTitle = false;
	currentTitleOpacity = 0;
	bQuestionDebug = false;
	firstQuestionStopped = false;
    
    introNodeChangeTime = 0;
    introNodesShown = true;
	kinectHelperAlpha = 0.0;
	nodeAlphaAttenuate = 1.0;
	
	introNodeOne.introNode = introNodeTwo.introNode = introNodeThree.introNode = true;
	introNodeOne.clickSound = introNodeTwo.clickSound = introNodeThree.clickSound = getClick();
	introNodeOne.selectSound = introNodeTwo.selectSound = getSelectHigh();
	introNodeThree.selectSound = getSelectMid();
	
	introNodeOne.multiplier   =  1;
	introNodeTwo.multiplier   = -1;
	introNodeThree.multiplier =  0;
	
	hintCursorEndPoint = ofVec2f(320,240);

	promptTime = 0.0;
	promptShown = false;
	
	// Set question defaults.
	questionScale = 0.1f;
	helperFontSize = 14;
	questionZStopRange.min = 50;
	questionZStopRange.max = 300;
	perlinOffset = 0;
	
    warpCamera.setNearClip(.01);
	
	timeSinceLastPrompt = 0;
	
	questionChannels.resize(4);
	channelPauseTime.resize(4);
	
#ifdef OCULUS_RIFT
    bCursorInCenter = false;
    startTimeCursorInCenter = 0;
#endif

}
示例#2
0
CloudsIntroSequence::CloudsIntroSequence(){
	getSelectLow();
	getSelectMid();
	getSelectHigh();
	getClick();
}