Giter VIP home page Giter VIP logo

jump's Introduction

jump's People

Contributors

tzutzu858 avatar

Watchers

 avatar

jump's Issues

場景切換比較

unity

SceneManager.LoadScene("要切換的場景名稱");

Android studio

startActivity(new Intent(現在的Activity名稱.this,要切換的Activity名稱.class));
finish();

Mecanim

Mecanim是從建立到播放都可以執行的功能
使用Mecanim時,只要在設計遊戲時先做好各個動畫
並指定好各個動畫的切換時間點就可以了
遊戲執行時,Mecanim會判斷物件的狀態並自動切換與撥放動畫

Input.acceleration的判讀

Acceleration所回傳的數值是一個三維向量Vector3
也就是一個XYZ的組合

當手機的傾斜大於一定值讓角色左右移動

if(Input.acceleration.x > this.threshold) key = 1;
if(Input.acceleration.x < -this.threshold) key = -1;

前面先宣告float threshold = 0.2f;

Physics物理引擎

讓物件做出物理性的動作
包含Rigidbody 和 Collider 兩種物件

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.