An in-development game about scanning real food barcodes https://shampoo.ooo
Go to file
Cocktail Frank 5cf39db71e added android build and curl error checking 2023-05-10 03:04:46 -04:00
lib added android build and curl error checking 2023-05-10 03:04:46 -04:00
resource added android build and curl error checking 2023-05-10 03:04:46 -04:00
src added android build and curl error checking 2023-05-10 03:04:46 -04:00
.gitignore added android build and curl error checking 2023-05-10 03:04:46 -04:00
.gitmodules change sfw to sb, use Makefile skeleton from demos 2021-09-02 18:25:02 -04:00
Makefile added android build and curl error checking 2023-05-10 03:04:46 -04:00
README.md update makefile target names; remove broken cross compilation targets 2023-04-25 23:22:27 -04:00
config.json added android build and curl error checking 2023-05-10 03:04:46 -04:00
config_android.json added android build and curl error checking 2023-05-10 03:04:46 -04:00
favicon.ico working emscripten web export; transfer web cam pixel data from JavaScript to C++; fetch images through Emscripten API and cors-anywhere proxy 2022-09-19 22:21:17 -04:00
index.html android example instructions in SPACEBOX 2022-10-04 18:33:58 -04:00

README.md

        _______________   ,-----------------------------------------------------------.
       //`````````````\\  \                                                            \
      //~~~~~~~~~~~~~~~\\  \   by @ohsqueezy           &  @sleepin                      \
     //=================\\  \     [ohsqueezy.itch.io]     [sleepin.itch.io]              \
    //                   \\  \                                                            \
   //                     \\  \  zlib licensed code at [open.shampoo.ooo/shampoo/gunkiss]  \
  //      ☆ GUNKISS ☆      \\  \                                                            \
 //_________________________\\  `-----------------------------------------------------------'

Gunkiss

Generate a custom pudding from food product UPC codes and help a pair of rats take over the video game industry, using their extraterrestrial ability to turn trash into performance enhancing drug puddings that enable business professionals to predict the stock market with supernatural accuracy.

Where to play

Gunkiss is in-development. Public builds for the web and Android are expected to be released soon.

Building from source

First, checkout the full repository.

git clone --recursive https://open.shampoo.ooo/shampoo/gunkiss

Required Libraries

The following external programs and libraries are required to compile the game.

SPACEBOX

The SPACEBOX game framework is being developed simultaneously and should be checked out into lib/sb as a submodule of the project using the --recursive flag as shown above.

cURL

The game uses cURL to communicate with the Open Food Facts API. The cURL library and development headers must be installed to the system paths in order to compile the program.

Linux

On Linux, you can install libcurl and development headers through the package manager. For example, on Debian:

sudo apt install libcurl4 libcurl4-openssl-dev
Other systems

See [the downloads page][] for ways to get the library and headers. It must be installed in such a way that linking can be done with -lcurl and headers are in the default search path.

OpenCV

The game uses OpenCV to enable barcode reading through the camera. The library and headers by default are expected to be installed to [HOME]/local/opencv/lib and [HOME]/local/opencv/headers respectively, but those locations can be edited in the Makefile

ZBar

The game uses ZBar to scan images for barcodes and report what the barcode is. The library and headers by default are expected to be installed to [HOME]/local/zbar/lib and [HOME]/local/zbar/headers respectively, but those locations can be edited in the Makefile.

Compiling

Once the requirements are satisfied, run make linux to compile. The executable will be saved to the root folder as gunkiss.

Compiler

The project is developed using clang, but gcc can be substituted. Environment variables for CC and CXX can be used to change the default compiler.