tsherif / space-shooter.c
- понедельник, 13 декабря 2021 г. в 00:29:56
A cross-platform, top-down 2D space shooter written in C using only system libraries.
A cross-platform, top-down 2D space shooter written in C using only system libraries.
space-shooter.c
is a cross-platform, top-down 2D space shooter written in standard C11 using only system libraries (with system libraries defined as anything included in the C standard library or supported operating systems). space-shooter.c
has been tested on Windows 10 and Ubuntu Linux 16.04. This project drew heavy inspiration from Handmade Hero and pacman.c.
The design and architecture of space-shooter.c
is described here [WIP].
I am not a professional game developer, nor a professional C programmer, so the design may be unconventional or sub-optimal in many ways. Happy to take feedback from any pros out there!
Windows
build.bat
for a debug build or build.bat release
for an optimized build.space-shooter.exe
from the build/
directory.Linux
sudo apt install linux-libc-dev libx11-dev mesa-common-dev libasound2-dev
make
for a debug build or make release
for an optimized build../space-shooter
from the build/
directory.