/**
* FileName : ActionsTest.java
* Comment : 돌아온 길을 다시 돌아가라
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionReverse extends ActionDemo {
public void onEnter() {
super.onEnter();
alignSpritesLeft(1);
// 2초동안 오른쪽으로 300만큼 50높이로 4번 뛰어라.
CCJumpBy jump = CCJumpBy.action(2, CGPoint.ccp(300, 0), 50, 4);
// 온길로 돌아가라.
CCSequence action = CCSequence.actions(jump, jump.reverse());
grossini.runAction(action);
}
public String title() {
return "Reverse an action";
}
}
* FileName : ActionsTest.java
* Comment : 돌아온 길을 다시 돌아가라
* @version : 1.0
* @author : coolsharp
* @date : 2011. 10. 18.
*/
static class ActionReverse extends ActionDemo {
public void onEnter() {
super.onEnter();
alignSpritesLeft(1);
// 2초동안 오른쪽으로 300만큼 50높이로 4번 뛰어라.
CCJumpBy jump = CCJumpBy.action(2, CGPoint.ccp(300, 0), 50, 4);
// 온길로 돌아가라.
CCSequence action = CCSequence.actions(jump, jump.reverse());
grossini.runAction(action);
}
public String title() {
return "Reverse an action";
}
}