axmol/test_uphone/tests/TouchesTest/TouchesTest.h

28 lines
458 B
C
Raw Normal View History

2010-08-27 11:53:35 +08:00
#include "cocos2d.h"
#include "../testBasic.h"
using namespace cocos2d;
class PongScene : public TestScene
{
public:
PongScene();
virtual void onExit();
virtual void runThisTest();
};
class Ball;
class PongLayer : public CCLayer
{
Ball* m_ball;
NSMutableArray<NSObject *> *m_paddles;
CGPoint m_ballStartingVelocity;
public:
PongLayer();
~PongLayer();
void resetAndScoreBallForPlayer(int player);
void doStep(ccTime delta);
};