Color Switch
Rishi Singhal - 2019194 (ECE)
Udit Narang - 2019120 (CSE)
Implementation and Features
Design of the Game
Design Patterns:-
1.) Facade: Followed in menu based implementation
2.) Iterator: To ensure synchronized access to the lists of Obstacles, Star, Color
Changer, Obstacle Saver
3.) Decorator: Color changer & obstacle saver is modifying the color of the ball.
4.) State: Collision of ball with obstacles depends on the color of the ball.
Images Sources: 1.)Screenshots from the original game and Linkedin.com
Problems Faced while Designing: Interaction between the ball and the obstacles was one of the toughest problems that we faced. We tried doing that by checking the angleProperty of each of the 4 sides of the obstacle. Eventually we used the Shape.intersects() function which resolved our problem to a greater extent.
Screenshots of the game
Individual Works
UDIT NARANG
RISHI SINGHAL
Bonus Components
1.) Reverse Game: Direction of gravity changes and ball moves down.
2.) Free Stars: Watch a video to get 30 more stars if you are out of stars
3.) Added background music
4.) Obstacle Saver : Ball can get past through any obstacle without crashing for sometime
5.) BigStar: Star which is equivalent to 5 normal stars
6.) Highscores: Top 5 high scores are visible