UNITY3D
2D GAME
Objective: Hold as long as possible.
Development
- Enemies find the player with FindWithTag
- Enemies and their bullets are instantiated in another layer
- Limitations of different angles to player and Enemies
- Find the angle and rotates with RotateTowards Mathf.Atan2
- Calculate Camera.main.orthographicSize screen size and corrects edges with the screen ratio and the distance you want.
