Changeset c27abf4 in galcon-client for src/com/example/helloandroid/GameView.java


Ignore:
Timestamp:
May 30, 2010, 9:42:17 PM (14 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
9ef6f68
Parents:
5053d90
Message:

Changed the width of the planet selection circle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/example/helloandroid/GameView.java

    r5053d90 rc27abf4  
    684684                mY = yLowerBound;
    685685
    686                 int result = STATE_LOSE;
    687                 CharSequence message = "";
    688                 Resources res = mContext.getResources();
    689686                double speed = Math.sqrt(mDX * mDX + mDY * mDY);
    690687                boolean onGoal = (mGoalX <= mX - mLanderWidth / 2 && mX
     
    695692                if (onGoal && Math.abs(mHeading - 180) < mGoalAngle
    696693                        && speed > PHYS_SPEED_HYPERSPACE) {
    697                     result = STATE_WIN;
    698694                    mWinsInARow++;
    699695                    doStart();
     
    702698                    // Oddball case: this case does a return, all other cases
    703699                    // fall through to setMode() below.
    704                 } else if (!onGoal) {
    705                     message = res.getText(R.string.message_off_pad);
    706                 } else if (!(mHeading <= mGoalAngle || mHeading >= 360 - mGoalAngle)) {
    707                     message = res.getText(R.string.message_bad_angle);
    708                 } else if (speed > mGoalSpeed) {
    709                     message = res.getText(R.string.message_too_fast);
    710                 } else {
    711                     result = STATE_WIN;
    712                     mWinsInARow++;
    713                 }
    714 
    715                 //setState(result, message);
     700                }
    716701            }
    717702        }
Note: See TracChangeset for help on using the changeset viewer.