TinyHack is a turn based game where you need to outmaneuver your enemies while keeping an eye on your downloads and hacks. Every few turns a new AI enters the network and a full network scan will alert the nearest enemy to your position. You have to stay mobile and prevent being boxed in.
The latest version of the game is available on Itch.io.
Unless explicitly stated otherwise, all code and assets are licensed under the GNU General Public License v3.0. Its text can be found in the COPYING file.
ninja.exe is obtained from the official Ninja website, and falls under a separate license.
Take extra care with the source code in the engine/external folder, these have often their own copyright and licensing notices.
Lastly, terminal16x16_gs_ro.png is copied from LibTCOD. It is considered free to use, but its exact license is not known.
TinyHack uses CMake to generate project files. The supported platforms are Windows, HTML5 and MacOS. Linux should be supported as well, although, this has never been tested.
- Visual Studio 2019
- CMake
Generate a VS2019 solution using CMake and compile using VS2019.
To run, make sure that the contents of the data folder are in the current working directory.
- Emscripten SDK (make sure to install the
latestversion) - CMake
- Ninja (Windows version is already included in the repository)
-
Start a cmdline with the Emscripten environment active (run
emsdk_env.batin an existing prompt oremcmdprompt.bat) -
Ensure that the path to
ninja.exeis added toPATHvariable -
Run the following command to generate the project files (use
DebugorMinSizeRelfor<configuration>):"<path to cmake>\cmake.exe" -DCMAKE_TOOLCHAIN_FILE="%EMSDK%\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake" -DCMAKE_BUILD_TYPE=<configuration> -B <build folder> -G Ninja ..\ -
Navigate to the
<build folder>specified in the previous command and execute the following command to build the project:ninja.exe -
Copy
tinyhack.jsfrom the build folder andindex.htmlfrom theemscriptenfolder to a common folder -
Open
index.htmlto open a page with the game embedded in it
- XCode
- CMake
Generate a XCode project using CMake and compile using XCode.
This generates an app that contains all code and data.