/natac

Networked implementation of the hexagonal settler game in Sunder

Primary LanguageMakefileBSD Zero Clause License0BSD

NATAC

A free and open source game inspired by Klaus Teuber's Settlers of Catan for Linux and macOS.

Building

Release Build

$ make build

Debug Build

$ make build CFLAGS='$(CFLAGS_DBG)' SUNDER_FLAGS='$(SUNDER_FLAGS_DBG)'

Additional Notes

Building and linking with raylib requies some additional system dependencies to be installed when building for Linux: https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux.

Packaging

Build the application bundle natac.app for macOS:

$ make package-macos

NOTE: After downloading natac.app, one will likely need to run xattr -c <path/to/natac.app> to remove the com.apple.Quarantine extended attribute.

Running

After building the natac application, one may launch a Natac server with:

$ ./natac -server

Other players may run the game and connect to that server with:

$ ./natac -client IPADDR

where IPADDR is the IP address (IPv4) of the server.

Example

$ ./natac -client $(dig +short natac.net)