当前位置:网站首页>Unity elementary case notes of angry birds Siki college 1-6
Unity elementary case notes of angry birds Siki college 1-6
2022-07-03 23:48:00 【Hair is going to disappear】
The game logic :
1. The dragging of birds ( Maximum moving distance )
2. The birds fly out
3. Birds and pigs , Wood collision ( Death , injured )
4. Drawing of rubber band
5. One bird to many conversion
6. Lens following
7. Make special effects
8. Game over , The judgement of victory
9. Sound effect
Knowledge point :
1. Transformation between screen coordinates and world coordinates
2.springjoint Use of components
3. collision detection
4.line renderer
Start making
First, create a new one 2d file , Save the scene
Make 3 A scenario : Load scene , Observe and select the scene , The scene when the game starts

Import material package
How to choose one of the multiple material drawings ?
single Change to multiple

Click on apply

Click on sprite editor, Click again slice Then you can cut
Continue to click on the apply,

Click the small triangle next to it to get more pictures , Number 159,0,8 Drag in hierarchy, Adjusting position
If the camera is too big , Click on scene On the interface gizmos, hold 3d lcons The small
After adjusting the position , You will find that the relationship between grades is a little wrong , That is, the bird is blocked by the slingshot , The bird should be on the right branch , Under the left branch

Right click add, Name it player, Choose all three , Change it to player layer
player Layer will cover default layer
The bird is changed to 1, On the left 2, On the right 0 , You can rename the number to bird,right,left
Add a component to the bird spring joint 2d( involve 2 A rigid body ) after , It is found that the rigid body component is automatically added to you rigidbody 2d
After clicking run, the bird will perform an elastic movement ( Similar to simple pendulum )
to right Add a rigid body component

hold body type Change it to static( Don't want him to be under gravity )
Click back to the bird spring joint2d, hold right Drag onto connected rigidbody in
The position of the small blue dot can be adjusted
边栏推荐
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- How to write a good title of 10w+?
- Report on the construction and development mode and investment mode of sponge cities in China 2022-2028
- 股票开户佣金最低的券商有哪些大家推荐一下,手机上开户安全吗
- Is user authentication really simple
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Common mode interference of EMC
- 2.14 summary
- Fashion cloud interview questions series - JS high-frequency handwritten code questions
- 在恒泰证券开户怎么样?安全吗?
猜你喜欢

Fluent learning (5) GridView
![[MySQL] classification of multi table queries](/img/96/2e51ae8d52ea8184945e0540ce18f5.jpg)
[MySQL] classification of multi table queries

Smart fan system based on stm32f407

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

Correlation analysis summary

I wrote a chat software with timeout connect function

Solve the problem that the kaggle account registration does not display the verification code

Qtoolbutton - menu and popup mode
![Docking Alipay process [pay in person, QR code Payment]](/img/30/665580241020ee3adb872e725f0624.jpg)
Docking Alipay process [pay in person, QR code Payment]

X Opencv feature point detection and matching
随机推荐
ADB related commands
Selenium library 4.5.0 keyword explanation (II)
Idea set class header comments
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Pandaoxi's video
How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
Actual combat | use composite material 3 in application
Design of logic level conversion in high speed circuit
D24:divisor and multiple (divisor and multiple, translation + solution)
D30:color tunnels (color tunnels, translation)
Selenium library 4.5.0 keyword explanation (I)
How can I get the Commission discount of stock trading account opening? Is it safe to open an account online
2022.02.13
How to quickly build high availability of service discovery
Learning methods of zynq
[MySQL] classification of multi table queries
I wrote a chat software with timeout connect function
Sword finger offer day 4 (Sword finger offer 03. duplicate numbers in the array, sword finger offer 53 - I. find the number I in the sorted array, and the missing numbers in sword finger offer 53 - ii
Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition
Les sociétés de valeurs mobilières dont la Commission d'ouverture d'un compte d'actions est la plus faible ont ce que tout le monde recommande.