资源简介
功能齐全的简单打飞机游戏,声音,粒子特效,敌人的产生。

代码片段和文件信息
using UnityEngine;
using System.Collections;
public class Init : MonoBehaviour {
public Rigidbody ballTemplete;
public Texture fanhuiTexture;
public GUIstyle Mystyle;
// Use this for initialization
void Start () {
Rigidbody ball;
ball = Instantiate (ballTemplete new Vector3 (0 0.7f 0.4f) ballTemplete.rotation) as Rigidbody;
string ballTex;
ballTex = PlayerPrefs.GetString (“Tex“);
ball.renderer.material.mainTexture = (Texture2D)Resources.Load (ballTex typeof(Texture2D));
ball.velocity = new Vector3 (-5 0 -10);
}
// Update is called once per frame
void Update () {
if (Application.platform == RuntimePlatform.Android) {
if (Input.GetKeyUp (KeyCode.Home)) {
Application.Quit ();
}
if (Input.GetKeyUp (KeyCode.Escape)) {
Application.Quit ();
}
}
}
void OnGUI(){
float ratioScaleTempH = Screen.height / 960.0f;
float ratioScaleTemp = Screen.width / 540.0f;
if (GUI.Button (new Rect (380 * ratioScaleTemp 850 * ratioScaleTempH 150 * ratioScaleTemp 80 * ratioScaleTempH)
fanhuiTexture Mystyle)) {
StartGame.isTouched = false;
Application.LoadLevel(“Start“);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2996 2014-02-20 12:32 Pro1\Assembly-CSharp-vs.csproj
文件 2996 2014-02-20 12:32 Pro1\Assembly-CSharp.csproj
I.A.... 9040 2014-02-20 00:12 Pro1\Assets\Ball.prefab
..A..H. 95 2014-02-19 23:29 Pro1\Assets\Ball.prefab.me
I.A.... 26216 2014-02-19 23:57 Pro1\Assets\Init.unity
..A..H. 90 2014-02-19 23:08 Pro1\Assets\Init.unity.me
I.A.... 4224 2014-02-19 21:55 Pro1\Assets\Materials\BackGround.mat
..A..H. 95 2014-02-19 21:55 Pro1\Assets\Materials\BackGround.mat.me
文件 207479 2012-06-11 09:54 Pro1\Assets\Materials\Tex1.gif
..A..H. 914 2014-02-19 21:48 Pro1\Assets\Materials\Tex1.gif.me
I.A.... 4216 2014-02-19 21:58 Pro1\Assets\Materials\Tex1.mat
..A..H. 95 2014-02-19 21:58 Pro1\Assets\Materials\Tex1.mat.me
文件 240272 2012-06-11 09:55 Pro1\Assets\Materials\Tex2.gif
..A..H. 914 2014-02-19 21:48 Pro1\Assets\Materials\Tex2.gif.me
I.A.... 4216 2014-02-19 21:58 Pro1\Assets\Materials\Tex2.mat
..A..H. 95 2014-02-19 21:58 Pro1\Assets\Materials\Tex2.mat.me
文件 171106 2012-06-11 09:57 Pro1\Assets\Materials\Tex3.gif
..A..H. 914 2014-02-19 21:48 Pro1\Assets\Materials\Tex3.gif.me
I.A.... 4216 2014-02-19 21:58 Pro1\Assets\Materials\Tex3.mat
..A..H. 95 2014-02-19 21:58 Pro1\Assets\Materials\Tex3.mat.me
文件 150320 2012-06-11 09:58 Pro1\Assets\Materials\Tex4.gif
..A..H. 914 2014-02-19 21:48 Pro1\Assets\Materials\Tex4.gif.me
I.A.... 4216 2014-02-19 21:58 Pro1\Assets\Materials\Tex4.mat
..A..H. 95 2014-02-19 21:58 Pro1\Assets\Materials\Tex4.mat.me
文件 164283 2012-06-11 09:58 Pro1\Assets\Materials\Tex5.gif
..A..H. 914 2014-02-19 21:48 Pro1\Assets\Materials\Tex5.gif.me
I.A.... 4216 2014-02-19 21:58 Pro1\Assets\Materials\Tex5.mat
..A..H. 95 2014-02-19 21:58 Pro1\Assets\Materials\Tex5.mat.me
I.A.... 4216 2014-02-19 21:58 Pro1\Assets\Materials\Tex6.mat
..A..H. 95 2014-02-19 21:58 Pro1\Assets\Materials\Tex6.mat.me
............此处省略396个文件信息
相关资源
- Scratch 飞机大战.sb3
- planeGame飞机游戏
- scratch飞机大战(.sb3)
- Scratch 飞机大战进阶版.sb3
- 飞机大战(scratch3.0)
- cocos2d-x飞机大战项目
- 微信打飞机IOS版源代码
- 用OPENGL画的一个简单的直升飞机
- flash做的飞机大战小游戏
- j2me手机飞机游戏
- 飞机订票系统软件工程
- 飞机大战.rar
- 飞机大战PlaneWar,Linux下gtk开发。
- 飞机大战_scratch2.0脚本_包含图片素材
- 飞机图标~图形
- 飞机大战加强版
- 全电飞机新型双有源桥双向DC_DC变换器
- 微信打飞机完整素材[音乐+图片]
- FLASH3.0打飞机源代码内附详细制作步骤
- 三维飞机模型
- 飞机通信与导航系统.ppt
- 微信小游戏项目 - 飞机大战
- 使用cocos creator制作的飞机大战 完整资
- cocos游戏样例四_豪华版飞机大战
- 飞机液压传动与伺服控制
- 飞机速度表控件,主要应用于模拟飞
- 飞行器高度表控件,主要应用于模拟
- 微信打飞机小游戏图片音效资源
- cocos2dx-3.0正式版源代码+完整资源 微信
- 飞机游戏需求分析
评论
共有 条评论