Revision 7ba38dd4
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/effects/win/WinEffectGlow.java | ||
---|---|---|
69 | 69 |
|
70 | 70 |
float moveX = mPre.getMoveX(); |
71 | 71 |
float moveY = mPre.getMoveY(); |
72 |
int width = mFrame.getWidth();
|
|
73 |
int height = mFrame.getHeight();
|
|
72 |
int width = mObjectNode.getWidth();
|
|
73 |
int height = mObjectNode.getHeight();
|
|
74 | 74 |
Static3D center = new Static3D(moveX/width, moveY/height, 0); |
75 | 75 |
float ratio = 0.5f*mObject.getRatio(); |
76 | 76 |
|
Also available in: Unified diff
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)