- Shir Avraham
- Yuval Zarbiv
- Matti Stern
We chose the sub-section 3, and the original change we add is Astroids that cross the screen horizontally and catches the players laser shots, means that it makes it harder for the player to hit the targets.
The scene: https://github.com/MYS-games/assignment-week4/blob/main/Assets/Scenes/Enemies.unity
We added a spawner on the left side of the screean that moves verticaly and spawn astroids, the astroids cant harm the spaceship but can be hit by the spaceship's lazers. the code for the creation of the astroids: https://github.com/MYS-games/assignment-week4/blob/main/Assets/Scripts/2-spawners/TimedShieldsRandom.cs the code we changed so the astroids wont harm the spaceship: https://github.com/MYS-games/assignment-week4/blob/main/Assets/Scripts/3-collisions/DestroyOnTrigger2D.cs
- Borders - we added visible walls across the screen, to the orders we created we added rigidBdy to prevent the spaceship from crossing them. the scene code here
-
Invisible borders- we added inivisible top border and bottom border. The top border destroys all laser that didnt hit an enemy and the bottom border destroys all the enemys that the player didnt kill. we created two sprits (that are the borders) and added each a box collider and a trigger named "destroy by border" here
-
Round world- we created four invisible borders and for each we added box collider and a script named "RoundWorld" here, when the spaceship reaches, for example, the right border her new position will be set to the left border's position +radius (same for the other borders).
We chose the second sub-section. The game we created simulates a basketball game. The player needs to prevent the balls from entering the basket by pressing on the right color when the ball is in the orange square above the net. If the player presses the color when the ball is outside of the square borders he wont get a point. Implementaion description: We created a spawner at the top of the screen that spawns balls in random colors. Each ball has a script attached to it named "ballDetecter" here that checks if the ball is in the orange squares's range and if so it checks that the player pressed the right color and if he did he score is increased by one. here