当前位置:网站首页>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
边栏推荐
- Fluent learning (5) GridView
- After the Lunar New Year and a half
- Scratch uses runner Py run or debug crawler
- How to solve the "safe startup function prevents the operating system from starting" prompt when installing windows10 on parallel desktop?
- 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
- Interesting 10 CMD commands
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
- Selenium library 4.5.0 keyword explanation (I)
- Ramble 72 of redis source code
- Maxwell equation and Euler formula - link
猜你喜欢

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

2022.02.13

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

Pyqt5 sensitive word detection tool production, operator's Gospel

2022 system integration project management engineer examination knowledge points: software development model

2022 a special equipment related management (elevator) examination questions and a special equipment related management (elevator) examination contents
![P3371 [template] single source shortest path (weakened version)](/img/c5/bcb22e1ea573253005e56ebbd73bb7.jpg)
P3371 [template] single source shortest path (weakened version)
![[network security] what is emergency response? What indicators should you pay attention to in emergency response?](/img/ff/c733ffbb922760910ab09af3ae2886.jpg)
[network security] what is emergency response? What indicators should you pay attention to in emergency response?

Idea set class header comments

2022 t elevator repair registration examination and the latest analysis of T elevator repair
随机推荐
Introduction to the gtid mode of MySQL master-slave replication
D29:post Office (post office, translation)
2.14 summary
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
D23:multiple of 3 or 5 (multiple of 3 or 5, translation + solution)
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Social network analysis -social network analysis
Selenium library 4.5.0 keyword explanation (4)
D28:maximum sum (maximum sum, translation)
2/14 (regular expression, sed streaming editor)
2022.02.14
Gossip about redis source code 77
FPGA tutorial and Allegro tutorial - link
炒股開戶傭金優惠怎麼才能獲得,網上開戶安全嗎
Qtoolbutton available signal
EPF: a fuzzy testing framework for network protocols based on evolution, protocol awareness and coverage guidance
How to write a good title of 10w+?
[note] IPC traditional interprocess communication and binder interprocess communication principle
Smart fan system based on stm32f407
Gorilla/mux framework (RK boot): add tracing Middleware