91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1011KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-09
  • 語言: 其他
  • 標簽: 完整源碼??

資源簡介

Flappy Bird 游戲完整源碼,親測可用的~~~~~~~~~~~~~~~~~~~~~~~

資源截圖

代碼片段和文件信息

using?UnityEngine;
using?System.Collections;

public?class?Bird?:?MonoBehaviour?{


public?float?timer=0;
public?int?frameNumber=?10;//?frame?number?one?seconds
public?int?frameCount=0;//??frame?counter

public?bool?animation=false;//?whether?play?the?fly?animation
public?bool?canJump=false;

void?Start(){
//this.rigidbody.velocity?=?new?Vector3(200);
}

//?Update?is?called?once?per?frame
void?Update?()?{
//hard?code?here?for?test
// Vector3?vel??=?this.rigidbody.velocity;
// this.rigidbody.velocity?=?new?Vector3(5vel.yvel.z);

//?animation
if(GameManager._intance.GameState==GameManager.GAMESTATE_PLAYING){
timer+=Time.deltaTime;
if(timer>=1.0f/frameNumber){
frameCount++;
timer-=1.0f/frameNumber;
int?frameIndex?=?frameCount%3;
//?update?material?‘s?offset?x
//?how?to?set?the?property?of(x?offset)??MainTex?:?Main?Texture
this.renderer.material.SetTextureOffset(“_MainTex“new?Vector2(0.333333f*frameIndex0));
//this.renderer.material.SetTextureScale(“_MainText“new?Vector2(11));
}
}

if(GameManager._intance.GameState==GameManager.GAMESTATE_PLAYING){
//?control?jump
if(Input.GetMouseButton(0)?){//?left?mouse?button?down
Vector3?vel2??=?this.rigidbody.velocity;
this.rigidbody.velocity?=?new?Vector3(vel2.x5vel2.z);
}
}
}

public?void?getLife(){
rigidbody.useGravity=true;
this.rigidbody.velocity?=?new?Vector3(200);
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\
?????文件????????3259??2017-11-06?13:07??Flappy?Bird?CodeProject\Assembly-CSharp-vs.csproj
?????文件????????3259??2017-11-06?13:07??Flappy?Bird?CodeProject\Assembly-CSharp.csproj
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Audios\
?????文件???????18942??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Audios\sfx_die.ogg
?????文件???????15670??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Audios\sfx_hit.ogg
?????文件???????13235??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Audios\sfx_point.ogg
?????文件???????13697??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Audios\sfx_swooshing.ogg
?????文件????????7728??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Audios\sfx_wing.ogg
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Materials\
?????文件????????4216??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Materials\back.mat
?????文件????????4216??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Materials\bg.mat
?????文件????????4216??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Materials\brid.mat
?????文件????????4396??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Materials\pipe.mat
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Prefabs\
?????文件???????14784??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Prefabs\bg.prefab
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Scenes\
?????文件???????43168??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Scenes\Start.unity
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\scripts\
?????文件????????1432??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\scripts\Bird.cs
?????文件?????????556??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\scripts\FollowBird.cs
?????文件?????????829??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\scripts\GameManager.cs
?????文件?????????674??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\scripts\MoveTrigger.cs
?????文件?????????624??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\scripts\Pipe.cs
?????目錄???????????0??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Textures\
?????文件???????13407??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Textures\back.png
?????文件???????49954??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Textures\bg.jpg
?????文件???????12443??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Textures\bird.png
?????文件???????12794??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Textures\gameover.png
?????文件???????27935??2017-11-06?13:14??Flappy?Bird?CodeProject\Assets\Textures\main.png
............此處省略351個文件信息

評論

共有 條評論