www.pudn.com > daPlane.rar > GameScene.h, change:2013-10-06,size:1157b


 
#ifndef __GAME_SCENE_H__ 
#define __GAME_SCENE_H__ 
 
#include "cocos2d.h" 
#include "SimpleAudioEngine.h" 
#include "Background.h" 
#include "Player.h" 
#include "Bullet.h" 
#include "Enemy.h" 
#include "Explode.h" 
#include "Tool.h" 
#include "GameOver.h" 
#include "Boss.h" 
using namespace cocos2d; 
class GameScene: public cocos2d::CCLayer 
{ 
public: 
	GameScene(void); 
	~GameScene(void); 
	bool init(); 
	static CCScene* scene(); 
 
	void update(float dt); 
	void addBullet(float dt); 
	void addEnemy(float dt); 
	 
	void addExplode(float x,float y); 
	void addTool(float x,float y); 
	void addHp(float hp); 
	void subHp(); 
	void addBoss(bool isSmall); 
 
	//΄₯ΖΑ 
	void ccTouchesBegan(CCSet *pTouches,CCEvent *pEvent); 
	void ccTouchesMoved(CCSet *pTouches,CCEvent *pEvent); 
	void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent); 
	 
	CREATE_FUNC(GameScene); 
private: 
	Player *player; 
	CCArray *pBullet; 
	CCArray *pBullet_E; 
	CCArray *pEnemy; 
	CCArray *pExplode; 
	CCArray *pTool; 
	CCArray *pHp; 
	CCArray *pBoss; 
	bool isBoos; 
	int enemyArray[10][4]; 
	int enemyIndex; 
	int hp; 
	int createBossBullet; 
	int coun; 
	 
}; 
 
#endif