Git Product home page Git Product logo

practice_csharp_method_api's Introduction

Practice_CSharp_Method_API

練習:C# 方法與 API

練習重點:定義方法、學會看 Unity API 並應用於遊戲內

練習內容

展示影片

  1. 參考【Fork 分支功能教學】將作業下載並完成編輯
  2. 作業連結:GitHub 連結
  3. 請參考影片建立一個 C# 給狐狸,並定義與影片相同的欄位 (使用標題與範圍)
    1. 移動速度
    2. 剛體 Rigidboyd
    3. 圖片渲染器 SpriteRenderer
  4. 定義一個方法,名稱命名為移動
  5. 使用 Input.GetAxisRaw API 偵測玩家左右按鍵:API 連結
    1. 水平按鈕為 Horizontal 包含左右方向鍵與 A D
  6. 使用 Rigidbody2D.AddForce API 對剛體添加推力:API 連結
    1. 請使用二維向量 new Vector2(X 方向數值, Y 方向數值)
  7. 使用 SpriteRenderer.flipX API 讓狐狸可以翻面:API 連結
  8. 練習完請推送到 GitHub

practice_csharp_method_api's People

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.