More actions
Template:Infobox-3DS-Homebrews
- Twini-Golf
Twini-Golf is a game created in 48 hours for the [2021 GMTK Game Jam](https://itch.io/jam/gmtk-2021) using C++ and [SDL2](https://www.libsdl.org/). It can be played on [itch.io](https://polymars.itch.io/twini-golf).
- Screenshots
![]()
![]()
- Background
Twini-Golf is an experimental mini golf game where you play on multiple golf courses at once, simultaneously controlling each ball. More information on how to play is available on the game's [itch.io page](https://polymars.itch.io/twini-golf).
- Compiling
- Windows
- Compiling
After installing [Mingw64](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/seh/x86_64-8.1.0-release-win32-seh-rt_v6-rev0.7z/download), [SDL2](https://www.libsdl.org/download-2.0.php), [SDL_Image](https://www.libsdl.org/projects/SDL_image/), [SDL_TTF](https://www.libsdl.org/projects/SDL_ttf/), and [SDL_Mixer](https://www.libsdl.org/projects/SDL_mixer/), execute the following command in the project's root directory: ``` g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include -I C:/SDL2-w64/include && g++ *.o -o bin/release/main -s -L C:/SDL2-w64/lib -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer && start bin/release/main ``` The compiled ``.exe`` is located in ``./bin``. For it to run, you must copy the ``./res`` folder as well as all ``.dll`` files from your SDL installation to its directory.
- Linux
After installing the dev packages of SDL2 for your distribution, execute the following command in the project's root directory: ``` g++ -c src/*.cpp -std=c++14 -O3 -Wall -m64 -I include && mkdir -p bin/release && g++ *.o -o bin/release/main -s -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer ``` The compiled binary ``main`` is located in ``./bin``. For it to run, you must copy the ``./res`` folder to its directory.
- Web (Untested)
Install [emscripten](https://emscripten.org/docs/getting_started/downloads.html) and execute the following command in the project's root directory: ``` emcc src/main.cpp src/entity.cpp src/renderwindow.cpp src/ball.cpp src/tile.cpp src/hole.cpp -I include -O2 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s \"SDL2_IMAGE_FORMATS=['png']\" -s USE_SDL_TTF=2 -s USE_SDL_MIXER=2 --preload-file res -o index.html ``` The compiled ``.js``, ``.wasm``, ``.data``, and ``.html`` files are located in the project's root.
- Contributing
Pull requests are welcome! For major refactors, please open an issue first to discuss what you would like to improve. Feel free to create a fork of this repository or use the code for any other noncommercial purposes.
There was a video on YouTube in my recommendations about this game , found it very neat, and thought it would be cool to have it on 3DS. So there it is!
Audio sound effects work, title screen works, game end screen tells you how many strokes you used and lets you retry!
As for instructions, you can select a swing direction with the circle pad or holding the touchscreen down anywhere and rotating around your touch point. You can hold A to charge your swing, or just keep the stylus far enough away from its original position. Swing by releasing!
If you don't know the rules of (mini) golf, the goal is to get the ball in the hole using the fewest amount of swings. Or in this case, both balls in both holes.