png261 / king-and-pigs

King and Pigs C++ game

Home Page:https://png261.github.io/king-and-pigs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub all releases GitHub Repo stars GitHub

Description

King and Pigs is a 2D game written in C++. In this game, the player controls a character who must navigate through various levels and defeat enemies.

Table of Contents

Installation

To install the game on your computer, follow these steps:

  1. Go to the releases page of this repository.
  2. Download the latest release installer that corresponds to your operating system.
  3. Run the downloaded installer and follow the instructions.
  4. Once the installation is complete, launch the game from the start menu or desktop icon

Build from source

  1. Clone this repo:
git clone https://github.com/png261/king-and-pigs.git
  1. Navigate to the king-and-pigs directory, run the following command to build the game:
cmake -B build && cmake --build build
  1. Run the game by executing the following command:
./build/king-and-pigs

How to play

Action Setup 1 Setup 2
Move right Arrow Right D
Move left Arrow Left A
Enter door Arrow Up W
Jump Mouse Left K
Attack Mouse Right J

Note: Setup 2 only work with English keyboard

Screenshots

Map editting with Tiled Map Editor

image

Documentation

Please see https://png261.github.io/king-and-pigs/ for more informations

Credits

Contact

If you have any questions or suggestions about this project, feel free to contact me at:

License

This project is licensed under the Unlicense - see the LICENSE file for details

About

King and Pigs C++ game

https://png261.github.io/king-and-pigs/

License:The Unlicense


Languages

Language:C++ 95.8%Language:CMake 4.2%