2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README.md 2.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # izanagi
  2. A run-and-gun shooter inspired by Metal Slug and Counter-Strike.
  3. ## Setup
  4. For Windows, it is recommended to use [Chocolatey](https://community.chocolatey.org) for retrieving the required tools. Use [Homebrew](https://brew.sh) for macOS instead.
  5. For *NIX, use whatever dependency manager you prefer.
  6. The following are required for building on all platforms:
  7. * CMake
  8. * Ninja
  9. * Clang
  10. ### Windows
  11. 1. Install the [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/).
  12. 2. Ensure your environment variables are set up.
  13. > **Important:** Set your `CC` environment variable to the full path of `clang-cl.exe`
  14. > **Important:** Set your `CMAKE_MT` environment variable to the full path of `mt.exe`, which can be found on your
  15. > Windows SDK installation folder (usually `C:/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x86/mt.exe`)
  16. 3. Clone this repo recursively.
  17. 4. Build the dependencies under `subprojects`. Follow the instructions on building for Visual C.
  18. > **Important:** For `libwebsockets`, follow the [instructions on building LWS](https://libwebsockets.org/lws-api-doc-master/html/md_README_8build.html).
  19. 5. Generate the CMake cache.
  20. ```shell
  21. cmake \
  22. -DCMAKE_SIZEOF_VOID_P=8 \
  23. "-DCMAKE_MT=%CMAKE_MT%" \
  24. "-DCMAKE_BUILD_TYPE=%BUILD_TYPE%" \
  25. -DCMAKE_MAKE_PROGRAM=ninja \
  26. -DCMAKE_C_COMPILER=clang-cl \
  27. -DCMAKE_C_FLAGS=-m64 \
  28. -G Ninja \
  29. -S . \
  30. -B "./build/%BUILD_TYPE%"
  31. ```
  32. > **Important:** Create the directories under `/build` per each `BUILD_TYPE` you are generating.
  33. 6. Build the specific executables you want to build, which are defined in `CMakeLists.txt`.
  34. ### macOS/*NIX
  35. 1. Ensure additional tools are present in the system:
  36. * `autoconf`
  37. * `make`
  38. * `libtool` (*NIX only)
  39. 2. Clone this repo recursively.
  40. 3. Build the dependencies under `subprojects`. Follow the instructions on building for *NIX (macOS should have similar
  41. instructions for *NIX).
  42. 4. Generate the CMake cache.
  43. ```shell
  44. cmake \
  45. -DCMAKE_SIZEOF_VOID_P=8 \
  46. -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
  47. -DCMAKE_MAKE_PROGRAM=ninja \
  48. -DCMAKE_C_COMPILER=cc \
  49. -DCMAKE_C_FLAGS=-m64 \
  50. -G Ninja \
  51. -S . \
  52. -B ./build/$BUILD_TYPE
  53. ```
  54. > **Important:** Create the directories under `/build` per each `BUILD_TYPE` you are generating.
  55. 5. Build the specific executables you want to build, which are defined in `CMakeLists.txt`.