Skip to content

Instantly share code, notes, and snippets.

@jake1256
jake1256 / MainActivity.java
Created March 25, 2014 13:39
【Android NDK】sigsegvをフックする【cocos2d-x】 ref: http://qiita.com/kuuki_yomenaio/items/08781e4778df3928bb9b
static private native void initSignalHandler();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initSignalHandler();
}
@jake1256
jake1256 / CCAction.cpp
Created February 23, 2014 10:26
【cocos2d-x v3.0 beta2】カメラを追尾させてみよう!あれ、使いにくい? ref: http://qiita.com/kuuki_yomenaio/items/bb036ee0399e011500d6
void Follow::step(float dt)
{
CC_UNUSED_PARAM(dt);
if(_boundarySet)
{
// whole map fits inside a single screen,
// no need to modify the position - unless map boundaries are increased
if(_boundaryFullyCovered)