diff --git a/template/blackberry/Classes/AppDelegate.cpp b/template/blackberry/Classes/AppDelegate.cpp deleted file mode 100644 index afbc2a92d5..0000000000 --- a/template/blackberry/Classes/AppDelegate.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include "AppDelegate.h" -#include "HelloWorldScene.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - CCDirector *pDirector = CCDirector::sharedDirector(); - - pDirector->setOpenGLView(CCEGLView::sharedOpenGLView()); - - // turn on display FPS - pDirector->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - pDirector->setAnimationInterval(1.0 / 60); - - // create a scene. it's an autorelease object - CCScene *pScene = HelloWorld::scene(); - - // run - pDirector->runWithScene(pScene); - - return true; -} - -// This function will be called when the app is inactive. When comes a phone call,it's be invoked too -void AppDelegate::applicationDidEnterBackground() { - CCDirector::sharedDirector()->stopAnimation(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - CCDirector::sharedDirector()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic(); -} diff --git a/template/blackberry/Classes/AppDelegate.h b/template/blackberry/Classes/AppDelegate.h deleted file mode 100644 index 268c6c6504..0000000000 --- a/template/blackberry/Classes/AppDelegate.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.h" - -/** -@brief The cocos2d Application. - -The reason for implement as private inheritance is to hide some interface call by CCDirector. -*/ -class AppDelegate : private cocos2d::CCApplication -{ -public: - AppDelegate(); - virtual ~AppDelegate(); - - /** - @brief Implement CCDirector and CCScene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/template/blackberry/Classes/HelloWorldScene.cpp b/template/blackberry/Classes/HelloWorldScene.cpp deleted file mode 100644 index ea07b92d9d..0000000000 --- a/template/blackberry/Classes/HelloWorldScene.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include "HelloWorldScene.h" -#include "SimpleAudioEngine.h" - -USING_NS_CC; -using namespace CocosDenshion; - -CCScene* HelloWorld::scene() -{ - // 'scene' is an autorelease object - CCScene *scene = CCScene::create(); - - // 'layer' is an autorelease object - HelloWorld *layer = HelloWorld::create(); - - // add layer as a child to scene - scene->addChild(layer); - - // return the scene - return scene; -} - -// on "init" you need to initialize your instance -bool HelloWorld::init() -{ - ////////////////////////////// - // 1. super init first - if ( !CCLayer::init() ) - { - return false; - } - - CCSize size = CCDirector::sharedDirector()->getWinSize(); - - ///////////////////////////// - // 2. add a menu item with "X" image, which is clicked to quit the program - // you may modify it. - - // add a "close" icon to exit the progress. it's an autorelease object - CCMenuItemImage *pCloseItem = CCMenuItemImage::create( - "CloseNormal.png", - "CloseSelected.png", - this, - menu_selector(HelloWorld::menuCloseCallback)); - - - pCloseItem->setPosition(ccp(size.width - 20, 20)); - - - // create menu, it's an autorelease object - CCMenu* pMenu = CCMenu::create(pCloseItem, NULL); - pMenu->setPosition(CCPointZero); - this->addChild(pMenu, 1); - - ///////////////////////////// - // 3. add your codes below... - - // add a label shows "Hello World" - // create and initialize a label - CCLabelTTF* pLabel = CCLabelTTF::create("Hello World", "Arial", 24); - - // position the label on the center of the screen - pLabel->setPosition( ccp(size.width / 2, size.height - 20) ); - - // add the label as a child to this layer - this->addChild(pLabel, 1); - - // add "HelloWorld" splash screen" - CCSprite* pSprite = CCSprite::create("HelloWorld.png"); - - // position the sprite on the center of the screen - pSprite->setPosition( ccp(size.width/2, size.height/2) ); - - // add the sprite as a child to this layer - this->addChild(pSprite, 0); - - return true; -} - -void HelloWorld::menuCloseCallback(CCObject* pSender) -{ - CCDirector::sharedDirector()->end(); - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) - exit(0); -#endif -} diff --git a/template/blackberry/Classes/HelloWorldScene.h b/template/blackberry/Classes/HelloWorldScene.h deleted file mode 100644 index e202b8c2c3..0000000000 --- a/template/blackberry/Classes/HelloWorldScene.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __HELLOWORLD_SCENE_H__ -#define __HELLOWORLD_SCENE_H__ - -#include "cocos2d.h" - -class HelloWorld : public cocos2d::CCLayer -{ -public: - // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone - virtual bool init(); - - // there's no 'id' in cpp, so we recommand to return the exactly class pointer - static cocos2d::CCScene* scene(); - - // a selector callback - void menuCloseCallback(CCObject* pSender); - - // implement the "static node()" method manually - CREATE_FUNC(HelloWorld); -}; - -#endif // __HELLOWORLD_SCENE_H__ diff --git a/template/blackberry/Resources/HelloWorld.png.REMOVED.git-id b/template/blackberry/Resources/HelloWorld.png.REMOVED.git-id deleted file mode 100644 index f02d84fd8f..0000000000 --- a/template/blackberry/Resources/HelloWorld.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -5fe89fb5bd58cedf13b0363f97b20e3ea7ff255d \ No newline at end of file diff --git a/template/blackberry/proj.blackberry/.cproject b/template/blackberry/proj.blackberry/.cproject deleted file mode 100644 index 70aee18d7b..0000000000 --- a/template/blackberry/proj.blackberry/.cproject +++ /dev/null @@ -1,681 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/template/blackberry/proj.blackberry/.project b/template/blackberry/proj.blackberry/.project deleted file mode 100644 index c4eaeabe3b..0000000000 --- a/template/blackberry/proj.blackberry/.project +++ /dev/null @@ -1,91 +0,0 @@ - - - BBTemplateProject - - - cocos2dx - CocosDenshion - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - ?name? - - - - org.eclipse.cdt.make.core.append_environment - true - - - org.eclipse.cdt.make.core.buildArguments - - - - org.eclipse.cdt.make.core.buildCommand - make - - - org.eclipse.cdt.make.core.buildLocation - ${workspace_loc:/HelloWorld/Device-Debug} - - - org.eclipse.cdt.make.core.contents - org.eclipse.cdt.make.core.activeConfigSettings - - - org.eclipse.cdt.make.core.enableAutoBuild - false - - - org.eclipse.cdt.make.core.enableCleanBuild - true - - - org.eclipse.cdt.make.core.enableFullBuild - true - - - org.eclipse.cdt.make.core.stopOnError - true - - - org.eclipse.cdt.make.core.useDefaultBuildCmd - true - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - com.qnx.tools.ide.bbt.core.bbtnature - org.eclipse.cdt.core.ccnature - - - - Classes - 2 - PARENT-1-PROJECT_LOC/Classes - - - Resources - 2 - PARENT-1-PROJECT_LOC/Resources - - - diff --git a/template/blackberry/proj.blackberry/bar-descriptor.xml b/template/blackberry/proj.blackberry/bar-descriptor.xml deleted file mode 100644 index 1445691822..0000000000 --- a/template/blackberry/proj.blackberry/bar-descriptor.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - org.cocos2dx.BBTemplateProject - - - BBTemplateProject - - - 1.0.0 - - - 1 - - - - - - The BBTemplateProject application - - - - - - Cocos2d-x - - icon.png - - - - - - - none - false - - - - core.games - icon.png - - - Resources - - - - - - - - - - - - armle-v7 - lib/libCocosDenshion.so - BBTemplateProject - - - armle-v7 - lib/libCocosDenshion.so - BBTemplateProject - - - armle-v7 - lib/libCocosDenshion.so - BBTemplateProject - - - armle-v7 - lib/libCocosDenshion.so - BBTemplateProject - - - x86 - lib/libCocosDenshion.so - BBTemplateProject - - - x86 - lib/libCocosDenshion.so - BBTemplateProject - - - x86 - lib/libCocosDenshion.so - BBTemplateProject - - - - - - - - - run_native - - - - - - - - - - - - - - - - diff --git a/template/blackberry/proj.blackberry/empty/empty b/template/blackberry/proj.blackberry/empty/empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/template/blackberry/proj.blackberry/main.cpp b/template/blackberry/proj.blackberry/main.cpp deleted file mode 100644 index 1c2b01d787..0000000000 --- a/template/blackberry/proj.blackberry/main.cpp +++ /dev/null @@ -1,32 +0,0 @@ - -#include "../Classes/AppDelegate.h" -#include "cocos2d.h" - - -USING_NS_CC; - -int main(int argc, char **argv) -{ - // create the application instance - AppDelegate app; - - int width, height; - const char *width_str, *height_str; - width_str = getenv("WIDTH"); - height_str = getenv("HEIGHT"); - if (width_str && height_str) - { - width = atoi(width_str); - height = atoi(height_str); - } - else - { - width = 1024; - height = 600; - } - - CCEGLView* eglView = CCEGLView::sharedOpenGLView(); - eglView->setFrameSize(width, height); - - return CCApplication::sharedApplication()->run(); -}