資源簡介
使用unity3d完成見縫插針游戲。游戲畫面非常的簡潔,藍色的背景中央,放置著一個不斷旋轉的黑色圓,圓的中央顯示得分數即插入圓的針數。游戲的玩法是:當黑色的圓不停轉動的時候,玩家使用鼠標點擊屏幕,針從屏幕下方發射插到圓上,當新插入的針和原先插入的針產生碰撞時,游戲結束。

代碼片段和文件信息
using?UnityEngine;
using?System.Collections;
public?class?FinishText?:?MonoBehaviour?{
void?OnGUI(){
GUIstyle?bb=new?GUIstyle();
bb.normal.background?=?null;????//這是設置背景填充的
bb.normal.textColor=new?Color(255255255);???//設置字體顏色的
bb.fontSize?=?20;???????//設置字體大小
GUI.Label(new?Rect(Screen.width/2-100Screen.height/2-12040030)“游戲結束!當前分數:“+PlayerPrefs.GetInt(“Pscore“)bb);
if(GUI.Button(new?Rect(Screen.width/2-275Screen.height/2-50200100)“再玩一次“)){
Application.LoadLevel(“Main“);
//Application.Quit();
}
if(GUI.Button(new?Rect(Screen.width/2+75Screen.height/2-50200100)“退出游戲“)){
//Application.LoadLevel(“Main“);
Application.Quit();
}
}
//?Use?this?for?initialization
void?Start?()?{
}
//?Update?is?called?once?per?frame
void?Update?()?{
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-01-08?20:00??源碼及報告\
?????目錄???????????0??2020-01-08?20:00??源碼及報告\Bigwork\
?????文件????11288064??2014-01-24?06:21??源碼及報告\Bigwork.exe
?????文件????????3260??2020-01-08?16:31??源碼及報告\Bigwork\Assembly-CSharp-vs.csproj
?????文件????????3260??2020-01-08?16:31??源碼及報告\Bigwork\Assembly-CSharp.csproj
?????文件????????2991??2020-01-08?15:31??源碼及報告\Bigwork\Assembly-Unitysc
?????文件????????2991??2020-01-08?15:31??源碼及報告\Bigwork\Assembly-Unitysc
?????目錄???????????0??2020-01-08?20:00??源碼及報告\Bigwork\Assets\
?????目錄???????????0??2020-01-08?20:00??源碼及報告\Bigwork\Assets\Image\
?????文件?????????107??2020-01-08?11:01??源碼及報告\Bigwork\Assets\Image.me
?????文件????????4778??2017-10-15?12:21??源碼及報告\Bigwork\Assets\Image\Circle.png
?????文件????????1606??2017-10-15?12:21??源碼及報告\Bigwork\Assets\Image\Circle.png.me
?????文件??????????73??2017-10-15?12:27??源碼及報告\Bigwork\Assets\Image\Pin.png
?????文件????????1606??2017-10-15?12:27??源碼及報告\Bigwork\Assets\Image\Pin.png.me
?????目錄???????????0??2020-01-08?20:00??源碼及報告\Bigwork\Assets\Prefabs\
?????文件?????????107??2020-01-08?12:31??源碼及報告\Bigwork\Assets\Prefabs.me
?????文件???????11456??2020-01-08?19:33??源碼及報告\Bigwork\Assets\Prefabs\Pin.prefab
?????文件??????????95??2020-01-08?14:57??源碼及報告\Bigwork\Assets\Prefabs\Pin.prefab.me
?????目錄???????????0??2020-01-08?20:00??源碼及報告\Bigwork\Assets\Scenes\
?????文件?????????107??2020-01-08?12:32??源碼及報告\Bigwork\Assets\Scenes.me
?????文件???????12852??2020-01-08?16:38??源碼及報告\Bigwork\Assets\Scenes\Finish.unity
?????文件??????????90??2020-01-08?16:31??源碼及報告\Bigwork\Assets\Scenes\Finish.unity.me
?????文件???????19240??2020-01-08?16:22??源碼及報告\Bigwork\Assets\Scenes\Main.unity
?????文件??????????90??2020-01-08?12:36??源碼及報告\Bigwork\Assets\Scenes\Main.unity.me
?????文件???????12852??2020-01-08?16:31??源碼及報告\Bigwork\Assets\Scenes\Start.unity
?????文件??????????90??2020-01-08?16:27??源碼及報告\Bigwork\Assets\Scenes\Start.unity.me
?????目錄???????????0??2020-01-08?20:00??源碼及報告\Bigwork\Assets\sc
?????文件?????????107??2020-01-08?12:32??源碼及報告\Bigwork\Assets\sc
?????文件?????????886??2020-01-08?16:32??源碼及報告\Bigwork\Assets\sc
?????文件?????????178??2020-01-08?16:31??源碼及報告\Bigwork\Assets\sc
?????文件????????1317??2020-01-08?15:33??源碼及報告\Bigwork\Assets\sc
............此處省略371個文件信息
- 上一篇:ab5000v20rslinx2.59授權
- 下一篇:OV2640色塊識別.rar
評論
共有 條評論