Skip to content

Latest commit

 

History

History
90 lines (55 loc) · 3.17 KB

README.md

File metadata and controls

90 lines (55 loc) · 3.17 KB

OOPCandyCrush

GitHub top language GitHub repo size GitHub contributors

An Object-Oriented Programming project based on the game Candy Crush Saga by King.

Table of Contents

Introduction

Candy Crush is a free-to-play match-three puzzle video game released by King on April 12/2012 for Facebook. Other versions for iOS, Android, Windows Phone, and Windows 10 followed after. Right now, the game is still alive with 9.2 million players and has become most successful on mobile devices.

Our project builds on the match-three principle on a simpler level with our own designs.

See the attached "OOPCandyCrush Project Report" file for the full report.

Requirements

Operating system: Windows.

  • Java Development Kit 15 (link).

  • Intellij IDEA by JetBrains (link).

IMPORTANT: Remember to set PATH environment variables.

Installations

  • Install the Java Development Kit.

  • Clone this repository.

    git clone https://github.com/btxl246/OOPCandyCrush.git
    
  • Or download the most recent code version as a .zip file and extract it.

  • Install the font from path "\OOPCandyCrush\in\CANDY.TFF".

Run This Game

Using CLI

  1. Open a command line program and navigate to the repository.

    cd <path>
    
  2. Run the executable.

    java -jar OOPCandyCrush.jar
    

Using IDE

  1. Open the repository in an IDE (preferably Intellij IDEA).

  2. Run Game.java

How to Play

The objective is to match tiles of the same variations and make them disappear to earn points, then the tiles on top of them will drop down and new tiles will appear.

The player makes a move by clicking two adjacent tiles to switch them. If a match occurs, the grid clears the matched tiles and randomizes new tiles which are dropped down.

  • If there are more than one match after a move, the game updates the GUI after all those matches are processed.

  • The total matches are tallied and displayed at the top.

  • Each tile is given a score, and the total score is calculated accordingly and displayed at the top.

The player is able to play until there is no more possible move. Then, the game is over.

Screenshots

HOME SCREEN

PLAY MODE

CUSTOMIZE SCREEN

PLAY SCREEN

GAME OVER