Actions support. #4

Closed
psineur opened this Issue Dec 24, 2011 · 4 comments

Projects

None yet

2 participants

@psineur
Owner
psineur commented Dec 24, 2011

Subj.

Adding AMC Support to Actions is straight-forward.
It may take some time & maybe some inside knowledge of AMC needed, so i will use this issue to comment & mention from commits any progress regarding actions AMC support.

feature-amc branch will be used as main "Static Nodes AMC Support" Pull Request branch.
For actions i will use feature-amc-actions branch.

Current status of "feature-amc-actions" branch:

Must Have Actions

CCAction.m

  • CCAction-------------------Supported, Tested (ActionsTest)
  • CCFiniteTimeAction----Supported, Tested (ActionsTest)
  • CCRepeatForever-------Supported, Tested (ActionsTest)
  • CCSpeed-------------------Supported, Tested (ActionsTest)
  • CCFollow-------------------Supported, Tested (ActionsTest)

CCActionInterval.m

  • CCActionInterval--------Supported, Tested (ActionsTest)
  • CCSequence-------------Supported, Tested (ActionsTest), Issues = #17
  • CCRepeat-----------------Supported, Tested (ActionsTest)
  • CCSpawn------------------Supported, Tested (ActionsTest)
  • CCRotateTo--------------Supported, Tested (ActionsTest)
  • CCRotateBy--------------Supported, Tested (ActionsTest)
  • CCMoveTo----------------Supported, Tested (ActionsTest)
  • CCMoveBy----------------Supported, Tested (ActionsTest)
  • CCSkewTo----------------Supported, Tested (ActionsTest)
  • CCSkewBy----------------Supported, Tested (ActionsTest)
  • CCJumpTo----------------Supported, Tested (ActionsTest)
  • CCJumpBy----------------Supported, Tested (ActionsTest)
  • CCBezierTo---------------Supported, Tested (ActionsTest)
  • CBezierBy-----------------Supported, Tested (ActionsTest)
  • CCScaleTo----------------Supported, Tested (ActionsTest)
  • CCScaleBy----------------Supported, Tested (ActionsTest)
  • CCBlink---------------------Supported, Tested (ActionsTest)
  • CCFadeIn------------------Supported, Tested (ActionsTest)
  • CCFadeOut----------------Supported, Tested (ActionsTest)
  • CCFadeTo------------------Supported, Tested (ActionsTest)
  • CCTintTo--------------------Supported, Tested (ActionsTest)
  • CCTintBy--------------------Supported, Tested (ActionsTest)
  • CCDelayTime--------------Supported, Tested (ActionsTest)
  • CCReverseTime----------Supported, Tested (ActionsTest)
  • CCAnimate-----------------Supported, Tested (ActionsTest)

CCActionTween.m

  • CCActionTween----------Supported, Tested (ActionsTest)

CCActionProgressTimer.m

  • CCProgressTo----------Supported, Tested (ActionsTest)
  • CCProgressFromTo---Supported, Tested (ActionsTest)

