Project

General

Profile

« Previous | Next » 

Revision 7ba38dd4

Added by Leszek Koltunski over 2 years ago

Major change: separate the notion of a TwistyObject and its Node. Now,

1) the Node stays when we change objects (this makes transitions faster)
2) it's possible to just create an Object without adding it to the Screen (now app needs to explicitly create the Node and add it to its Screen itself)

View differences:

src/main/java/org/distorted/objectlib/effects/objectchange/ObjectChangeEffectRound.java
32 32
  {
33 33
  public int createEffectsPhase0(int duration)
34 34
    {
35
    float X = mObject[0].getNodeWidth()/3.0f;
35
    float X = mObjectNode.getWidth()/3.0f;
36 36

  
37 37
    mCubeEffectPosition[0] = new int[] {2,3};
38 38
    mCubeEffects[0]        = new Effect[mCubeEffectPosition[0].length];
......
56 56

  
57 57
  public int createEffectsPhase1(int duration)
58 58
    {
59
    float X = mObject[0].getNodeWidth()/3.0f;
59
    float X = mObjectNode.getWidth()/3.0f;
60 60

  
61 61
    mCubeEffectPosition[1] = new int[] {2,3};
62 62
    mCubeEffects[1]        = new Effect[mCubeEffectPosition[1].length];

Also available in: Unified diff