Making First Person Shooter games

I’ve seen some kind of first person shooter games on M.Arcade and I want to make one to, but I don’t know how. Can you help me with this? I just need to understand how it works.
3d games link: https://arcade.makecode.com/46192-47246-69950-91804

Me too.