Simple clone of the common match3 genre using the olc::PixelGameEngine by Javidx9. It's just for fun and educational purpose. Feel free to modify, improve, and use it :) If you want to use the gem assets, feel free to use them in any creative way as I released them into public domain - acknowledgement is appreciated.
Just do for standard compilation on Linux (tested with gcc 8.2.1):
# generates the application
g++ -o Jewel mainJewels.cpp -lX11 -lGL -lpthread -lpng -lstdc++fs -std=c++17
# run the application
./Jewel
Simply use the mouse to select a gem and another for switching gems. Try to create rows or coloumns with at least 3 similar colored gems or using anycolor gem.
Special gems:
- Bomb: 4 gems in consecutive order row/column
- Rainbow: 5 gems in consecutive order row/column
- Star (AnyColor gem): 7 different gems in consecutive order row/column
- Color Heart (AnyColor bomb): 3 gems + star in consecutive order row/column
- Color Rainbow: 4 gems + star/color heart in consecutive order row/column or 3+2stars
Effect:
- Bomb: destroy 3x3 vicinity of bomb
- Rainbow: destroy all gems of same color
- Star: has every color for replacement
- Color Heart: bomb with every color
- Color Rainbow: destroys all gems as it has all colors
Random Drop:
- Bomb: 1/64
- Rainbow: 1/4096
Color Drop:
- AnyColor: 1/64
- Other: 63/64
ESC : quit
The program is licensed under OLC-3 and acknowledge gratefully the following libraries and refer to the appropriate licenses
Heavily inspired by the Match3 example in the 50K Live code party of Javidx9 giving the idea for this.
For the original source with olcConsoleGameEngine please see: 50K Live code party source code.