An Object-Oriented Programming project based on the game Candy Crush Saga by King.
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.
Operating system: Windows.
IMPORTANT: Remember to set PATH environment variables.
-
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".
-
Open a command line program and navigate to the repository.
cd <path>
-
Run the executable.
java -jar OOPCandyCrush.jar
-
Open the repository in an IDE (preferably Intellij IDEA).
-
Run Game.java
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.