Here is our CSE132 game, written in a language untaught in CSE132. Also, it's not ECS based anymore.
We use cmake
to do all of our work here.
Our CMakeLists.txt
should handle SFML linking now.
- Open command line at project root
touch <path-to-CMakeLists.txt>
(this will force rebuild CMake's sources list)- Create and
cd
to an empty desired output directory (build/
by convention) cmake <path-to-project-root>
so it would becmake ..
if you are running from thebuild/
directorymake
./Moonstone
NOTE: Do not generate new classes through Xcode as it will put the new files in the wrong place. Generate files by hand, then rerun this build script (or add the files manually after)
- Follow steps 1-3 from Compiling.
cmake -G Xcode --build <path-to-project-root>
- Open the newly generated Xcode project.
- Change compile target to
Moonstone
Files will be in Sources/Moonstone/
Should function like Xcode, but -G "CodeBlocks - Ninja"
Unsurprisingly: -G "Visual Studio 10"