*the WebGL implementation of Firefox is slow, use Chrome instead, or download the native desktop version if you have low FPS.
A tetris inspired game for the 48th Ludum Dare 48.
Theme: Deeper and deeper
- Blender 2.79
- Blender to .ubj exporter
- Audacity
- beepbox.co for my awful attempt at music
- Aseprite
- G++/MVC++/Emscripten
- CLion (any other C++ editor will do too)
Make sure you have Git LFS installed, then clone this repo.
Do git submodule update --init --recursive
to clone submodules
After compiling, make sure you move OpenAL32.dll
to the working directory (the game might not launch without).
You can find it somewhere in desktop/out/Release/bin/....
or in a similar directory (I hope Windows has a proper search function).
- open
desktop/CMakeLists.txt
- change the project root from
./desktop
to./
- in your debug configuration, set the working directory to
./
as well, otherwise the assets cannot be found
cd desktop
cmake .
(or cmake . -DCMAKE_BUILD_TYPE=Release
)
make -j8
(or cmake --build . -j8 --config Release
)
cd ..
./desktop/out/game
(or ./desktop/out/Release/game.exe
)
NOTE: install Emscripten first
cd html
emconfigure cmake .
(only the first time, and everytime you add new files)
make -j8
emrun out/game.html
This repository contains a Github Workflow which automates the building and deploying of the game to GitHub Pages. The workflow will generate the following files:
game.html
and asset files (directly playable in browser)game-linux.zip
game-windows.zip
This workflow can be found in .github/workflows/
and in the Actions tab on GitHub.
This workflow will require a secret access token in order to deploy the game to GitHub pages.
- Go to your account settings on GitHub
- Go to 'Developer settings' -> 'Personal access tokens'
- Click 'Generate new token'
- Create a token with the 'repo' scope
- Copy the access token
- Go to 'Secrets' in your repository's settings
- Add a new secret with the name 'ACCESS_TOKEN' and paste the token in the text field
- Trigger the workflow (by commiting something for example) and the game should appear on
https://*your-username*.github.io/*your-repo-name*/game.html