Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

SPC-H-Avans/MarioGame

Repository files navigation

Platformer Game

CPP Clang Tidy Linter Build Publish Doxygen

Getting Started

  • Install VCPKG
  • Clone the repository
  • Follow MacOS instructions if you are on MacOS, if you are on Windows follow the Windows instructions, otherwise continue
  • Run vcpkg integrate install
  • Run git submodule update --init --recursive
  • Add the following CMake options:
    • -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
    • -DVCPKG_TARGET_TRIPLET=[x64-windows | x64-osx | arm64-osx | x64-linux | x64-mingw-static ] (depending on your platform and compiler)
      • When using CLion, go to File (Preferences on MacOS) > Settings > Build, Execution, Deployment > CMake > CMake Options and add the options there
      • Be sure to check which toolchain is being used, if MinGW is used, use the [x64|arm64]-mingw-static triplet

MacOS

  • Install Brew
  • Install CMake: brew install cmake
  • Install GCC: brew install gcc
  • Navigate to the VCPKG directory
  • Install VCPKG to the terminal using the following commands:
    • ./vcpkg integrate bash
    • ./vcpkg integrate zsh
  • Continue with the instructions above

Windows

  • Add the VCPKG directory to your PATH environment variable
  • Continue with the instructions above

Updating Submodules

  • Run git submodule update --recursive --remote

Contributing

  • Create a new branch with the following naming convention: feature/[jira ticket]-[feature name] or fix/[jira ticket]-[bug name]
  • Make your changes
  • Update the CHANGELOG.md on the a new branch
  • Update the engine submodule
    • cd libs/PlatformerEngine
    • git pull to fetch the latest branches
    • git checkout -f -b [BRANCH NAME] origin/[BRANCH NAME] to switch to your branch
    • git pull to pull the latest changes for your change
    • DO NOT COMMIT THIS CHANGE
  • Create a pull request and assign it to two team members. The GitHub Actions must succeed and both team members must approve the pull request before it can be merged.

Making a pull request

  • Make sure you have updated the CHANGELOG.md file
  • Make sure you have added the Jira ticket number to the title
  • Fill out the pull request template
  • Assign two team members to review your pull request
  • The GitHub Actions must succeed and both team members must approve the pull request before it can be merged.

How to create a new release

  • Merge the develop branch into the main branch
  • Create a new tag on the main branch, use the following naming scheme: v[Major].[Minor].[Patch]
  • The GitHub Actions will automatically create a new release and publish it to the game-builds repository

Documentation

Published builds

  • Find the published game builds here