//#include	"SpaceShooter.h"
//
//// scenery - global variable definition
////int  g_iScenery[1000]			= {};
////int  g_iSceneryCount			= 0;
//
//// 10 aliens
//sAlien g_Aliens[10]				= {};
//
//// player data
//int		g_iShip					= 0;
//int		g_iParticles			= 0;
//int		g_iPlayerShip			= 0;
//int		g_iPlayerEngine			= 0;
//int		g_iPlayerExplosion		= 0;
//int		g_iPlayerWeapon			= 0;
//float	g_fPlayerShoot			= 0.0f;
//int		g_iPlayerState			= 0;
//sWeapon	g_Bullets[10]			= {};
//
//// explosions pool
//sExplosion	g_Explosions[5]		= {};
//
//// other globals
//int		g_iGameState			= 0;
//int		g_iScore				= 0;
//int		g_iScoreTarget			= 0;
//int		g_iLives				= 3;
//int		g_iDelay				= 0;
//
//void HandleStart()
//{
//	// start screen
//
//	// fade in text
//	agk::SetTextColorAlpha(3, agk::GetTextColorAlpha(3) + 2);
//	agk::SetTextVisible(3, 1);
//
//	// have aliens moving across
//	UpdateAliens();
//
//	// wait for input
//	if (agk::GetPointerPressed() == 1)
//	{
//
//		// reset aliens
//		ResetAliens();
//
//		// show the player
//		ShowPlayer();
//
//		// set game over text for later on
//		agk::SetTextColorAlpha(3, 0);
//		agk::SetTextVisible(3, 0);
//		agk::SetTextPosition(3, 130, 160);
//		agk::SetTextString(3, "GAME OVER");
//		agk::SetTextVisible(10, 1);
//		agk::SetTextVisible(2, 1);
//
//		// switch to in game state
//		g_iGameState = 1;
//	}
//}
//
//void HandleGame()
//{
//	// main game
//
//	// fade in on screen text
//	agk::SetTextColorAlpha(10, agk::GetTextColorAlpha(10) + 2);
//	agk::SetTextColorAlpha(2, agk::GetTextColorAlpha(2) + 2);
//
//	// update the player, aliens and text
//	UpdatePlayer();
//	UpdateAliens();
//	UpdateText();
//}
//
//void HandleEnd()
//{
//	// handle the end of the game
//
//	// update aliens
//	UpdateAliens();
//
//	// fade in text
//	agk::SetTextColorAlpha(3, agk::GetTextColorAlpha(3) + 2);
//	agk::SetTextVisible(3, 1);
//
//	// act on input
//	if (agk::GetPointerPressed())
//	{
//		// reset scrolling
//		agk::SetViewOffset(0, 0);
//
//		// kill off all bullets
//		DestroyAllBullets();
//
//		// reset player, bullets and aliens
//		ResetPlayer();
//		ResetBullets();
//		ResetAliens();
//
//		// hide the player
//		HidePlayer();
//
//		// set start game text
//		agk::SetTextColorAlpha(3, 0);
//		agk::SetTextVisible(3, 1);
//		agk::SetTextPosition(3, 100, 160);
//		agk::SetTextString(3, "START GAME");
//		agk::SetTextVisible(2, 1);
//		agk::SetTextColorAlpha(10, 0);
//		agk::SetTextColorAlpha(2, 0);
//
//		// reset globals
//		g_iDelay = 0;
//		g_iPlayerState = 0;
//		g_iLives = 3;
//		g_iScore = 0;
//		g_iScoreTarget = 0;
//		g_iGameState = 0;
//	}
//}

//	new game design :)
#include	"SpaceShooter.h"

#include	"ppLevel.h"
#include	"ppAliens.h"
#include	"ppPlayer.h"





