friendshipity / fheroes2

Free implementation of Heroes of Might and Magic II game engine

Home Page:https://ihhub.github.io/fheroes2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fheroes2

Github Downloads Discord Facebook VK Donate

Free implementation of Heroes of Might and Magic II game engine.

Download

You can download a compiled version of the game for your operating system at Github releases of this project.

Copyright

All rights for the original game and its resources belong to former The 3DO Company. These rights were transferred to Ubisoft. We do not encourage and do not support any form of illegal usage of the original game. We strongly advise to purchase the original game on GOG or Ubisoft Store platforms. Alternatively, you can download a free demo version of the game.

Requirements

You are required to have at least a demo version of Heroes of Might and Magic 2 game to be able to play it. Please use one of our scripts to download the demo version of the original game. A script comes with the compiled game.

Mac OS

Please go to script/macos and run install_sdl_1.sh or install_sdl_2.sh file. For MacOS we highly recommend to use SDL 2 as latest versions of MacOS do not fully support SDL 1.

Debian-based

Please go to script/linux directory and run install_sdl_1.sh or install_sdl_2.sh file.

Arch

For Arch based Linux distributions use the command sudo pacman -S sdl sdl_mixer.

RedHat-based

RPM based distributions like Fedora/Red Hat use the commands sudo yum install SDL* or sudo dnf install SDL*.

OpenSUSE

openSUSE supports the One-Click-Install via SDL_mixer.ymp file in script/linux.

Gentoo

If you have Gentoo, in addition to basic distribution you need to run following command emerge --ask media-libs/sdl2-mixer media-libs/sdl2-ttf.

Compilation

Build status Build status Build Status

Maintainability Rating Reliability Rating Bugs Code Smells Duplicated Lines (%) Language grade: C/C++ Total alerts

Please follow below instructions to be able to compile the project:

Windows

  • open script/windows directory and run install_packages.bat file. It installs necessary packages for Visual Studio build.
  • open script/demo directory and run demo_windows.bat file. It downloads a demo version of the game which is needed for minimum development.
  • open fheroes2-vs2015.vcxproj or fheroes2-vs2019.vcxproj file depending on your Visual Studio and compile the project.

MacOS and Linux

  • open script/macos or script/linux directory depending on your OS and run install_sdl_2.sh (default setup) or install_sdl_1.sh file. For MacOS we do not recommend to run SDL 1 as latest versions of MacOS do not support it fully.
  • open script/demo directory and run demo_unix.sh file. It downloads a demo version of the game which is needed for minimum development.
  • run make command in root directory of the project. For SDL 1 compilation please run export FHEROES2_SDL1="ON" command before compiling the project.

Compilation with CMake

If you would like to build the project using CMake please follow the instructions on this page.

Contribution

We welcome and appreciate any help, even if it is a tiny text or code change. Please read contribution page before starting work on a pull request. Not sure what to start with? Feel free to refer to good first issue or help wanted tags.

License

This project is under GNU General Public License v2.0. Please refer to file LICENSE for more details.

The original project had been developed at sourceforge.

Donation

We accept donations via Patreon or PayPal. All donations will be used only for the future project development as we do not consider this project as a source of income by any means.

Donate Donate

About

Free implementation of Heroes of Might and Magic II game engine

https://ihhub.github.io/fheroes2/

License:GNU General Public License v2.0


Languages

Language:C++ 97.8%Language:CMake 1.0%Language:Python 0.3%Language:C 0.3%Language:Makefile 0.2%Language:Batchfile 0.2%Language:PowerShell 0.1%Language:Shell 0.1%Language:Inno Setup 0.0%