This is the reading note after reading
Here is the part of the Chapter 3.
This is the reading note after reading
Here is the part of the introduction chapter.
《Unity Shader 入门精要》Chapter 5 — Reading Note
If you have ever played Super Meat Boy by Edmund McMillen, you must be impressed by one of the interesting mechanisms, the charged jump.
Here are the reading notes after watching 2D Game Creation in Unity Tutorial.
“Sprites/Diffuse” is an optimised material for use with sprite, which can react to the light. Usually, light is not a necessary part in 2D game creation. But if you want the light effect, remember to set the z-order of the light to a negative value (e.g. -3).
Sprite editor is only used for atlas and sprite sheets. Use “slice” tool can automatically generate sprites from the resource. For atlas we use automatic type slice, and for sprite sheets we use grid type slice.
Sorting layer is used for rendering objects in different order, as an optimised alternative of z-order. And order in layer defines the render order in that sorting layer. The object with the small value will be rendered first.
Body Type:
- Dynamic: Normal rigidbody2d.
- Kinematic: Rigidbody2d not affected by collision/gravity, and should be manually controlled.
- Static: Static rigidbody2d.
The hinge joint 2D is a component that allows a sprite to rotate around a point while being controlled by 2D rigidbody physics.
By using hinge joint 2D, we can realize some interesting mechanics in games. For example, a spring-load trap door, a chain or a rope.
The area effector is used to apply physics forces to objects whthin a specific area. The area object attached the area effector should also have a collider with “Used by Effector” set to true. It’s not necessary to use a trigger collider. If it’s not a trigger, the force will only be applied on the surface of the collision.
Distance joint 2d is a component that allows a sprite to maintain a fix distance with a point while being controlled by 2d rigidbody physics.
If the designed distance is less than the actual distance, a relative force will be applied to them to make them near and reach the designed distance.
Point effector is like area effector. The only difference is that for area effector, the force is directional. Howerver, in point effector, the direction of the force is from the source to the object. For example, the gravity of the earth can be considered as a point effector.
Most of the variables are the same as area effector.
This article is about the basic understanding on scriptable objects in Unity, including why, when and how to use scriptable objects.
Here is the reading notes on Intermediate Gameplay Scripting
Here is a basic understand on finite state machines in Unity after reading < Game Design Patterns > by Bob Nystorm.
Here is a basic understand on how coroutine works in Unity.
最近写Python经常需要使用排序,Python2.7内置了两个排序函数,分别是sort和sorted,那么他们的用法和相互的区别是什么样子的呢。