Reproduction of Nene Sakura's game "Nene Quest" from "New Game!!" (2nd season, episode 3) written in C++ with the SFML library.
We currently don't have any release yet so you have to compile the project by yourself.
Follow the SFML tutorial; or our instructions.
- Download a C++ compiler, either MinGW-w64 (preferred),
Clang, or Visual C++, and add the compiler path to the
PATH
environment variable (e.g.C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
). - Download CMake. During the installation, set the "set
PATH
variable" checkbox. - Download a SFML (2.5+) build that matches your compiler,
and extract it. We'll call that path
<SFML path>
(e.g.C:\Users\User\Downloads\SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit\SFML-2.5.1
). - Clone or download NeneQuest, open Windows Powershell, and go to
NeneQuest's directory. Chose the CMake Generator for your build
system or favorite IDE (e.g.
MinGW Makefiles
,Eclipse CDT4 - MinGW Makefiles
,Visual Studio 16 2019
). Supported generators can be listed withcmake -G
.cd nenequest cmake -B build -DCMAKE_PREFIX_PATH="<SFML path>" -G "<Generator>" . # If "MinGW Makefiles" was the generator mingw32-make.exe -C build
- Copy the files from
<SFML path>\bin
tobuild
. - Execute
.\build\NeneQuest.exe
.
Follow the SFML tutorial; or
- Make a new project/solution
- Clone the git repository inside the project with
git clone https://github.com/echoffee/nene-quest.git
- Include the
nenequest/headers
folder in your IDE's "Additional Include Directories" (in Visual Studio:Project > [project name] properties... > C/C++ > General
) - Left-click on the "Show all files" button on the "Solution Explorer" on the right corner
- Right-click on the
src
andheaders
folders then select "Include in the project" - You can navigate in the files with the "Solutions and folders" button in the right corner
- Now, you should be able to compile the project
- Clone project with
git clone https://github.com/echoffee/nene-quest.git
- In eclipse File -> Import -> C/C++ -> Existing Code as Makefile Project with MinGW GCC toolchain -> select folder nenequest of repo (might need to add MinGW folder to $PATH)
- Go in project properties -> C/C++ Build -> Settings
- GCC C++ Compiler -> Preprocessor -> Defined symbols, add the following:
SFML_STATIC
__GX_EXPERIMENTAL_CXX_0X__
_cplusplus=201103L
- GCC C++ Compiler -> Miscellaneaous, add flags
-std=c++11
: for C++11-U__STRICT_ANSI__
: if this flag is not here, for whatever reason we can't use themath.h
constants
- GCC C++ Compiler -> include, add
<SFML path>/include
- headers folder
- MinGW C++ Linker -> Libraries, add
<SFML path>/lib
to search path - MinGW C++ Linker -> Libraries, add the following libraires (in this
order, remove
-d
from SFML libs for release version):sfml-graphics-s-d freetype sfml-window-s-d opengl32 gdi32 sfml-audio-s-d flac vorbisenc vorbisfile vorbis ogg openal32 sfml-network-s-d ws2_32 sfml-system-s-d winmm
- Install CMake and SFML development files
apt-get install cmake libsfml-dev # Ubuntu, Debian pacman -S cmake sfml # Arch Linux
- Compile and execute:
cd nenequest/ cmake -B build . # -DCMAKE_BUILD_TYPE=Debug make -C build ./build/NeneQuest
Please format the code before committing, with
cd nenequest/
clang-format -i headers/**/*.hpp src/**/*.cpp