This commit is contained in:
Ming 2010-11-13 08:34:30 +00:00
parent 9a431a434e
commit 9c23559e9c
5 changed files with 20 additions and 20 deletions

View File

@ -21,18 +21,10 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#ifndef __HELLOWORLD_H__
#define __HELLOWORLD_H__
#include "cocos2d.h"
@interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate, UITextFieldDelegate,UIApplicationDelegate> {
UIWindow *window;
}
class HelloWorld : public cocos2d::CCXApplication {
public:
HelloWorld();
virtual bool initCocos2d();
};
#endif // __HELLOWORLD_H__
@end

View File

@ -22,10 +22,10 @@
THE SOFTWARE.
****************************************************************************/
#import <UIKit/UIKit.h>
#import "HelloWorldAppDelegate.h"
#import "AppController.h"
#import "cocos2d.h"
#import "EAGLView.h"
#import "HelloWorld.h"
#import "HelloWorldAppDelegate.h"
@implementation AppController

View File

@ -1 +1 @@
ff523c8cfd1e30462a063fec9ef90fabb35fd58d
404037c1a25709cc29495c7b5272d1178f965608

View File

@ -22,7 +22,7 @@
THE SOFTWARE.
****************************************************************************/
#include "HelloWorld.h"
#include "HelloWorldAppDelegate.h"
using namespace cocos2d;

View File

@ -21,10 +21,18 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#ifndef __HELLOWORLD_H__
#define __HELLOWORLD_H__
@interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate, UITextFieldDelegate,UIApplicationDelegate> {
UIWindow *window;
}
#include "cocos2d.h"
@end
class HelloWorld : public cocos2d::CCXApplication {
public:
HelloWorld();
virtual bool initCocos2d();
};
#endif // __HELLOWORLD_H__