Skip to content

KenniBlank/ShooterGame2D

Repository files navigation

PLACEHOLDER (Project Name)

Overview

PLACEHOLDER is a 2D shooter game developed in C, showcasing traditional arcade gameplay with modern graphical elements. This game is designed to be accessible on multiple platforms, offering a robust, entertaining experience for gamers.

Game Image

Explore the gameplay and latest developments on X.

Prerequisites

To build and run PLACEHOLDER, ensure you have the following installed:

General Dependencies:

  • make
  • gcc
  • git

Platform-Specific Dependencies:

Linux

  • Debian:
    sudo apt-get install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0 libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev
  • Fedora:
    sudo dnf install SDL2 SDL2-devel SDL2_image SDL2_image-devel SDL2_ttf SDL2_ttf-devel
  • Other Distros: Check the repositories for the necessary libraries and headers, or compile from source as described on the SDL2 Wiki.

Windows

  • MinGW:
    • Download the latest releases of SDL2, SDL2_image, and SDL2_ttf from the SDL GitHub repositories:
      • SDL2 download SDL2-<version>-win32-x64.zip
      • SDL2_image download appropriate SDL2_image-<version>.zip
      • SDL2_ttf download appropriate SDL2_ttf-<version>.zip
    • Extract the downloaded files to a temporary directory.
    • Copy only the .dll files from the extracted directories to the project root directory.

Building the Game

To compile the game, navigate to the project root and run:

make

This generates an executable game on Linux or game.exe on Windows.

Game Controls

  • A / LeftArrow: Move left
  • D / RightArrow: Move right
  • W / Space / UpArrow: Jump or use special ability
  • K: Toggle debug mode (shows a red overlay on entities)
  • F: Fire weapon

Contributors 🧑🏻‍💻

Credits

Documentation

For detailed developer documentation, refer to the SDL2 Documentation.

Development Updates

Keep an eye on this section for the latest updates and progress notes. We aim to keep the community informed and engaged with continuous improvements and new features. Explore the gameplay and latest developments on X.

About

Creating game in C like a chad

Topics

Resources

Stars

Watchers

Forks

Contributors 5