A tech demo world for TsunagariC.
git clone --recursive https://github.com/pmer/TsunagariC-Testing.git
cd TsunagariC-Testing
From the root directory:
# macOS
brew install youtube-dl
brew install --with-libvorbis ffmpeg
cd data/music
youtube-dl -x -f 22 -o Autumn_Forest.mp4 'https://www.youtube.com/watch?v=v2qOllkxwiw'
ffmpeg -i Autumn_Forest.m4a -c:a libvorbis Autumn_Forest.oga
cd ../..
# macOS
cd data/music
curl -O https://pdm.me/Autumn_Forest.oga
cd ../..
# Ubuntu
cd data/music
wget https://pdm.me/Autumn_Forest.oga
cd ../..
# macOS
brew install libgosu
From the root directory:
Compile:
# macOS
mkdir build-debug
cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j $(sysctl -n hw.ncpu)
cd ..
# Ubuntu
mkdir build-debug
cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j $(nproc)
cd ..
Build the resources:
TsunagariC/scripts/build-config.sh
TsunagariC/scripts/build-world.sh
Build the application bundle/install to bin:
# macOS
TsunagariC/scripts/build-bundle-debug.sh
# Ubuntu
cp build-debug/tsunagari bin/
On macOS, open Tsunagari.app
in Finder.
On Ubuntu, open bin/tsunagari
in Files.
# macOS
Tsunagari.app/Contents/MacOS/Tsunagari
# Ubuntu
cd bin
./tsunagari
From the root directory:
# macOS
lldb Tsunagari.app/Contents/MacOS/Tsunagari
# Ubuntu
cd bin
gdb ./tsunagari
- Windows instructions