DDraceNetwork, a free cooperative platformer game
Go to file
2019-02-06 23:01:47 +01:00
.circleci Also try running the server on CircleCI 2019-02-03 02:31:16 +01:00
cmake Add CMake 2018-12-25 21:54:26 +01:00
datasrc Fix a few issues raised by Codacy 2019-02-03 02:00:24 +01:00
other Merge pull request #1949 from ChillerDragon/master 2019-01-05 18:30:41 +01:00
scripts Add automatic dependency download to CMake for Windows 2019-02-03 11:25:24 +01:00
src added hover and active effect to edit boxes. closes #1771 2019-02-04 18:52:49 +01:00
.gitignore removed no longer gitignore entry 2019-01-05 14:52:03 +01:00
.gitmodules Add branch info (master) to .gitmodules 2018-11-11 13:46:50 +01:00
appveyor.yml Add AppVeyor CI 2019-02-03 11:24:46 +01:00
bam.lua Add automatic dependency download to CMake for Windows 2019-02-03 11:25:24 +01:00
CMakeLists.txt Add more hardening flags 2019-02-03 23:22:40 +01:00
configure.lua switched gcc and cl compiler detection. (#1503) 2017-10-03 19:04:22 +02:00
license.txt updated license with a list of authors and updated the year. closes #1548 2018-11-25 18:19:27 +01:00
readme.md Add compilation instructions for Windows with MSVS 2019-02-06 23:01:47 +01:00
storage.cfg fixed currentdir and added appdir search path 2017-09-16 19:10:19 +02:00

Packaging status

Teeworlds CircleCI AppVeyor Build Status

A retro multiplayer shooter

Teeworlds is a free online multiplayer game, available for all major operating systems. Battle with up to 16 players in a variety of game modes, including Team Deathmatch and Capture The Flag. You can even design your own maps!

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. See license.txt for full license text including copyright information.

Please visit https://www.teeworlds.com/ for up-to-date information about the game, including new versions, custom maps and much more.

Originally written by Magnus Auvinen.

Building on Linux

Installing dependencies

# Debian/Ubuntu
sudo apt install build-essential cmake git libfreetype6-dev libsdl2-dev libpnglite-dev libwavpack-dev python3

# Fedora
sudo dnf install @development-tools cmake gcc-c++ git freetype-devel mesa-libGLU-devel pnglite-devel python3 SDL2-devel wavpack-devel

# Arch Linux (doesn't have pnglite in its repositories)
sudo pacman -S --needed base-devel cmake freetype2 git glu python sdl2 wavpack

Downloading repository

git clone https://github.com/teeworlds/teeworlds --recurse-submodules
cd teeworlds

# If you already cloned the repository before, use:
# git submodule update --init

Building

mkdir -p build
cd build
cmake ..
make

On subsequent builds, you only have to repeat the make step.

You can then run the client with ./teeworlds and the server with ./teeworlds_srv.

Build options

The following options can be passed to the cmake .. command line (between the cmake and ..) in the "Building" step above.

-GNinja: Use the Ninja build system instead of Make. This automatically parallizes the build and is generally faster. (Needs sudo apt install ninja-build on Debian, sudo dnf install ninja-build on Fedora, and sudo pacman -S --needed ninja on Arch Linux.)

-DDEV=ON: Enable debug mode and disable some release mechanics. This leads to faster builds.

-DCLIENT=OFF: Disable generation of the client target. Can be useful on headless servers which don't have graphics libraries like SDL2 installed.

Building on Windows with Visual Studio

Download and install some version of Microsoft Visual Studio (as of writing, MSVS Community 2017) with the following components:

  • Desktop development with C++ (on the main page)
  • Python development (on the main page)
  • Git for Windows (in Individual Components → Code tools)

Run Visual Studio. Open the Team Explorer (View → Team Explorer, Ctrl+^, Ctrl+M). Click Clone (in the Team Explorer, Connect → Local Git Repositories). Enter https://github.com/teeworlds/teeworlds into the first input box. Wait for the download to complete (terminals might pop up).

Wait until the CMake configuration is done (watch the Output windows at the bottom).

Select teeworlds.exe in the Select Startup Item… combobox next to the green arrow. Wait for the compilation to finish.

For subsequent builds you only have to click the button with the green arrow again.