I dont's know what 'matrix' and 'clip' was saved and then restored
before and after rotating the Lander.
I just commented out the Canvas.save and Canvas.restore, rebuild and
re-install the LunarLander, it seemed to work as before.
Would anybody help me to understand why using Canvas.save and
Canvas.restore here:

            // Draw the ship with its current rotation
            // canvas.save();
            canvas.rotate((float) mHeading, (float) mX, mCanvasHeight
                    - (float) mY);
            if (mMode == STATE_LOSE) {
                mCrashedImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
                        + mLanderHeight);
                mCrashedImage.draw(canvas);
            } else if (mEngineFiring) {
                mFiringImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
                        + mLanderHeight);
                mFiringImage.draw(canvas);
            } else {
                mLanderImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
                        + mLanderHeight);
                mLanderImage.draw(canvas);
            }
            // canvas.restore();

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to