luuductrung1234 / python-adventure-game

interactive game help to learn Python and introduction to programming (you might need to write some code to win the game)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-adventure-game

unity documentation

[doc] - [manual] - [script references]

  1. Scripting in Unity
  2. MonoBehaviour's callbacks
  3. Transform - manual - script
  4. Script serialization and SerializeField
  5. Input, Input.GetAxis, Input.GetButton
  6. The interval in seconds from the last frame to the current one (depend on CPU computing strength): Time.deltaTime
    • To make a value becomes frame independent, value * Time.deltaTime
  7. Collider2D and Rigidbody2D (involve in Collision2D)
  8. Sprites are made of pixels
    • Resolution refers to the number of pixels in an image (higher resolution = more pixels)
  9. Unity unit
    • 1 Unity unit has no meaning, just whatever we want it to represent. It could be meters, kilometers, miles, inches,...
  10. Pixels Per Unit
    • New assets default to 100 pixels per Unity unit.
    • Bigger asset = less Pixels Per Unit
  11. Creating a Reference
    • If we want to access / change / call anything other than this game object's transform, we need to create a reference
    • We need to tell Unity what the "thing" is that we are referring to.
  12. Group game objects using Tags
  13. Creating Prefabs, and instantiating Prefabs at run time
  14. Spawn game objects randomly/repeatedly
    show more - how to spawn an object - how to spawn anything
  15. How to reference to another game objects (parent, children)?
  16. Cinemachine about - doc
    how to add cinemachine
    • Add the Package Manager window
    • Find and install Cinemachine
    • Add a Virtual Camera
    • Point it to follow the ball
    • Change the Screen X value to show more of whats to come
  17. Effectors 2D
  18. Instead of rotate object using transform.Rotate(), we can use Rigidbody2D's AddTorque (see alsoo angular drag, angular velocity and linear drag)
  19. UI Canvas basic layout
    show more
    • UI = User Interface
    • Include text, buttons, sliders, menus, etc. (user can interact with, not part of game world itself)
    • UI elements live on the "Canvas"
    • The canvas generally exist in "Screen Space" and is mostly separate from the game world
    • You can have multiple canvases
  20. ScriptableObject helps to create objects that don't need to be attached to any game objects. It is most useful for assets which are only meant to store data.
  21. Change sprite of GameObject using Image.sprite.
  22. Use SceneManager.LoadScene to load specific scene (usually apply to perform replay a game).

ironpython

IronPython 2, IronPython 3

further read

About

interactive game help to learn Python and introduction to programming (you might need to write some code to win the game)


Languages

Language:Python 100.0%