No description
Find a file
2025-01-11 19:02:44 +02:00
.vscode Squashed 2025-01-11 17:11:28 +02:00
assets@dc32187d5c Squashed 2025-01-11 17:11:28 +02:00
docs/screenshots Squashed 2025-01-11 17:11:28 +02:00
jni Squashed 2025-01-11 17:11:28 +02:00
proc Squashed 2025-01-11 17:11:28 +02:00
src Squashed 2025-01-11 17:11:28 +02:00
third_party/include Squashed 2025-01-11 17:11:28 +02:00
.clang-format Squashed 2025-01-11 17:11:28 +02:00
.gitattributes Squashed 2025-01-11 17:11:28 +02:00
.gitignore Squashed 2025-01-11 17:11:28 +02:00
.gitmodules update assets 2025-01-11 19:00:50 +02:00
LICENSE Squashed 2025-01-11 17:11:28 +02:00
README.md Update readme 2025-01-11 19:02:44 +02:00
todo Squashed 2025-01-11 17:11:28 +02:00

toygame

A toy quake-like FPS game in C.

Table of contents

Status

In development.

game screenshot

Testing with Q3 assets.

License

See LICENSE for the BSD 3-Clause License.

Some source code in this release is not covered by the BSD 3-Clause License:


BSP loading and rendering based on work by Krzysztof Kondrak. https://github.com/kondrak/quake_bsp_vulkan

file(s):
  src/bsp/bsp_loader.c
  src/bsp/bsp_map.c
  src/bsp/bsp_patch.c
MIT License

Copyright (c) 2018 Krzysztof Kondrak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

All projects contained in third_party are copyright of their respective owners.

gunslinger

Assets

// TODO

Compiling

Windows

  • Install MingW
./proc/win/mingw_dbg.sh

Linux

Tested on Ubuntu 22.04.1 LTS (Desktop).

sudo apt install gcc mesa-common-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libc6-dev-i386
./proc/linux/gcc_dbg.sh

Console

Hitting the console key (default: F1) will allow you to change cvars and run commands. Type help for more information.

console screenshot

Config

The game config is located in assets/cfg/config.txt. The game will use values from this file when launching. You can modify any value at runtime via the console. Note that this file does not support custom formatting and will be overwritten when the game exits.

Tools

ModelViewer

Tool for checking .md3 models and custom animation.cfg files.
Type help in console for details.

cd bin
./modelviewer

modelviewer screenshot