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 <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
printf("hello world!\n"); | |
return 0; | |
} |
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
.set macro | |
.set reorder | |
.end SetVerts | |
.size SetVerts, .-SetVerts | |
.align 2 | |
.set nomips16 | |
.set nomicromips | |
.ent cpPolyShapePointQuery | |
.type cpPolyShapePointQuery, @function |
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
riq@retinita-2 ~/progs/cocos2d-x/mac (v3)$ make -j8 lua-empty-test | |
[ 1%] [ 1%] [ 1%] Built target xxhash | |
Built target tinyxml2 | |
Built target unzip | |
[ 4%] Built target protobuf | |
[ 78%] Built target cocos2d | |
[ 79%] [ 79%] [ 79%] [ 79%] Building C object cocos/scripting/lua-bindings/CMakeFiles/luacocos2d.dir/__/__/__/external/lua/luasocket/options.c.o | |
Building C object cocos/scripting/lua-bindings/CMakeFiles/luacocos2d.dir/__/__/__/external/lua/luasocket/inet.c.o | |
[ 80%] [ 80%] [ 80%] [ 80%] Building CXX object cocos/scripting/lua-bindings/CMakeFiles/luacocos2d.dir/manual/CCLuaBridge.cpp.o | |
Building CXX object cocos/scripting/lua-bindings/CMakeFiles/luacocos2d.dir/manual/CCLuaEngine.cpp.o |
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
// | |
// API to play 3d animations on Sprite3D | |
// | |
// create the sprite | |
auto sprite3d = Sprite3D::create(“duck.ckb”); | |
sprite3d->setPosition3D(0, 0, 0); | |
this->addChild(sprite3d); | |
// get the animation |
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
### Option 1 | |
### director has a mode | |
def appdelegate: | |
# Projection / Camera is part of director | |
# Scene checks this value in order to create the correct Physics world | |
director.setMode(2D) | |
director.runScene( MyScene() ) |
NewerOlder