Fries
4200a3e7df
the enemy can now track the player with a cast that uses a shape generated in code. the enemy moves using some fancy math that gets the sign of the distance between the ball and the enemy paddles y position to get a normalised number for velocity and the velocity is lerped to smooth out any janky movement. |
||
---|---|---|
.. | ||
Ball.cs | ||
Constants.cs | ||
Enemy.cs | ||
Paddle.cs | ||
SceneManager.cs |