Skip to content

vmillet-dev/museum-nightmare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Museum Nightmare

A 2D game built with SFML where you navigate through a haunted museum.

Prerequisites

  • CMake (>= 3.16)
  • C++23 compatible compiler
  • X11 development libraries
  • OpenGL development libraries
  • OpenAL development libraries
  • Vorbis and FLAC audio codecs
  • FreeType library

On Ubuntu/Debian, you can install the required dependencies with:

sudo apt-get update && sudo apt-get install -y \
    build-essential \
    cmake \
    libx11-dev \
    libgl1-mesa-dev \
    libudev-dev \
    libopenal-dev \
    libvorbis-dev \
    libflac-dev \
    libfreetype-dev

Building the Project

  1. Clone the repository:
git clone https://github.com/vmillet-dev/museum-nightmare.git
cd museum-nightmare
  1. Create and navigate to the build directory:
mkdir build && cd build
  1. Configure and build the project:
cmake ..
make

Running the Game

After building, you can run the game from the build directory:

./sfml_game

Controls

  • Z: Move Up
  • S: Move Down
  • Q: Move Left
  • D: Move Right
  • ESC: Exit Game

Project Structure

The project uses CMake for build configuration and depends on the following libraries (automatically fetched during build):

  • SFML 2.6.2: Graphics, window management, and input handling
  • toml++ 3.4.0: Configuration file parsing
  • spdlog 1.12.0: Logging system

Notes

  • The game requires a working X11 display server to run
  • Controller support is available and can be configured in the game settings

About

A C++ game using SFML lib

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors