Skip to content

carobim/Tsunagari-Testing

Repository files navigation

Tsunagari-Testing

MIT Licensed Build Status LoC

A tech demo world for Tsunagari.

Setup

Cloning

git clone --recurse-submodules https://github.com/TsunagariEngine/Tsunagari-Testing.git
cd Tsunagari-Testing

Acquiring Autumn_Forest.oga

From the root directory:

Method 1: Use youtube-dl and ffmpeg

# 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 ../..

Method 2: Download from pdm.me

# 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 ../..

Installing build and runtime dependencies

# 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

Building

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/

Running

Using a GUI file manager

On macOS, open Tsunagari.app in Finder.

On Ubuntu, open bin/tsunagari in Files.

Using a terminal

# macOS
Tsunagari.app/Contents/MacOS/Tsunagari
# Ubuntu
cd bin
./tsunagari

Debugging

From the root directory:

# macOS
lldb Tsunagari.app/Contents/MacOS/Tsunagari
# Ubuntu
cd bin
gdb ./tsunagari

TODO

  • Windows instructions

Releases

No releases published

Packages

No packages published