This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d) | |
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external) | |
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos) | |
LOCAL_MODULE := cocos2dcpp_shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool AppDelegate::applicationDidFinishLaunching() { | |
// initialize director | |
auto director = Director::getInstance(); | |
auto glview = director->getOpenGLView(); | |
if(!glview) { | |
glview = GLView::create("My Game"); | |
director->setOpenGLView(glview); | |
} | |
//マルチ解像度 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool AppDelegate::applicationDidFinishLaunching() { | |
// initialize director | |
auto director = Director::getInstance(); | |
auto glview = director->getOpenGLView(); | |
if(!glview) { | |
glview = GLView::create("My Game"); | |
director->setOpenGLView(glview); | |
} | |
//マルチ解像度 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AppActivity extends Cocos2dxActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
// TODO Auto-generated method stub | |
super.onCreate(savedInstanceState); | |
//ボリュームの調整 | |
setVolumeControlStream(AudioManager.STREAM_MUSIC); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __HELLOWORLD_SCENE_H__ | |
#define __HELLOWORLD_SCENE_H__ | |
#include "cocos2d.h" | |
class HelloWorld : public cocos2d::Layer | |
{ | |
public: | |
// there's no 'id' in cpp, so we recommend returning the class instance pointer | |
static cocos2d::Scene* createScene(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################# | |
# ANDROID SDK | |
export ANDROID_SDK_ROOT=/Applications/android-sdk-macosx | |
export PATH=$PATH:$ANDROID_SDK_ROOT | |
export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools | |
################################################################# | |
# ANDROID NDK | |
# export NDK_ROOT=/Applications/android-ndk-r9d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "HelloWorldScene.h" | |
USING_NS_CC; | |
#pragma mark - ### マルチタッチ対応 ### | |
//デバッグ表示用 カラー | |
static const Color3B* s_TouchColors[EventTouch::MAX_TOUCHES] = { | |
&Color3B::YELLOW, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
# Spine/Android.mk | |
######################################################### | |
#-------------------------------------------------------- | |
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
#-------------------------------------------------------- | |
LOCAL_MODULE := spine_static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto * particle = ParticleSystemQuad::create("particle_laserball.plist"); | |
auto pos = Point::ZERO; | |
particle->setPosition(pos); | |
particle->setAutoRemoveOnFinish(true); | |
this->addChild(particle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cocos2d-x ver.3.2 Plugin | |
[例] Admob を入れてみる | |
http://qiita.com/blankblank/items/0daf178e5e070a723798 | |
http://brbranch.jp/blog/201407/cocos2d-x/adlantis_cocos2dx/ | |
~~~ 準備 ~~~ | |
1.プロジェクトの追加 | |
・[Your Project]/cocos2d/plugin/protocols/proj.ios/PluginProtocol.xcodeproj |
OlderNewer