CCActionInstant.m

  • CCActionInstant-------------Supported, Tested (ActionsTest)
  • CCShow------------------------Supported, Tested (ActionsTest)
  • CHide----------------------------Supported, Tested (ActionsTest)
  • CCToggleVisibility----------Supported, Tested (ActionsTest)
  • CCFlipX------------------------Supported, Tested (ActionsTest)
  • CCFlipY------------------------Supported, Tested (ActionsTest)
  • CCPlace------------------------Supported, Tested (ActionsTest)
  • CCCallFunc-------------------Supported, Tested (ActionsTest)
  • CCCallFuncN -----------------Supported, Tested (ActionsTest)
  • CCCallFuncND---------------NOT-SUPPORTED (Can't save custom data)
  • CCCallFuncO-----------------NOT-SUPPORTED (Can't save custom object)
  • CCCallBlock-------------------NOT-SUPPORTED (Can't save block)
  • CCCallBlockN-----------------NOT-SUPPORTED (Can't save block)

CCActionCamera.m

  • CCActionCamera-------------Supported, Tested (ActionsTest)
  • CCOrbitCamera---------------Supported, Tested (ActionsTest)

CCActionEase.m

  • CCActionEase---------------------Supported, Tested (EaseActionsTest)
  • CCEaseRateAction--------------Supported, Tested (EaseActionsTest)
  • CCEaseIn---------------------------Supported, Tested (EaseActionsTest)
  • CCEaseOut------------------------Supported, Tested (EaseActionsTest)
  • CCEaseInOut----------------------Supported, Tested (EaseActionsTest)
  • CCEaseExponentialIn----------Supported, Tested (EaseActionsTest)
  • CCEaseExponentialOut--------Supported, Tested (EaseActionsTest)
  • CCEaseExponentialInOut-----Supported, Tested (EaseActionsTest)
  • CCEaseSineIn---------------------Supported, Tested (EaseActionsTest)
  • CCEaseSineOut-------------------Supported, Tested (EaseActionsTest)
  • CCEaseSineInOut----------------Supported, Tested (EaseActionsTest)
  • CCEaseElastic---------------------Supported, Tested (EaseActionsTest)
  • CCEaseElasticIn------------------Supported, Tested (EaseActionsTest)
  • CCEaseElasticOut---------------Supported, Tested (EaseActionsTest)
  • CCEaseElasticInOut-------------Supported, Tested (EaseActionsTest)
  • CCEaseBounce--------------------Supported, Tested (EaseActionsTest)
  • CCEaseBounceIn-----------------Supported, Tested (EaseActionsTest)
  • CCEaseBounceOut---------------Supported, Tested (EaseActionsTest)
  • CCEaseBounceInOut------------Supported, Tested (EaseActionsTest)
  • CCEaseBackIn---------------------Supported, Tested (EaseActionsTest)
  • CCEaseBackOut-------------------Supported, Tested (EaseActionsTest)
  • CCEaseBackInOut----------------Supported, Tested (EaseActionsTest)
@alexeylang alexeylang was assigned Dec 24, 2011
@psineur psineur was assigned Jan 14, 2012
@psineur
Owner
psineur commented Jan 14, 2012

CCAnimation - should work out of the box, cause CCSpriteFrame is ready.
Just some additional logic must be added to recache used animations & spriteFrames.
Look for TODOs for Issue #9 in psineur/cocos2d-iphone.

Для того чтобы экономить память и хранить Анимации И Кадры в едином месте
удобном для редактирования - необходимо ввести понятие key в CCSpriteFrame
и в CCAnimation.

CCAnimation использует те же самые кадры, которые ей дали.
ССAnimate использует ту же самую анимацию, что ей дали.

Обычно CCAnimation & CCSpriteFrame поступают из одного места и сохранены по
каким-то ключам в своих кешах.
Так что делаем следующим образом:

  1. Когда сохраняем анимацию в кеше - задаем ей имя. Когда выкидываем - убираем ей имя.
  2. Когда сохраняем анимацию - сохраняем ее имя (не проверяем закешировано ли
  • для того, чтобы можно было сохранить анимацию на будущее для шары с другими,
    даже если она не в кеше) и все данные - всегда.
    1. Когда грузим - проверяем есть ли в кеше уже с таким именем
  • Если нет - добавляем
  • Если есть - используем повторно всегда, но проверяем равны ли,
  • Не равны - говорим об этом
  • Равны - все ок.
@psineur psineur added a commit that referenced this issue Jan 14, 2012
@psineur AMCTest: Move actions TODO to #4 b1ee0d6
@psineur
Owner
psineur commented Jan 20, 2012

Updated first post - added current status.

@psineur
Owner
psineur commented Jan 22, 2012

Edited issue description. Moved Effects Actions to #18

@psineur
Owner
psineur commented Jan 28, 2012

All must have actions Supported now: e1520e5
Effects Actions Issue is located here: #18

Closed.

@psineur psineur closed this Jan 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment