Today we continue to do FPS shooting games, and those who have not read the previous issues can look at the homepage
Mainly implement some optimizations and spawn multiple enemies
code
effect
As you run, everything has shadows and several enemies move towards you
Switching to God's perspective will make it more obvious that a ray will be seen, and if the ray does not touch the player or the ray is blocked, the enemy will not move
Shoot, a yellow plane appears in front of the gun, which disappears in less than a second