⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jmps.java

📁 一个j2me的滑雪游戏
💻 JAVA
📖 第 1 页 / 共 3 页
字号:

			GF[1] = true;
			// 僜僼僩僉乕塃	// 啦馁夋柺傊
			if( ( Key[1] & 4194304 ) != 0 ){
				nSel = 0;
				GM = 0;
				return;
			}


			// 寛掕僉乕
			if( ( Key[1] & 1048608 ) != 0 ){
				Draw();

				nStage = 1;


				LoadTeamGraph();
				GF[11] = true;
				Frame = 0;
				GM = 200;
				nSel = 0;
				Kaisuu = 1;
				return;
			}
		}
		
		//--------------------------------------------------------------------------------------------------------------------------------------------乣夞愴昞帵夋柺
		if( GM == 200 ){

			setSoftLabel(SOFT_KEY_2, Sys[11] );// 啦馁傊
			// 憡庤慖傃
			if( GF[11] ){
				System.gc();
				System.gc();
				for( i = 1; i < 4; ){

					j = Math.abs( R.nextInt() % 7 );
					if( i == 1 && nStage == 5 ) j = 7;
					for( x = 0; x < i; x++ )
						if( j == VSList[ x ] && j != 7 )
							break;

					if( x == i ){
						VSList[ i ] = j;
						i++;
					}

				}
				GF[11] = false;
			}

			// 僠乕儉柤偩偟
			Frame++;
			if( nSel < 5 && CupTime[nSel] < Frame ){
				nSel++;
				if( nSel == 5 )
					setSoftLabel(SOFT_KEY_1, Sys[13] );// 師傊
//			System.err.println( nSel );
			}

			GF[1] = true;

			if( ( Key[1] & ( 1048608 | 2097152 ) ) != 0 && nSel == 5 ){
				GM = 300;

				// 帺暘摼揰僋儕傾乕
				nScore[0] = 0;
				// 揋偺摼揰
				nScore[1] = CpuScore[    ( nStage - 1 ) * 6] + Math.abs( R.nextInt() % CpuScore[30 + ( nStage - 1 ) * 6] );
				nScore[2] = CpuScore[1 + ( nStage - 1 ) * 6] + Math.abs( R.nextInt() % CpuScore[31 + ( nStage - 1 ) * 6] );
				nScore[3] = CpuScore[2 + ( nStage - 1 ) * 6] + Math.abs( R.nextInt() % CpuScore[32 + ( nStage - 1 ) * 6] );




				GF[11] = true;

				Frame = 0;
				return;
			}

		}
		
		//-------------------------------------------------------------------------------------------------------------------------------------------- 妸憱懸偪
		if( GM == 300 ){

//			GF[15] = GF[14];

			if( GF[11] ){
				setSoftLabel(SOFT_KEY_1, null );// 
				LineY = 0;
				nScroll = 0;
				LineX = 0;
				Frame = 0;
				JX = 59;
				PXY = 0;
				GF[11] = false;
			}

//			GF[2] = true;
			if( Frame > 24 ){

				setSoftLabel(SOFT_KEY_1, Sys[48] );// GO
				GM = 350;

				CWind();
				WindTime = 0;

				Frame = 0;

				GF[1] = true;

			}else{
				Frame++;
			}
		}
		//-------------------------------------------------------------------------------------------------------------------------------------------- 妸憱懸偪
		if( GM == 350 ){

			GF[2] = true;

			GF[15] = false;

			// HowTo 3
			if( GF[14] && Frame > 54 ){
				Key[1] = 1048608;

				// 庛偺岦偐偄晽偱僗僞乕僩
				Wind = 0;
				WindPow = 1;
				WindUD = 255;// 晽塭嬁柍偟
				WindLRPow = 0;

				GF[15] = false;
			}
			// 妸憱奐巒
			if( ( Key[1] & ( 1048608 | 2097152 ) ) != 0 ){
				GM = 400;
				WindTime = 10 + Math.abs( R.nextInt() % 11 );;
				setSoftLabel(SOFT_KEY_1, null );// 
				Frame = 0;
				WindLR = 0;
				OffJP = 0;
				Pow = 0;
				GF[1] = true;
				GF[11] = false;// 僷儚乕寛掕柍偟
				return;
			}


			// 0.5昩偍偒偺晽曄壔
			WindTime = ( WindTime + 1 ) % 5;
			if( WindTime == 0 ){
				CWind();
				WindTime = 0;
			}

			Frame++;

			// HowTo 1
			if( GF[14] && ( Frame > 24 && Frame < 40 ) ){
				GF[15] = true;
			}
			// HowTo 2
			if( GF[14] && Frame > 39 ){
				HowTo = 1;
				GF[15] = true;
			}


		}
		//-------------------------------------------------------------------------------------------------------------------------------------------- 壓傝拞
		if( GM == 400 ){

//			GF[1] = true;
			Frame++;

			// 壛懍
			if( Frame < 31 ){
				CVY = ( 10 * Frame ) / 30;
			}
			LineOY = LineY;
			LineY -= CVY;
			// 儖乕僾僗僋儘乕儖
			if( LineY < 0 ) LineY += 32;

			nScroll += CVY;// 憤僗僋儘乕儖

			if( nScroll > 297 ){// 僕儍儞僾戜偺搊応
				JX -= 10;
				GF[1] = true;
			}

			// 僕儍儞僾僷儚乕棴傔僗僞乕僩丠
			if( nScroll > 317 && !GF[11] ){
				Pow = ( Pow + 5 ) % 55;
				if( ( Key[1] & 1048608 ) != 0 ) GF[11] = true;
			}

			if( Frame == 51 ){
				PXY = 0;
				Draw();
				GM = 500;
				Frame = 0;
				CVY = 1;
				JX = -2;

				// HowTo Timer
				Temp[0] = 0;
				// HowTo Frag
				GF[16] = GF[14];
				HowTo = 2;
				return;
			}


		}
		
		//-------------------------------------------------------------------------------------------------------------------------------------------- 僕儍儞僾
		if( GM == 500 ){

			GF[1] = true;

			if( !GF[16] ){
				LineOY = LineY;
				LineY -= CVY;
				nScroll += 3 * CVY;// 憤僗僋儘乕儖

				// 寛掕僉乕枖偼丄僷儚乕偑侽偺帪偵丄僷儚乕偺寛掕
				if( ( Key[1] & 1048608 ) != 0 || Pow == 0 ) GF[11] = true;

				if( LineY < 0 ) LineY += 32;

				// 傑偩乕僷儚乕偼棴傑傞丠
				if( !GF[11] ){
					Pow = ( Pow + 5 ) % 55;
				}

				// 僷儚乕儅僢僋僗偱HowTo昞帵
				if( Pow == 50 && GF[14] && !GF[11] ){
					GF[11] = true;// How To 帪偼俵倎倶偱寛掕
					GF[16] = true;
				}


				// 墶僗僋儘乕儖
				Frame++;
				LineX = -( 100 * Frame ) / 10;
				// 墶僗僋儘乕儖昞帵曗惓
				OffJP = 3 * Frame;

				if( Frame == 11 ){
					Draw();

					// 僷儚乕儅僢僋僗偑俇侽偱曗惓
					Pow = ( 60 * ( 50 + Pow ) ) / 100;
					CVY = 10;// 僗僋儘乕儖僗僺乕僪

					GM = 600;
					Frame = 0;
					Kyori = 0;// 懾嬻僼儗乕儉悢弶婜壔
					LineX = -100;
					LineY = 0;
//					RedLine = 0;
					Hikyori = 0;// 旘嫍棧弶婜壔
					RedPoint = 0;// 僶儔儞僗愒僼儗乕儉悢弶婜壔
					GF[3] = true;
					GF[12] = false;// 僥儗億乕僘弶婜壔
					GF[16] = GF[14];

					// 崙暿儅僢僋僗僷儚乕
					if( Pow == 60 ) Pow = Power[ VSList[0] ];

					return;
				}
			}
			else{
				// 1.5昩娫偺暥帤昞帵
				GF[15] = true;
				Temp[0] = ( Temp[0] + 1 ) % 15;
				if( Temp[0] == 0 ){
					HowTo++;
					GF[15] = false;
					GF[16] = false;
				}
			}


		}
		//-------------------------------------------------------------------------------------------------------------------------------------------- 懾嬻
		if( GM == 600 ){

			Frame++;
			// 懾嬻僼儗乕儉悢
			Hikyori++;
			GF[1] = true;
			LineOY = LineY;
			LineY -= CVY;
			if( LineY < 0 ){
				LineY += 32;
			}

			GF[15] = false;
			if( GF[14] && ( Frame == 11 || Frame == 12 || Frame == 22 || Frame == 23 ) ){// How To 昞帵
				GM = 650;
				Temp[0] = 0;
				GF[15] = true;
				return;
			}
			else{

				// 嫍棧偺寁嶼
				Kyori += ( 5 * Pow ) / 6;


				// 晽偺敪惗僇僂儞僩
				WindTime--;
				if( WindTime <= 0 ){
					CWind();
				}


				// 僶儔儞僗惂屼拞乣
				if( Frame % 3 == 0 ){
					i = WindPow * 2;
					// 僆儗儞僕僄儕傾丠
					if( Math.abs( WindLR ) > ( Meter[ i + 5 ] / 2 ) ){
						Pow--;
					}
					// 儗僢僪僄儕傾丠
					if( Math.abs( WindLR ) > ( Meter[ i + 4 ] / 2 ) ){
						RedPoint++;
						Pow--;
					}
				}

				// 捛偄晽敪惗偠偺僷儚乕僟僂儞
				if( Frame % WindUD == 0 ){
					Pow--;
				}

				// 塣摦僄僱儖僊乕
				Pow--;
				if( GF[12] ) Pow--;// 僥儗儅乕僋帪偺幐懍


				if( GF[14] && Math.abs( WindLR ) > 10 ){// How To 帪偺帺摦墶僉乕擖椡
					if( WindLR < 0 ){
						Key[0] = 262728;
					}
					if( WindLR > 0 ){
						Key[0] = 65682;
					}
				}


				// 僶儔儞僗惂屼
				i = 0;
				// 嵍僉乕
				if( ( Key[0] & 65682 ) != 0 ){
					i -= Math.abs( WindLRPow ) + 1;
				}
				// 塃僉乕
				if( ( Key[0] & 262728 ) != 0 ){
					i += Math.abs( WindLRPow ) + 1;
				}
				// 寛掕僉乕丗拝抧懱惂
				if( ( Key[1] & ( 524544 | 1048608 ) ) != 0 ){
					GF[12] = true;
				}


				// 晽偵傛傞僶儔儞僗曄壔
				WindLR += WindLRPow + i;
				if( Math.abs( WindLR ) > 32 )
					WindLR = ( 32 * WindLR ) / Math.abs( WindLR );// 32埲忋偼32傊曗惓

				// 拝抧HowTo
				if( Pow <= 10 && GF[16] ){
					Frame = 0;
					GM = 650;
					GF[16] = false;
				}
				// 拝抧
				if( Pow <= 0 ){
					GM = 700;
					Frame = 30;
					Pow = 0;
					Temp[0] = 0;
				}


				// 偡偔儘乕傞僆僼僙僢僩
				LineX = ( -200 * Pow ) / 60;
			}
				

		}
		//-------------------------------------------------------------------------------------------------------------------------------------------- How To 梡
		if( GM == 650 ){
//			GF[1] = true;
			GF[15] = true;

			Temp[0] = ( Temp[0] + 1 ) % 16;
			if( Temp[0] == 0 ){
				HowTo++;
				// 楢懕昞帵丠
				if( HowTo == 9 ) return;

				GF[12] = true;// 僥儗儅乕僋
				GF[15] = false;
				GM = 600;
				return;
			}
		}
		//-------------------------------------------------------------------------------------------------------------------------------------------- 拝抧
		if( GM == 700 ){

			GF[1] = true;
			LineOY = LineY;

			Frame--;
			if( Frame > 0 ){// 3昩娫偡傋傞

				PXY = 5 * ( 30 - Frame );// 僾儗僀儎乕僉儍儔偺堏摦
				if( Frame > 19 && ( Key[1] & 1048608  ) != 0 && ( VSList[0] == 7 || VSList[0] == 6 ) )// 塅拡恖偐讲絺蛡

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -