deckarep/freegemas
Freegemas is an open source version of the well known Bejeweled, built in Zig using SDL2 ported from the original C++ version
Freegemas is a GPL2.0 open source version of the well known Bejeweled, for MacOS and GNU/Linux, and Windows. It's written in Zig 0.13.0 using SDL2. This version is a Zig-based port of the original C++ version by Jose Tomas Tocino. Since the original license is an open source copyleft license this repo is required to use the same exact license.
MacOS
Linux
Windows (contributions welcome to get this building there)
First, head over to ziglang.org and download Zig 0.13.0 or newer.
This assumes that you are already using Homebrew. You will need a few libraries to compile Freegemas:
brew install sdl2 sdl2_mixer sdl2_ttf sdl2_image
Now run the following commands to setup your environment to use Homebrew as a backup location for libraries.
After that, clone the repo:
git clone https://github.com/deckarep/freegemas.git
To compile from source:
cd freegemas
zig build run
./freegemas
First, head over to ziglang.org and download Zig 0.13.0 or newer.
Next, install SDL2. You will need a few libraries to compile Freegemas:
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
Now run the following commands to setup your environment to use Homebrew as a backup location for libraries.
After that, clone the repo:
git clone https://github.com/deckarep/freegemas.git
To compile from source:
cd freegemas
zig build run
./freegemas
The music in the game is Easy Lemon by Kevin MacLeod Licensed under Creative Commons: By Attribution 3.0