Blocks is a 2D puzzle game where the goal is to manipulate blocks horizontally or vertically to guide the red block off the board. Each block moves only along its orientation: vertical blocks move up or down, while horizontal blocks move left or right. To slide a block, click to select it, then move your mouse; release to place the block. Successful completion of each level reveals the number of moves and time taken.
Software | Version |
---|---|
Git | 2.20.1+ |
Visual Studio | 2017+ |
SFML | 2.3.2 |
CocoaDialog | 2.1.1 |
PhysicsFS | 3.2.0 |
- Download and install Microsoft Visual Studio.
- Download and install CMake Windows 32-bit installer.
- Download SFML Visual C++ 14 (2015) 32-bit and extract it to
C:\
. - Download and extract the PhysicsFS source.
- Create a new folder called
bin
in the same location as the extractedphysfs-release-3.2.0
folder. - Open CMake and configure the following settings:
- Set
Where is the source code:
to the path of the extractedphysfs-release-3.2.0
folder. - Set
Where to build the binaries:
to the path of the bin folder.
- Set
- Click
Generate
and selectVisual Studio 14 2015
as the generator, then clickFinish
. - Click
Configure
and close CMake. - Navigate to
bin
and openPhysicsFS.sln
. - Change
Solutions Configurations
toRelease
and changeSolutions Platform
toWin32
. - Right click
ALL_BUILD
in the Solution Explorer and selectBuild
. - Create the following folders at
C:\
.- C:\PHYSFS-3.2.0\bin
- C:\PHYSFS-3.2.0\include
- C:\PHYSFS-3.2.0\lib
- Navigate to the
bin\release
and copy the following files toC:\PHYSFS-3.2.0\bin
:- physfs.dll
- test_physfs.exe
- Copy the following files to
C:\PHYSFS-3.2.0\lib
:- physfs.exp
- physfs.lib
- test_physfs.exp
- test_physfs.lib
- Navigate back to
physfs-release-3.2.0
and copy the following toC:\PHYSFS-3.2.0\include
:- all folders
- all
.h
header files - all
.c
source files
- Delete the
physfs-release-3.2.0
folder.
- Install the required dependencies:
sudo apt-get install cmake
sudo apt-get install libsfml-dev
- Download and extract the PhysicsFS source.
- Navigate to the extracted
physfs-release-3.2.0
folder and create a new folder calledbin
:
cd physfs-release-3.2.0
mkdir bin
- Navigate to bin and generate the Makefiles:
cd bin
cmake ..
- Compile and install the PhysicsFS library:
make
sudo make install
- Configure the shared library cache for PhysicsFS:
sudo ldconfig
- Delete the
physfs-release-3.2.0
folder.
- Open
Blocks.sln
. - Change
Solutions Configurations
toRelease
and changeSolutions Platform
tox86
. - Right click
Blocks
in the Solution Explorer and selectBuild
to buildBlocks.exe
. - Double click
Blocks.exe
compiled in theRelease
folder to start the game.
- Run the make command to compile the game:
cd Blocks
make
- Start the game after it has compiled successfully:
./Blocks
Please see our Contributing Guide for more details.
- Graphics
- Ribbon inspired from a Photoshop Ribbon Tutorial
- Blocks, Grid and Background created exclusively using Photoshop