资源简介

这是我用Unity3D 4.X 做的Flappy bird游戏, 使用unity3d开发 , 力度之小, 难度之低 , 你要试过才知道. 希望能给你带来一点小帮助.

资源截图

代码片段和文件信息

using UnityEngine;
using System.Collections;

public class BirdContorl : MonoBehaviour {

// Use this for initialization
void Start () {

}

public bool keyUpPass = false;
IEnumerator KeyUp() {
bool KeyUpAct = true;
while(KeyUpAct){
if (Input.GetKeyDown(KeyCode.Space) || keyUpPass) {
rigidbody.AddForce(0ValueSetting.GRAVITY_UPVALUE0);
}
yield return null;
}
}

UNIS_TaskTool TaskKeyUp = null;
public void GameInit(){
TaskKeyUp = new UNIS_TaskTool(KeyUp()false);
}


public void GamePlay(){
TaskKeyUp.Start();
rigidbody.useGravity = true;
}

public void GamePause(){
TaskKeyUp.Pause();
}

public  void GameStop(){
TaskKeyUp.Stop();
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3196  2014-10-20 16:40  FlhappyBird\Assembly-CSharp-vs.csproj

     文件       3196  2014-10-20 16:40  FlhappyBird\Assembly-CSharp.csproj

    I.A....     24228  2014-10-21 08:21  FlhappyBird\Assets\Play.unity

     文件      47891  2014-03-16 23:29  FlhappyBird\Assets\Resources\flappy_bird\background.png

     文件       2327  2014-03-16 23:27  FlhappyBird\Assets\Resources\flappy_bird\bird_blue_0.png

     文件       2411  2014-03-16 23:28  FlhappyBird\Assets\Resources\flappy_bird\bird_blue_1.png

     文件       2404  2014-03-16 23:28  FlhappyBird\Assets\Resources\flappy_bird\bird_blue_2.png

     文件      10014  2014-03-16 23:28  FlhappyBird\Assets\Resources\flappy_bird\bound_down.png

     文件      10375  2014-03-16 23:28  FlhappyBird\Assets\Resources\flappy_bird\bound_up.png

    I.A....      4236  2014-10-20 16:16  FlhappyBird\Assets\Resources\flappy_bird\Materials\background 1.mat

    I.A....      4236  2014-10-20 15:58  FlhappyBird\Assets\Resources\flappy_bird\Materials\background.mat

    I.A....      4236  2014-10-20 15:58  FlhappyBird\Assets\Resources\flappy_bird\Materials\bird_blue_0.mat

    I.A....      4236  2014-10-20 16:16  FlhappyBird\Assets\Resources\flappy_bird\Materials\bird_blue_1.mat

    I.A....      4236  2014-10-20 16:27  FlhappyBird\Assets\Resources\flappy_bird\Materials\bound_down.mat

    I.A....      4232  2014-10-20 16:27  FlhappyBird\Assets\Resources\flappy_bird\Materials\bound_up.mat

    I.A....     13352  2014-10-20 16:52  FlhappyBird\Assets\Resources\flappy_bird\Postobject.prefab

     文件      18942  2014-01-22 06:44  FlhappyBird\Assets\Resources\flappy_bird\sfx_die.ogg

     文件      15670  2014-01-22 06:44  FlhappyBird\Assets\Resources\flappy_bird\sfx_hit.ogg

     文件      13235  2014-01-22 06:44  FlhappyBird\Assets\Resources\flappy_bird\sfx_point.ogg

     文件      13697  2014-01-22 06:44  FlhappyBird\Assets\Resources\flappy_bird\sfx_swooshing.ogg

     文件       7728  2014-01-22 06:44  FlhappyBird\Assets\Resources\flappy_bird\sfx_wing.ogg

     文件        703  2014-10-20 10:53  FlhappyBird\Assets\script\BirdContorl.cs

     文件       1179  2014-10-20 14:03  FlhappyBird\Assets\script\PlayMana.cs

     文件       2568  2014-10-20 17:24  FlhappyBird\Assets\script\PlaySceneMana.cs

     文件        727  2014-10-20 17:39  FlhappyBird\Assets\script\Post.cs

     文件       2348  2014-10-20 09:39  FlhappyBird\Assets\script\UNIS_frameTest.cs

     文件       7153  2014-10-20 14:01  FlhappyBird\Assets\script\UNIS_objectPool.cs

     文件       2159  2014-10-15 17:23  FlhappyBird\Assets\script\UNIS_TaskTool.cs

     文件        711  2014-10-20 14:38  FlhappyBird\Assets\script\ValueSetting.cs

    I.A....      1853  2013-07-20 22:45  FlhappyBird\Assets\Standard Assets\Physic Materials\Bouncy.physicmaterial

............此处省略362个文件信息

评论

共有 条评论