当前位置:网站首页>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
边栏推荐
- 2022 system integration project management engineer examination knowledge points: software development model
- Fluent learning (5) GridView
- Docking Alipay process [pay in person, QR code Payment]
- JDBC Technology
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- 股票开户最低佣金炒股开户免费,网上开户安全吗
- Recursive least square adjustment
- Unity shader visualizer shader graph
- Investment demand and income forecast report of China's building ceramics industry, 2022-2028
- NPM script
猜你喜欢
2/14 (regular expression, sed streaming editor)
Idea integrates Microsoft TFs plug-in
Current detection circuit - including op amp current scheme
Docking Alipay process [pay in person, QR code Payment]
The first game of the new year, many bug awards submitted
Unsafe and CAS principle
How to write a good title of 10w+?
leetcode-43. String multiplication
Common mode interference of EMC
Selenium check box
随机推荐
How to make icons easily
炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
Double efficiency. Six easy-to-use pychar plug-ins are recommended
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
EPF: a fuzzy testing framework for network protocols based on evolution, protocol awareness and coverage guidance
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
What are the securities companies with the lowest Commission for stock account opening? Would you recommend it? Is it safe to open an account on your mobile phone
Private project practice sharing populate joint query in mongoose makes the template unable to render - solve the error message: syntaxerror: unexpected token r in JSON at
Minimum commission for stock account opening. Stock account opening is free. Is online account opening safe
P1339 [USACO09OCT]Heat Wave G
URLEncoder. Encode and urldecoder Decode processing URL
2.14 summary
C summary of knowledge point definitions, summary notes
Zipper table in data warehouse (compressed storage)
Analysis of refrigeration and air conditioning equipment operation in 2022 and examination question bank of refrigeration and air conditioning equipment operation
"Learning notes" recursive & recursive
"Learning notes" recursive & recursive
Is the controller a single instance or multiple instances? How to ensure the safety of concurrency
2/14 (regular expression, sed streaming editor)
P3371 [template] single source shortest path (weakened version)