A rapid and powerful development framework in C++ for cocos2d-x and targets for mobile game building.
It is:
- Productive
- Lightweight Thinking
- High Performance
- Elegance
Setup scene sample.
SC_BEGIN_CONTAINER_ROOT(nullptr,SCWinSize)
// create and add cocos2d::Label with system font
SC_INSERT_LABEL(nullptr,"dock=top|mid-x; y-by=-10;","Title","",20)
// create and add cocos2d::Sprite in the center of container node
SC_INSERT_SPRITE(nullptr,"dock=center;","HelloWorld.png")
// create cocos2d::LayerColor as parent node
SC_BEGIN_CONTAINER_LAYER_COLOR(nullptr, "dock=bottom|right;", Size(80,40), Color4B::BLUE)
// create and add cocos2d::MenuItemLabel
SC_INSERT_BUTTON_LABEL(nullptr,"dock=center;", "exit", "", 18, SCF(onButtonExit))
SC_END_CONTAINER
SC_END_CONTAINER
Setup logic sample.
SC_BEGIN_ROLE(kRoleIDDirector,kTestStrategyID1,this)
ON_MSG_BEHAVIOR(kMsgReady, ptrBehaviorReady)
ON_MSG_BEHAVIOR(kMsgGameOver, ptrBehaviorGameOver)
ON_MSG_NEXT_STRATEGY(kMsgFight, kTestStrategyID2)
IN_STRATEGY(kTestStrategyID2)
ON_MSG_NEXT_STRATEGY(kMsgEsc, kTestStrategyID1)
ON_MSG_BEHAVIOR(kMsgAttact,ptrBvrAttact)
ON_CMD_BEHAVIOR(kMsgDefense, ptrBvrDefense)
ENDIN_STRATEGY
SC_END_ROLE
More powerful and incredible features please explore in the project.
SpeedCC Github: https://github.com/kevinwu1024/SpeedCC
Sample Game: https://github.com/kevinwu1024/SampleGames
Documentation: https://github.com/kevinwu1024/SpeedCC-Doc