A tech demo world for Tsunagari.
git clone --recurse-submodules https://github.com/TsunagariEngine/Tsunagari-Testing.git
cd Tsunagari-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 sdl2 sdl2_image sdl2_mixer
# Ubuntu
sudo apt-get install cmake g++ make pkg-config libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev
From the root directory:
Compile:
# macOS
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DAV_SDL2=On
make
cd ..
# Ubuntu
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DAV_SDL2=On
make
cd ..
Build the resources:
Tsunagari/scripts/build-config.sh
Tsunagari/scripts/build-world.sh
Build the application bundle/install to bin:
# macOS
Tsunagari/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