cocos2d for android - 액션 섞어 쓰기

/**
* FileName : ActionsTest.java
* Comment : CSpawn 테스트
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionSpawn extends ActionDemo {
    public void onEnter() {
        super.onEnter();
 
        alignSpritesLeft(1);
 
        // 이것은 구미호 재주넘기
        // 2초동안 300px만큼 왼쪽으로 50 높이로 4번 뛰면서 동시에 2초동안 720도 재주넘기를 하여
        CCAction action = CCSpawn.actions(CCJumpBy.action(2, CGPoint.ccp(300, 0), 50, 4), CCRotateBy.action(2, 720));
 
        grossini.runAction(action);
    }
 
    public String title() {
        return "Spawn: Jump + Rotate";
    }
}

댓글

이 블로그의 인기 게시물

ViewPager offscreenPageLimit 메모리 상태

ASP에서 C# 언어로 만든 DLL 호출

eskimo esim 사용기 - 일본 / 오사카(23/08/06 ~ 23/08/08)