This is a Bejeweled Blitz remake implemented in C++ using the SFML library, made in Programming Fundamental course at FAST NUCES. The game involves swapping adjacent gems to create matches of three or more gems of the same type in a row or column.
- Gem Matching: Swap adjacent gems to create matches of three or more of the same color.
- Special Gems:
- Flame Gems: Created by making four or more gems of the same color consecutively. Triggered by including them in a match to clear surrounding gems. Recognizable by a brown outline.
- Destroyer Gems: Created when making five gems in an elbow shape. This gem can explode when triggered by including them in a match to clear surrounding gems, and it will clear their entire row and column. Recognizable by a white outline.
- Shuffling Gems: Press 'R' to shuffle gems when no match is being made.
- Sound Effects: Enjoy interactive sound effects when making matches or triggering special gems.
- Scoring System: Earn points for each match, and score bonus points for special gem actions.
- C++ compiler
- SFML library (version 2.6.1)
- Clone the repository:
git clone https://github.com/mmujtabah/BlitzProject.git
- Compile the source code:
g++ -o main main.cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
Run the compiled executable: ./main
-
Controls:
- Use arrow keys to move the highlighter and press enter to select the gem, then use arrow keys to swap adjacent gems.
- Press backspace key to deselect the selected gem.
- Press 'R' to shuffle gems when no match is being made.
-
Objective:
- Match gems to score points.
- Trigger special gems for additional effects.
main.cpp
: Code.
- SFML Library - Simple and Fast Multimedia Library.
This project is licensed under the MIT License - see the LICENSE file for details.