TravelByRocket_starship-trainer/build 05/build/attack.pde
// gameState range 40-49

PImage AttackPost00;

void attackIntro(){ // gameState 40
	tint(255);
	textAlign(CENTER,CENTER);
	text("Learn how to play. Press SPACE.", width/2, height/2);

}

void attackTraining(){ // gameState 41
	gameState++;
}

void attackGame(){ // gameState 42
	textAlign(CENTER,CENTER);
	text("Attack Game Win", width/2, height/2);
	attackWin = true;
}

void attackStory(){ // // gameState 43
	miniGameWin();
}

void userInputsAttack(){
	
	if (key == ' ') {
		if(gameState == 40){
			gameState++;
		} else if (gameState == 41){
			gameState++;
		} else if (gameState == 42) {
			gameState++;
		}
	}
	
}

void leapInputsAttack(){ //better to call userLeapShooter?
	// float commandPositionAVG;
	// float commandPosition00 = width/2;
	// float commandPosition01 = width/2;
	// float commandPosition02 = width/2;
	// PVector handPosition;
	// boolean handIsRight;

	// for (Hand hand : leap.getHands()) {
	// 	handPosition = hand.getStabilizedPosition();
	// 	handIsRight = hand.isRight();
	// 	if (handIsRight){
	// 		commandPosition00 = map(handPosition.x,150,650,0,width);
	// 	} 
	// }

	// commandPosition02 = commandPosition01;
	// commandPosition01 = commandPosition00;
	
	// commandPositionAVG = (commandPosition00 + commandPosition01 + commandPosition02)/3;

	// if (commandPositionAVG < player.posX-width/30){
	// 	player.floatLeft();
	// } else if (commandPositionAVG > player.posX+width/30) {
	// 	player.floatRight();
	// }
	
}

void loadAttackImages(){
	AttackPost00 = loadImage("../../data/AttackPost00.png");
}