• 大小: 50.54MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-02-19
  • 语言: 其他
  • 标签: cocos2dx  kinectV2  

资源简介

自己实现的kinect v2 的体感游戏打飞机游戏 , 所以分比较高,请见谅

资源截图

代码片段和文件信息

#include “AppDelegate.h“
#include “layerGameStart.h“

USING_NS_CC;

AppDelegate::AppDelegate() {

}

AppDelegate::~AppDelegate() 
{
}

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    CCDirector* pDirector = CCDirector::sharedDirector();
    CCEGLView* pEGLView = CCEGLView::sharedOpenGLView();

    pDirector->setOpenGLView(pEGLView);
pEGLView->setDesignResolutionSize(480 800 kResolutionExactFit);
    // 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 = layerGameStart::scene();

    // run
    pDirector->runWithScene(pScene);

    return true;
}

// This function will be called when the app is inactive. When comes a phone callit‘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();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-03 16:57  PlaneOnClass\
     目录           0  2017-11-03 16:57  PlaneOnClass\Classes\
     文件        1408  2017-09-17 21:07  PlaneOnClass\Classes\AppDelegate.cpp
     文件         955  2014-12-11 11:53  PlaneOnClass\Classes\AppDelegate.h
     文件         166  2017-09-13 09:15  PlaneOnClass\Classes\AppMacros.h
     文件         718  2017-09-13 16:56  PlaneOnClass\Classes\Enemy.cpp
     文件         415  2017-09-13 16:40  PlaneOnClass\Classes\Enemy.h
     文件        2842  2014-12-11 11:53  PlaneOnClass\Classes\HelloWorldScene.cpp
     文件         604  2014-12-11 11:53  PlaneOnClass\Classes\HelloWorldScene.h
     文件        7833  2017-09-25 15:15  PlaneOnClass\Classes\KinectControl.cpp
     文件        1811  2017-09-22 09:29  PlaneOnClass\Classes\KinectControl.h
     文件        3294  2017-09-21 20:39  PlaneOnClass\Classes\layerBullet.cpp
     文件         677  2017-09-15 14:26  PlaneOnClass\Classes\layerBullet.h
     文件        2366  2017-09-22 09:32  PlaneOnClass\Classes\layerControl.cpp
     文件         431  2017-09-22 09:29  PlaneOnClass\Classes\layerControl.h
     文件       12684  2017-09-22 10:14  PlaneOnClass\Classes\layerEnemy.cpp
     文件        1789  2017-09-22 09:29  PlaneOnClass\Classes\layerEnemy.h
     文件        3795  2017-09-30 09:53  PlaneOnClass\Classes\layerFood.cpp
     文件         919  2017-09-15 14:46  PlaneOnClass\Classes\layerFood.h
     文件       14188  2017-09-22 11:11  PlaneOnClass\Classes\layerGameMain.cpp
     文件        1358  2017-09-22 08:45  PlaneOnClass\Classes\layerGameMain.h
     文件        3537  2017-09-25 15:15  PlaneOnClass\Classes\layerGameOver.cpp
     文件         613  2017-09-22 11:06  PlaneOnClass\Classes\layerGameOver.h
     文件        3129  2017-09-25 15:15  PlaneOnClass\Classes\layerGameStart.cpp
     文件         367  2017-09-25 15:15  PlaneOnClass\Classes\layerGameStart.h
     文件        2342  2017-09-25 15:15  PlaneOnClass\Classes\Plane.cpp
     文件         295  2017-09-21 16:13  PlaneOnClass\Classes\Plane.h
     目录           0  2017-11-03 16:57  PlaneOnClass\Resources\
     目录           0  2017-11-03 16:57  PlaneOnClass\Resources\define\
     文件       17545  2017-09-20 10:45  PlaneOnClass\Resources\define\h1.png
     文件       17041  2017-09-20 10:45  PlaneOnClass\Resources\define\h2.png
............此处省略329个文件信息

评论

共有 条评论