2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. ```batch
  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. ```batch
  35. cmake^
  36. --build "./build/%BUILD_TYPE%"^
  37. -t "%EXECUTABLE%"
  38. ```
  39. ### macOS/*NIX
  40. 1. Ensure additional tools are present in the system:
  41. * `autoconf`
  42. * `make`
  43. * `libtool` (*NIX only)
  44. 2. Clone this repo recursively.
  45. 3. Build the dependencies under `subprojects`. Follow the instructions on building for *NIX (macOS should have similar
  46. instructions for *NIX).
  47. 4. Generate the CMake cache.
  48. ```shell
  49. cmake \
  50. -DCMAKE_SIZEOF_VOID_P=8 \
  51. "-DCMAKE_BUILD_TYPE=$BUILD_TYPE" \
  52. -DCMAKE_MAKE_PROGRAM=ninja \
  53. -DCMAKE_C_COMPILER=cc \
  54. -DCMAKE_C_FLAGS=-m64 \
  55. -G Ninja \
  56. -S . \
  57. -B "./build/$BUILD_TYPE"
  58. ```
  59. > **Important:** Create the directories under `/build` per each `BUILD_TYPE` you are generating.
  60. 5. Build the specific executables you want to build, which are defined in `CMakeLists.txt`.
  61. ```shell
  62. cmake \
  63. --build "./build/$BUILD_TYPE" \
  64. -t "$EXECUTABLE"
  65. ```