game developedLearning records⑤
Project: Airplane War
Start time: 2022.09.12
(A class assignment with my own ideas added)
New things learned:
- Add a Mars material picture like this. There is an unnecessary black part next to it.
Select the Rendering Mode (rendering mode) of Cutout
and it will become only the Mars material.
Problem record:
- The player's bullets are fired very quickly
reason:
transform.Translate(new Vector3(0, 0, m_speed*Time.deltaTime));
Written
transform.Translate(new Vector3(0, 0, m_speed+Time.deltaTime));
If the multiplication sign is changed to a plus sign, the speed will take off directly, so fast that the bullet cannot be seen.
Solution: Obviously, just change the plus sign to a multiplication sign.
-
The enemy did not disappear after leaving the screen.
Reason: I don’t know. I couldn’t find the reason. I implemented it in another way.
Solution: Added an air wall around it, added collision detection, and disappeared upon contact. -
The enemy's bullets stopped in place after being fired.
Reason: Forgot to mount the code for the bullets.