Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

pmer/TsunagariC-Testing

Repository files navigation

TsunagariC-Testing

MIT Licensed Build Status LoC

A tech demo world for TsunagariC.

Setup

Cloning

git clone --recursive https://github.com/pmer/TsunagariC-Testing.git
cd TsunagariC-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 libgosu

Building

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/

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