1 of 6

Color Switch

Rishi Singhal - 2019194 (ECE)

Udit Narang - 2019120 (CSE)

2 of 6

Implementation and Features

  • Navigation is purely handled using Java codes, no FXML files are used.
  • Main Page consists of New Game, Reverse Game, Load Game ,Exit Game and Help Page features.
    • New Game: Starts a new game
    • Reverse Game : Starts an anti-gravity game
    • Load Game: Leads to a page where we can choose between 4 previously saved games
    • Exit Game: Exits from the game
    • Help Page: Explaining how to play the game
  • In the game pause menu : we have features of restart game, resume game and save and exit the game.
  • As the game goes on the opposite pull on the ball increases and the obstacles also become harder to pass through making the the game harder.
  • Game Over screen consists of Revive Game (for 5 stars), Restart Game and Go to main Page options.
  • There’s also a highscore page which shows the top 5 scores that we got.
  • We can also get free 30 stars by watching a small video.

3 of 6

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.

4 of 6

Screenshots of the game

5 of 6

Individual Works

UDIT NARANG

  1. Uml- Class Diagram
  2. Obstacles - cross-circle,square, triangle, cross
  3. Movement of the ball
  4. Multiple saved games
  5. Pages: Game Page, Claim Rewards Page, Pause Page, StarsNotEnough page.
  6. Obstacle saver(BONUS)
  7. Background music(BONUS)

RISHI SINGHAL

  1. Uml - Use Case Diagram
  2. Obstacles - concentric circle, tangent circle, circle, double cross
  3. Collision among game elements
  4. Serialization & deserialization of color switch
  5. Pages: MainPage, Help, dieScreen, Highscore Page(BONUS), LoadGame page.
  6. Free Coins(BONUS)
  7. BigStar(BONUS)
  8. Reverse game(BONUS)

6 of 6

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