https://github.com/tsherif/space-shooter.c Skip to content Sign up * Why GitHub? + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} tsherif / space-shooter.c Public * Notifications * Star 334 * Fork 11 * A cross-platform, top-down 2D space shooter written in C using only system libraries. MIT License 334 stars 11 forks Star Notifications * Code * Issues 1 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show Loading {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default Loading View all tags 6 branches 0 tags Code Loading Latest commit @tsherif tsherif Architecture ... f078905 Dec 11, 2021 Architecture f078905 Git stats * 295 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time assets Architecture Dec 11, 2021 lib Architecture and some cleanup Dec 4, 2021 src Architecture Dec 11, 2021 .gitignore Reorganize Jul 29, 2021 ARCHITECTURE.md Architecture Dec 11, 2021 LICENSE License, README Jul 29, 2021 Makefile Add extern to externally-linked structs, enforce with gcc flag Dec 10, 2021 README.md Architecture and some cleanup Dec 4, 2021 TODO.md TODO Dec 3, 2021 build.bat Up windows warning level Nov 17, 2021 space-shooter.c.gif Update README, new gif Nov 28, 2021 space-shooter.sln VC project for debugging Jul 31, 2021 View code space-shooter.c Dependencies Description Caveat Building Asset Credits README.md space-shooter.c A cross-platform, top-down 2D space shooter written in C using only system libraries. gif Dependencies * Window management: Win32 (Windows), Xlib (Linux) * Rendering: OpenGL * Audio: XAudio2 (Windows), ALSA/pthread (Linux) * Gamepad: XInput (Windows), evdev (Linux) Description 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]. Caveat 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! Building Windows * In a shell with cl set up, run build.bat for a debug build or build.bat release for an optimized build. * Run space-shooter.exe from the build/ directory. Linux * Make sure development headers for the Linux kernel, Xlib, glx and ALSA are installed. + E.g. on Ubuntu, run the following: sudo apt install linux-libc-dev libx11-dev mesa-common-dev libasound2-dev * Run make for a debug build or make release for an optimized build. * Run ./space-shooter from the build/ directory. Asset Credits * Sprites: https://ansimuz.itch.io/spaceship-shooter-environment * BG Music: https://chiphead64.itch.io/ free-game-soundtrack-by-cactusdude-hurry-up * SFX: https://fallenblood.itch.io/50-sfx * Font: https://gpway.itch.io/white-pixel-sprite-font About A cross-platform, top-down 2D space shooter written in C using only system libraries. Topics c opengl game-development Resources Readme License MIT License Releases No releases published Packages 0 No packages published Languages * C 99.6% * Other 0.4% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.