Fork of the Cube 3D shooter, as it had better game play than Cube 2 / Sauerbraten.
  • Objective-C 98.7%
  • Meson 0.7%
  • CMake 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-27 22:05:04 +02:00
documentation Add build & contribution instructions, AI policy 2026-09-20 04:34:42 +02:00
src Returning from block does not stop enumeration 2026-09-27 22:05:04 +02:00
.editorconfig Add .editorconfig 2025-07-05 23:37:37 +02:00
.gitignore Revert "Migrate to buildsys" 2025-07-14 01:05:05 +02:00
CMakeLists.txt Improve CMake build system 2026-02-22 00:42:11 +01:00
meson.build Fix finding SDL2 with muon 2026-04-10 10:27:19 -05:00
README.gmi Add build & contribution instructions, AI policy 2026-09-20 04:34:42 +02:00

Cube

This is a fork of the Cube game engine, ported to Objective-C using ObjFW.

Unfortunately, the asset files are not under a free license and cannot be redistributed, so this fork does not come with them and you need to bring them yourself.

License

Copyright (C) 2001-2005 Wouter van Oortmerssen (the original Cube source).
Copyright (C) 2024-2026 Jonathan Schleifer (the forked Cube source).

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.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  • The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  • Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  • This notice may not be removed or altered from any source distribution.

License Notes

The license covers the source code found in the "src" directory of this archive, the included enet network library which Cube uses is covered by an MIT-style license, which is however compatible with the above license for all practical purposes.

Game media included in the Cube game (maps, textures, sounds, models etc.) are not covered by this license, and may have individual copyrights and distribution restrictions (see individual readmes).

Building Cube

Cube can be built either with Meson or with CMake:

Meson:
$ meson setup build
$ meson compile -C build
$ ./build/src/client

CMake:
$ cmake -B build
$ make -C build
$ ./build/src/client

The following dependencies need to be installed:
  • ObjFW >= 1.5
  • SDL2
  • SDL2_image
  • SDL2_mixer
  • ZLIB
  • enet

Contributing

Contributions are very welcome - just create a pull request:
🌐 Create PR

Please follow the AI policy for all contributions:
👉 AI policy