/**
* FileName : ActionsTest.java
* Comment : 액션 테스트
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionSequence extends ActionDemo {
public void onEnter() {
super.onEnter();
alignSpritesLeft(1);
// 2초동안 240, 0까지 이동하고 동시에 2초동안 540도 회전(구미호같이?)
CCSequence action = CCSequence.actions(CCMoveBy.action(2, CGPoint.ccp(240, 0)), CCRotateBy.action(2, 540));
// 액션 지정
grossini.runAction(action);
}
public String title() {
return "Sequence: Move + Rotate";
}
}
* FileName : ActionsTest.java
* Comment : 액션 테스트
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionSequence extends ActionDemo {
public void onEnter() {
super.onEnter();
alignSpritesLeft(1);
// 2초동안 240, 0까지 이동하고 동시에 2초동안 540도 회전(구미호같이?)
CCSequence action = CCSequence.actions(CCMoveBy.action(2, CGPoint.ccp(240, 0)), CCRotateBy.action(2, 540));
// 액션 지정
grossini.runAction(action);
}
public String title() {
return "Sequence: Move + Rotate";
}
}