├── README.md ├── cmake-tools-kits.json ├── nibbles-01 ├── .idea │ ├── .gitignore │ ├── .name │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── misc.xml │ ├── modules.xml │ └── nibbles-01.iml ├── CMakeLists.txt ├── README.MD ├── assets │ └── assets.md ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.17.3 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ ├── CMakeCCompilerId.c │ │ │ │ └── a.out │ │ │ └── CompilerIdCXX │ │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ │ └── a.out │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── nibbles_01.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ ├── progress.make │ │ │ └── src │ │ │ │ ├── draw.cpp.o │ │ │ │ ├── engine.cpp.o │ │ │ │ ├── input.cpp.o │ │ │ │ ├── main.cpp.o │ │ │ │ └── snakesection.cpp.o │ │ └── progress.marks │ ├── Makefile │ ├── assets │ │ └── assets.md │ ├── cmake_install.cmake │ ├── nibbles_01 │ └── nibbles_01.cbp ├── cmake_modules │ └── FindSFML.cmake ├── headers │ ├── engine.hpp │ └── snakesection.hpp └── src │ ├── draw.cpp │ ├── engine.cpp │ ├── input.cpp │ ├── main.cpp │ └── snakesection.cpp ├── nibbles-02 ├── .idea │ ├── .gitignore │ ├── .name │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── misc.xml │ ├── modules.xml │ └── nibbles-01.iml ├── CMakeLists.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.17.3 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ ├── CMakeCCompilerId.c │ │ │ │ └── a.out │ │ │ └── CompilerIdCXX │ │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ │ └── a.out │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── nibbles_01.dir │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ └── progress.make │ │ ├── nibbles_02.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ ├── progress.make │ │ │ └── src │ │ │ │ ├── apple.cpp.o │ │ │ │ ├── draw.cpp.o │ │ │ │ ├── engine.cpp.o │ │ │ │ ├── input.cpp.o │ │ │ │ ├── main.cpp.o │ │ │ │ ├── snakesection.cpp.o │ │ │ │ └── update.cpp.o │ │ └── progress.marks │ ├── Makefile │ ├── cmake_install.cmake │ ├── nibbles_01 │ ├── nibbles_01.cbp │ ├── nibbles_02 │ └── nibbles_02.cbp ├── cmake_modules │ └── FindSFML.cmake ├── headers │ ├── apple.hpp │ ├── engine.hpp │ └── snakesection.hpp └── src │ ├── apple.cpp │ ├── draw.cpp │ ├── engine.cpp │ ├── input.cpp │ ├── main.cpp │ ├── snakesection.cpp │ └── update.cpp ├── nibbles-03 ├── .idea │ ├── .gitignore │ ├── .name │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── misc.xml │ ├── modules.xml │ └── nibbles-01.iml ├── CMakeLists.txt ├── assets │ └── levels │ │ ├── level1.txt │ │ └── levels.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.17.3 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ ├── CMakeCCompilerId.c │ │ │ │ └── a.out │ │ │ └── CompilerIdCXX │ │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ │ └── a.out │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── nibbles_02.dir │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ └── progress.make │ │ ├── nibbles_03.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ ├── progress.make │ │ │ └── src │ │ │ │ ├── apple.cpp.o │ │ │ │ ├── draw.cpp.o │ │ │ │ ├── engine.cpp.o │ │ │ │ ├── input.cpp.o │ │ │ │ ├── main.cpp.o │ │ │ │ ├── snakesection.cpp.o │ │ │ │ ├── update.cpp.o │ │ │ │ └── wall.cpp.o │ │ └── progress.marks │ ├── Makefile │ ├── assets │ │ └── levels │ │ │ ├── level1.txt │ │ │ └── levels.txt │ ├── cmake_install.cmake │ ├── nibbles_01 │ ├── nibbles_01.cbp │ ├── nibbles_02 │ ├── nibbles_02.cbp │ ├── nibbles_03 │ └── nibbles_03.cbp ├── cmake_modules │ └── FindSFML.cmake ├── headers │ ├── apple.hpp │ ├── engine.hpp │ ├── snakesection.hpp │ └── wall.hpp └── src │ ├── apple.cpp │ ├── draw.cpp │ ├── engine.cpp │ ├── input.cpp │ ├── main.cpp │ ├── snakesection.cpp │ ├── update.cpp │ └── wall.cpp ├── nibbles-04 ├── .idea │ ├── .gitignore │ ├── .name │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── misc.xml │ ├── modules.xml │ └── nibbles-01.iml ├── CMakeLists.txt ├── assets │ ├── fonts │ │ └── slant_regular.ttf │ └── levels │ │ ├── level1.txt │ │ ├── level2.txt │ │ └── levels.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.17.3 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ ├── CMakeCCompilerId.c │ │ │ │ └── a.out │ │ │ └── CompilerIdCXX │ │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ │ └── a.out │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── nibbles_03.dir │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ └── progress.make │ │ ├── nibbles_04.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ ├── progress.make │ │ │ └── src │ │ │ │ ├── apple.cpp.o │ │ │ │ ├── draw.cpp.o │ │ │ │ ├── engine.cpp.o │ │ │ │ ├── input.cpp.o │ │ │ │ ├── main.cpp.o │ │ │ │ ├── snakesection.cpp.o │ │ │ │ ├── update.cpp.o │ │ │ │ └── wall.cpp.o │ │ └── progress.marks │ ├── Makefile │ ├── assets │ │ ├── fonts │ │ │ └── slant_regular.ttf │ │ └── levels │ │ │ ├── level1.txt │ │ │ ├── level2.txt │ │ │ └── levels.txt │ ├── cmake_install.cmake │ ├── nibbles_01 │ ├── nibbles_01.cbp │ ├── nibbles_02 │ ├── nibbles_02.cbp │ ├── nibbles_03 │ ├── nibbles_03.cbp │ ├── nibbles_04 │ └── nibbles_04.cbp ├── cmake_modules │ └── FindSFML.cmake ├── headers │ ├── apple.hpp │ ├── engine.hpp │ ├── snakesection.hpp │ └── wall.hpp └── src │ ├── apple.cpp │ ├── draw.cpp │ ├── engine.cpp │ ├── input.cpp │ ├── main.cpp │ ├── snakesection.cpp │ ├── update.cpp │ └── wall.cpp └── nibbles-Homework ├── CMakeLists.txt ├── HOMEWORK.MD ├── assets ├── fonts │ └── slant_regular.ttf └── levels │ ├── level1.txt │ ├── level2.txt │ └── levels.txt ├── cmake-build-debug ├── CMakeCache.txt ├── CMakeFiles │ ├── 3.17.3 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ ├── CMakeCCompilerId.c │ │ │ └── a.out │ │ └── CompilerIdCXX │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ └── a.out │ ├── CMakeDirectoryInformation.cmake │ ├── CMakeOutput.log │ ├── Makefile.cmake │ ├── Makefile2 │ ├── TargetDirectories.txt │ ├── clion-environment.txt │ ├── clion-log.txt │ ├── cmake.check_cache │ ├── nibbles.dir │ │ ├── CXX.includecache │ │ ├── DependInfo.cmake │ │ ├── build.make │ │ ├── cmake_clean.cmake │ │ ├── depend.internal │ │ ├── depend.make │ │ ├── flags.make │ │ ├── link.txt │ │ ├── progress.make │ │ └── src │ │ │ ├── apple.cpp.o │ │ │ ├── draw.cpp.o │ │ │ ├── engine.cpp.o │ │ │ ├── input.cpp.o │ │ │ ├── main.cpp.o │ │ │ ├── snakesection.cpp.o │ │ │ ├── update.cpp.o │ │ │ └── wall.cpp.o │ └── progress.marks ├── Makefile ├── assets │ ├── fonts │ │ └── slant_regular.ttf │ └── levels │ │ ├── level1.txt │ │ ├── level2.txt │ │ └── levels.txt ├── cmake_install.cmake ├── nibbles └── nibbles.cbp ├── cmake_modules └── FindSFML.cmake ├── headers ├── apple.hpp ├── engine.hpp ├── snakesection.hpp └── wall.hpp └── src ├── apple.cpp ├── draw.cpp ├── engine.cpp ├── input.cpp ├── main.cpp ├── snakesection.cpp ├── update.cpp └── wall.cpp /README.md: -------------------------------------------------------------------------------- 1 | # Nibbles 2 | 3 | C++ SFML tutorial building the classic snake game. 4 | You will find the source code for each episode of the tutorial series here. 5 | -------------------------------------------------------------------------------- /cmake-tools-kits.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "name": "Mingw64 GCC 7.3.0", 3 | "compilers": { 4 | "C": "C:\\mingw64\\bin\\gcc.exe", 5 | "CXX": "C:\\mingw64\\bin\\g++.exe" 6 | }, 7 | "preferredGenerator": { 8 | "name": "MinGW Makefiles", 9 | "platform": "x64" 10 | }, 11 | "environmentVariables": { 12 | "PATH": "C:/mingw64/bin/" 13 | } 14 | }] 15 | -------------------------------------------------------------------------------- /nibbles-01/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /nibbles-01/.idea/.name: -------------------------------------------------------------------------------- 1 | nibbles_01 -------------------------------------------------------------------------------- /nibbles-01/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /nibbles-01/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /nibbles-01/.idea/nibbles-01.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /nibbles-01/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.17) 2 | project(nibbles_01) 3 | 4 | set(CMAKE_CXX_STANDARD 20) 5 | 6 | add_executable(nibbles_01 src/main.cpp src/engine.cpp headers/engine.hpp src/draw.cpp src/input.cpp src/snakesection.cpp headers/snakesection.hpp) 7 | 8 | include_directories(headers /usr/include c:/SFML/include) 9 | 10 | set(SFML_ROOT c:/SFML) 11 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") 12 | find_package(SFML REQUIRED system window graphics network audio) 13 | if (SFML_FOUND) 14 | include_directories(${SFML_INCLUDE_DIR}) 15 | target_link_libraries(nibbles_01 ${SFML_LIBRARIES} ${SFML_DEPENDENCIES}) 16 | endif() 17 | 18 | file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}) 19 | 20 | # Copy dlls to build 21 | if(WIN32) 22 | file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll") 23 | file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 24 | file(GLOB MINGW_DEP_DLLS "C:/mingw64/bin/*.dll") 25 | file(COPY ${MINGW_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 26 | endif() 27 | -------------------------------------------------------------------------------- /nibbles-01/README.MD: -------------------------------------------------------------------------------- 1 | ## Nibbles 01 2 | C++ SFML tutorial building the classic snake game. 3 | This is the example code for Episode 01 of the tutorial series. 4 | 5 | ### Episode 01 Goals 6 | What we will achieve in this episode 7 | * Discuss setting up your development environment 8 | * Create the project 9 | * Update and explain the `CMakeLists.txt` file 10 | * Include Directories 11 | * SFML block 12 | * File Copy 13 | * `FindSFML.cmake` module 14 | * Create project directories 15 | * Create our `Engine` class 16 | * Create our main program loop 17 | * Draw a window to the screen 18 | * Create `input` listener 19 | * Create `SnakeSection` class 20 | * Draw the starting snake to the screen 21 | 22 | ### Next Episode 23 | In the next episode we will look at making the snake move 24 | and respond to keyboard input. We will also add something 25 | for the snake to eat - apples. -------------------------------------------------------------------------------- /nibbles-01/assets/assets.md: -------------------------------------------------------------------------------- 1 | The assets directory is for storing game levels, 2 | fonts, sprites, sounds etc. -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "10.2.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW ) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "ELF") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include;/usr/local/include;/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed;/usr/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0;/usr/lib;/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.9.1-1-MANJARO") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.9.1-1-MANJARO") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.9.1-1-MANJARO") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.9.1-1-MANJARO") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/adam/CLionProjects/nibbles-01") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/adam/CLionProjects/nibbles-01/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCInformation.cmake" 11 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCXXInformation.cmake" 12 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCommonLanguageInclude.cmake" 14 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeFindCodeBlocks.cmake" 16 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeGenericSystem.cmake" 17 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeInitializeConfigs.cmake" 18 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeLanguageInformation.cmake" 19 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 22 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-C.cmake" 23 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-CXX.cmake" 24 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU.cmake" 25 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Internal/CMakeCheckCompilerFlag.cmake" 26 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-C.cmake" 27 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-CXX.cmake" 28 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU.cmake" 29 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux.cmake" 30 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/UnixPaths.cmake" 31 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/ProcessorCount.cmake" 32 | "../CMakeLists.txt" 33 | "CMakeFiles/3.17.3/CMakeCCompiler.cmake" 34 | "CMakeFiles/3.17.3/CMakeCXXCompiler.cmake" 35 | "CMakeFiles/3.17.3/CMakeSystem.cmake" 36 | "../cmake_modules/FindSFML.cmake" 37 | ) 38 | 39 | # The corresponding makefile is: 40 | set(CMAKE_MAKEFILE_OUTPUTS 41 | "Makefile" 42 | "CMakeFiles/cmake.check_cache" 43 | ) 44 | 45 | # Byproducts of CMake generate step: 46 | set(CMAKE_MAKEFILE_PRODUCTS 47 | "CMakeFiles/CMakeDirectoryInformation.cmake" 48 | ) 49 | 50 | # Dependency information for all targets: 51 | set(CMAKE_DEPEND_INFO_FILES 52 | "CMakeFiles/nibbles_01.dir/DependInfo.cmake" 53 | ) 54 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | #============================================================================= 10 | # Special targets provided by cmake. 11 | 12 | # Disable implicit rules so canonical targets will work. 13 | .SUFFIXES: 14 | 15 | 16 | # Disable VCS-based implicit rules. 17 | % : %,v 18 | 19 | 20 | # Disable VCS-based implicit rules. 21 | % : RCS/% 22 | 23 | 24 | # Disable VCS-based implicit rules. 25 | % : RCS/%,v 26 | 27 | 28 | # Disable VCS-based implicit rules. 29 | % : SCCS/s.% 30 | 31 | 32 | # Disable VCS-based implicit rules. 33 | % : s.% 34 | 35 | 36 | .SUFFIXES: .hpux_make_needs_suffix_list 37 | 38 | 39 | # Command-line flag to silence nested $(MAKE). 40 | $(VERBOSE)MAKESILENT = -s 41 | 42 | # Suppress display of executed commands. 43 | $(VERBOSE).SILENT: 44 | 45 | 46 | # A target that is always out of date. 47 | cmake_force: 48 | 49 | .PHONY : cmake_force 50 | 51 | #============================================================================= 52 | # Set environment variables for the build. 53 | 54 | # The shell in which to execute make rules. 55 | SHELL = /bin/sh 56 | 57 | # The CMake executable. 58 | CMAKE_COMMAND = /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake 59 | 60 | # The command to remove a file. 61 | RM = /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -E rm -f 62 | 63 | # Escaping for special characters. 64 | EQUALS = = 65 | 66 | # The top-level source directory on which CMake was run. 67 | CMAKE_SOURCE_DIR = /home/adam/CLionProjects/nibbles-01 68 | 69 | # The top-level build directory on which CMake was run. 70 | CMAKE_BINARY_DIR = /home/adam/CLionProjects/nibbles-01/cmake-build-debug 71 | 72 | #============================================================================= 73 | # Directory level rules for the build root directory 74 | 75 | # The main recursive "all" target. 76 | all: CMakeFiles/nibbles_01.dir/all 77 | 78 | .PHONY : all 79 | 80 | # The main recursive "preinstall" target. 81 | preinstall: 82 | 83 | .PHONY : preinstall 84 | 85 | # The main recursive "clean" target. 86 | clean: CMakeFiles/nibbles_01.dir/clean 87 | 88 | .PHONY : clean 89 | 90 | #============================================================================= 91 | # Target rules for target CMakeFiles/nibbles_01.dir 92 | 93 | # All Build rule for target. 94 | CMakeFiles/nibbles_01.dir/all: 95 | $(MAKE) $(MAKESILENT) -f CMakeFiles/nibbles_01.dir/build.make CMakeFiles/nibbles_01.dir/depend 96 | $(MAKE) $(MAKESILENT) -f CMakeFiles/nibbles_01.dir/build.make CMakeFiles/nibbles_01.dir/build 97 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles --progress-num=1,2,3,4,5,6 "Built target nibbles_01" 98 | .PHONY : CMakeFiles/nibbles_01.dir/all 99 | 100 | # Build rule for subdir invocation for target. 101 | CMakeFiles/nibbles_01.dir/rule: cmake_check_build_system 102 | $(CMAKE_COMMAND) -E cmake_progress_start /home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles 6 103 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/nibbles_01.dir/all 104 | $(CMAKE_COMMAND) -E cmake_progress_start /home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles 0 105 | .PHONY : CMakeFiles/nibbles_01.dir/rule 106 | 107 | # Convenience name for target. 108 | nibbles_01: CMakeFiles/nibbles_01.dir/rule 109 | 110 | .PHONY : nibbles_01 111 | 112 | # clean rule for target. 113 | CMakeFiles/nibbles_01.dir/clean: 114 | $(MAKE) $(MAKESILENT) -f CMakeFiles/nibbles_01.dir/build.make CMakeFiles/nibbles_01.dir/clean 115 | .PHONY : CMakeFiles/nibbles_01.dir/clean 116 | 117 | #============================================================================= 118 | # Special targets to cleanup operation of make. 119 | 120 | # Special rule to run CMake to check the build system integrity. 121 | # No rule that depends on this can have commands that come from listfiles 122 | # because they might be regenerated. 123 | cmake_check_build_system: 124 | $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 125 | .PHONY : cmake_check_build_system 126 | 127 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | /home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | /home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir 4 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: 1.0 (local)Options: 2 | 3 | Options: -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/adam/CLionProjects/nibbles-01 2 | -- Found SFML .. in /usr/include 3 | -- Configuring done 4 | -- Generating done 5 | -- Build files have been written to: /home/adam/CLionProjects/nibbles-01/cmake-build-debug 6 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-01/src/draw.cpp" "/home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/draw.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-01/src/engine.cpp" "/home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/engine.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-01/src/input.cpp" "/home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/input.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-01/src/main.cpp" "/home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/main.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-01/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o" 12 | ) 13 | set(CMAKE_CXX_COMPILER_ID "GNU") 14 | 15 | # The include file search paths: 16 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 17 | "../headers" 18 | "../c:/SFML/include" 19 | ) 20 | 21 | # Targets to which this target links. 22 | set(CMAKE_TARGET_LINKED_INFO_FILES 23 | ) 24 | 25 | # Fortran module output directory. 26 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 27 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_01.dir/src/draw.cpp.o" 3 | "CMakeFiles/nibbles_01.dir/src/engine.cpp.o" 4 | "CMakeFiles/nibbles_01.dir/src/input.cpp.o" 5 | "CMakeFiles/nibbles_01.dir/src/main.cpp.o" 6 | "CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o" 7 | "nibbles_01" 8 | "nibbles_01.pdb" 9 | ) 10 | 11 | # Per-language clean rules from dependency scanning. 12 | foreach(lang CXX) 13 | include(CMakeFiles/nibbles_01.dir/cmake_clean_${lang}.cmake OPTIONAL) 14 | endforeach() 15 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_01.dir/src/draw.cpp.o 5 | ../headers/engine.hpp 6 | ../headers/snakesection.hpp 7 | /home/adam/CLionProjects/nibbles-01/src/draw.cpp 8 | CMakeFiles/nibbles_01.dir/src/engine.cpp.o 9 | ../headers/engine.hpp 10 | ../headers/snakesection.hpp 11 | /home/adam/CLionProjects/nibbles-01/src/engine.cpp 12 | CMakeFiles/nibbles_01.dir/src/input.cpp.o 13 | ../headers/engine.hpp 14 | ../headers/snakesection.hpp 15 | /home/adam/CLionProjects/nibbles-01/src/input.cpp 16 | CMakeFiles/nibbles_01.dir/src/main.cpp.o 17 | ../headers/engine.hpp 18 | ../headers/snakesection.hpp 19 | /home/adam/CLionProjects/nibbles-01/src/main.cpp 20 | CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o 21 | ../headers/snakesection.hpp 22 | /home/adam/CLionProjects/nibbles-01/src/snakesection.cpp 23 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_01.dir/src/draw.cpp.o: ../headers/engine.hpp 5 | CMakeFiles/nibbles_01.dir/src/draw.cpp.o: ../headers/snakesection.hpp 6 | CMakeFiles/nibbles_01.dir/src/draw.cpp.o: ../src/draw.cpp 7 | 8 | CMakeFiles/nibbles_01.dir/src/engine.cpp.o: ../headers/engine.hpp 9 | CMakeFiles/nibbles_01.dir/src/engine.cpp.o: ../headers/snakesection.hpp 10 | CMakeFiles/nibbles_01.dir/src/engine.cpp.o: ../src/engine.cpp 11 | 12 | CMakeFiles/nibbles_01.dir/src/input.cpp.o: ../headers/engine.hpp 13 | CMakeFiles/nibbles_01.dir/src/input.cpp.o: ../headers/snakesection.hpp 14 | CMakeFiles/nibbles_01.dir/src/input.cpp.o: ../src/input.cpp 15 | 16 | CMakeFiles/nibbles_01.dir/src/main.cpp.o: ../headers/engine.hpp 17 | CMakeFiles/nibbles_01.dir/src/main.cpp.o: ../headers/snakesection.hpp 18 | CMakeFiles/nibbles_01.dir/src/main.cpp.o: ../src/main.cpp 19 | 20 | CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o: ../headers/snakesection.hpp 21 | CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o: ../src/snakesection.cpp 22 | 23 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-01/headers -I/home/adam/CLionProjects/nibbles-01/c:/SFML/include 10 | 11 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_01.dir/src/main.cpp.o CMakeFiles/nibbles_01.dir/src/engine.cpp.o CMakeFiles/nibbles_01.dir/src/draw.cpp.o CMakeFiles/nibbles_01.dir/src/input.cpp.o CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o -o nibbles_01 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so /usr/lib/libsfml-network.so /usr/lib/libsfml-audio.so 2 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | 8 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/draw.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/draw.cpp.o -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/engine.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/engine.cpp.o -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/input.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/input.cpp.o -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/main.cpp.o -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/assets/assets.md: -------------------------------------------------------------------------------- 1 | The assets directory is for storing game levels, 2 | fonts, sprites, sounds etc. -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/adam/CLionProjects/nibbles-01 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(CMAKE_INSTALL_COMPONENT) 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 42 | else() 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 44 | endif() 45 | 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") 48 | file(WRITE "/home/adam/CLionProjects/nibbles-01/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 50 | -------------------------------------------------------------------------------- /nibbles-01/cmake-build-debug/nibbles_01: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-01/cmake-build-debug/nibbles_01 -------------------------------------------------------------------------------- /nibbles-01/headers/engine.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_01_ENGINE_HPP 2 | #define NIBBLES_01_ENGINE_HPP 3 | 4 | #include "snakesection.hpp" 5 | #include 6 | #include 7 | #include 8 | 9 | using namespace sf; 10 | using namespace std; 11 | 12 | class Engine { 13 | private: 14 | // Window 15 | Vector2f resolution; 16 | RenderWindow window; 17 | const unsigned int FPS = 60; 18 | static const Time TimePerFrame; 19 | 20 | vector snake; 21 | 22 | public: 23 | Engine(); 24 | 25 | void input(); 26 | 27 | void draw(); 28 | 29 | void newSnake(); 30 | void addSnakeSection(); 31 | 32 | // The main loop will be in the run function 33 | void run(); 34 | 35 | }; 36 | 37 | 38 | #endif //NIBBLES_01_ENGINE_HPP 39 | -------------------------------------------------------------------------------- /nibbles-01/headers/snakesection.hpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NIBBLES_01_SNAKESECTION_HPP 3 | #define NIBBLES_01_SNAKESECTION_HPP 4 | 5 | #include 6 | 7 | using namespace sf; 8 | 9 | class SnakeSection { 10 | private: 11 | Vector2f position; 12 | RectangleShape section; 13 | public: 14 | explicit SnakeSection(Vector2f startPosition); 15 | 16 | Vector2f getPosition(); 17 | void setPosition(Vector2f newPosition); 18 | 19 | RectangleShape getShape(); 20 | 21 | void update(); 22 | }; 23 | 24 | 25 | #endif //NIBBLES_01_SNAKESECTION_HPP 26 | -------------------------------------------------------------------------------- /nibbles-01/src/draw.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::draw() { 4 | window.clear(Color::Black); 5 | 6 | // Draw snake sections 7 | for (auto & s : snake) { 8 | window.draw(s.getShape()); 9 | } 10 | 11 | window.display(); 12 | } 13 | -------------------------------------------------------------------------------- /nibbles-01/src/engine.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | const sf::Time Engine::TimePerFrame = seconds(1.f/60.f); 4 | 5 | Engine::Engine() { 6 | resolution = Vector2f(800, 600); 7 | window.create(VideoMode(resolution.x, resolution.y), "Nibbles", Style::Default); 8 | window.setFramerateLimit(FPS); 9 | 10 | newSnake(); 11 | } 12 | 13 | // This is the initial snake created at the start of each level 14 | void Engine::newSnake() { 15 | snake.clear(); 16 | snake.emplace_back(Vector2f(100,100)); 17 | snake.emplace_back(Vector2f(80,100)); 18 | snake.emplace_back(Vector2f(60,100)); 19 | } 20 | 21 | void Engine::addSnakeSection() { 22 | // Just add the section at the same position as the last section of the snake, it will follow normally 23 | Vector2f newSectionPosition = snake[snake.size() - 1].getPosition(); 24 | snake.emplace_back(newSectionPosition); 25 | } 26 | 27 | void Engine::run() { 28 | 29 | // Main loop - Runs until the window is closed 30 | while (window.isOpen()) { 31 | input(); 32 | draw(); 33 | } 34 | } -------------------------------------------------------------------------------- /nibbles-01/src/input.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::input() { 4 | Event event{}; 5 | 6 | while (window.pollEvent(event)) { 7 | // Window closed 8 | if (event.type == Event::Closed) { 9 | window.close(); 10 | } 11 | 12 | // Handle Keyboard Input 13 | if (event.type == Event::KeyPressed) { 14 | // Quit 15 | if (Keyboard::isKeyPressed(Keyboard::Escape)) { 16 | window.close(); 17 | } 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /nibbles-01/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | int main() { 4 | Engine engine; 5 | engine.run(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /nibbles-01/src/snakesection.cpp: -------------------------------------------------------------------------------- 1 | #include "snakesection.hpp" 2 | 3 | SnakeSection::SnakeSection(Vector2f startPosition) { 4 | section.setSize(Vector2f(20, 20)); 5 | section.setFillColor(Color::Green); 6 | section.setPosition(startPosition); 7 | position = startPosition; 8 | } 9 | 10 | Vector2f SnakeSection::getPosition() { 11 | return position; 12 | } 13 | 14 | void SnakeSection::setPosition(Vector2f newPosition) { 15 | position = newPosition; 16 | } 17 | 18 | RectangleShape SnakeSection::getShape() { 19 | return section; 20 | } 21 | 22 | void SnakeSection::update() { 23 | section.setPosition(position); 24 | } 25 | -------------------------------------------------------------------------------- /nibbles-02/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /nibbles-02/.idea/.name: -------------------------------------------------------------------------------- 1 | nibbles_02 -------------------------------------------------------------------------------- /nibbles-02/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /nibbles-02/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /nibbles-02/.idea/nibbles-01.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /nibbles-02/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.17) 2 | project(nibbles_02) 3 | 4 | set(CMAKE_CXX_STANDARD 20) 5 | 6 | add_executable(nibbles_02 src/main.cpp src/engine.cpp headers/engine.hpp src/draw.cpp src/input.cpp src/snakesection.cpp headers/snakesection.hpp src/update.cpp src/apple.cpp headers/apple.hpp) 7 | 8 | include_directories(headers /usr/include c:/SFML/include) 9 | 10 | set(SFML_ROOT c:/SFML) 11 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") 12 | find_package(SFML REQUIRED system window graphics network audio) 13 | if (SFML_FOUND) 14 | include_directories(${SFML_INCLUDE_DIR}) 15 | target_link_libraries(nibbles_02 ${SFML_LIBRARIES}) 16 | endif() 17 | 18 | file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}) 19 | 20 | # Copy dlls to build 21 | if(WIN32) 22 | file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll") 23 | file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 24 | file(GLOB MINGW_DEP_DLLS "C:/mingw64/bin/*.dll") 25 | file(COPY ${MINGW_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 26 | endif() 27 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "10.2.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW ) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "ELF") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include;/usr/local/include;/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed;/usr/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0;/usr/lib;/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.9.1-1-MANJARO") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.9.1-1-MANJARO") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.9.1-1-MANJARO") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.9.1-1-MANJARO") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/adam/CLionProjects/nibbles-02") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/adam/CLionProjects/nibbles-02/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCInformation.cmake" 11 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCXXInformation.cmake" 12 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCommonLanguageInclude.cmake" 14 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeFindCodeBlocks.cmake" 16 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeGenericSystem.cmake" 17 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeInitializeConfigs.cmake" 18 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeLanguageInformation.cmake" 19 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 22 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-C.cmake" 23 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-CXX.cmake" 24 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU.cmake" 25 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Internal/CMakeCheckCompilerFlag.cmake" 26 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-C.cmake" 27 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-CXX.cmake" 28 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU.cmake" 29 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux.cmake" 30 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/UnixPaths.cmake" 31 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/ProcessorCount.cmake" 32 | "../CMakeLists.txt" 33 | "CMakeFiles/3.17.3/CMakeCCompiler.cmake" 34 | "CMakeFiles/3.17.3/CMakeCXXCompiler.cmake" 35 | "CMakeFiles/3.17.3/CMakeSystem.cmake" 36 | "../cmake_modules/FindSFML.cmake" 37 | ) 38 | 39 | # The corresponding makefile is: 40 | set(CMAKE_MAKEFILE_OUTPUTS 41 | "Makefile" 42 | "CMakeFiles/cmake.check_cache" 43 | ) 44 | 45 | # Byproducts of CMake generate step: 46 | set(CMAKE_MAKEFILE_PRODUCTS 47 | "CMakeFiles/CMakeDirectoryInformation.cmake" 48 | ) 49 | 50 | # Dependency information for all targets: 51 | set(CMAKE_DEPEND_INFO_FILES 52 | "CMakeFiles/nibbles_02.dir/DependInfo.cmake" 53 | ) 54 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | /home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | /home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir 4 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: 1.0 (local)Options: 2 | 3 | Options: -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/adam/CLionProjects/nibbles-02 2 | -- Found SFML .. in /usr/include 3 | -- Configuring done 4 | -- Generating done 5 | -- Build files have been written to: /home/adam/CLionProjects/nibbles-02/cmake-build-debug 6 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-02/src/draw.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/draw.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-02/src/engine.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/engine.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-02/src/input.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/input.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-02/src/main.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/main.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-02/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o" 12 | ) 13 | set(CMAKE_CXX_COMPILER_ID "GNU") 14 | 15 | # The include file search paths: 16 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 17 | "../headers" 18 | ) 19 | 20 | # Targets to which this target links. 21 | set(CMAKE_TARGET_LINKED_INFO_FILES 22 | ) 23 | 24 | # Fortran module output directory. 25 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 26 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_01.dir/src/draw.cpp.o" 3 | "CMakeFiles/nibbles_01.dir/src/engine.cpp.o" 4 | "CMakeFiles/nibbles_01.dir/src/input.cpp.o" 5 | "CMakeFiles/nibbles_01.dir/src/main.cpp.o" 6 | "CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o" 7 | "nibbles_01" 8 | "nibbles_01.pdb" 9 | ) 10 | 11 | # Per-language clean rules from dependency scanning. 12 | foreach(lang CXX) 13 | include(CMakeFiles/nibbles_01.dir/cmake_clean_${lang}.cmake OPTIONAL) 14 | endforeach() 15 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/depend.make: -------------------------------------------------------------------------------- 1 | # Empty dependencies file for nibbles_01. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-02/headers 10 | 11 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_01.dir/src/main.cpp.o CMakeFiles/nibbles_01.dir/src/engine.cpp.o CMakeFiles/nibbles_01.dir/src/draw.cpp.o CMakeFiles/nibbles_01.dir/src/input.cpp.o CMakeFiles/nibbles_01.dir/src/snakesection.cpp.o -o nibbles_01 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so /usr/lib/libsfml-network.so /usr/lib/libsfml-audio.so 2 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_01.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | 8 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | ../headers/apple.hpp 10 | SFML/Graphics.hpp 11 | - 12 | 13 | ../headers/engine.hpp 14 | snakesection.hpp 15 | ../headers/snakesection.hpp 16 | apple.hpp 17 | ../headers/apple.hpp 18 | SFML/Graphics.hpp 19 | - 20 | SFML/Graphics/RectangleShape.hpp 21 | - 22 | vector 23 | - 24 | deque 25 | - 26 | 27 | ../headers/snakesection.hpp 28 | SFML/Graphics.hpp 29 | - 30 | 31 | /home/adam/CLionProjects/nibbles-02/src/update.cpp 32 | engine.hpp 33 | /home/adam/CLionProjects/nibbles-02/src/engine.hpp 34 | 35 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-02/src/apple.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/apple.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-02/src/draw.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/draw.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-02/src/engine.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/engine.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-02/src/input.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/input.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-02/src/main.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/main.cpp.o" 12 | "/home/adam/CLionProjects/nibbles-02/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o" 13 | "/home/adam/CLionProjects/nibbles-02/src/update.cpp" "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/update.cpp.o" 14 | ) 15 | set(CMAKE_CXX_COMPILER_ID "GNU") 16 | 17 | # The include file search paths: 18 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 19 | "../headers" 20 | "../c:/SFML/include" 21 | ) 22 | 23 | # Targets to which this target links. 24 | set(CMAKE_TARGET_LINKED_INFO_FILES 25 | ) 26 | 27 | # Fortran module output directory. 28 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 29 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_02.dir/src/apple.cpp.o" 3 | "CMakeFiles/nibbles_02.dir/src/draw.cpp.o" 4 | "CMakeFiles/nibbles_02.dir/src/engine.cpp.o" 5 | "CMakeFiles/nibbles_02.dir/src/input.cpp.o" 6 | "CMakeFiles/nibbles_02.dir/src/main.cpp.o" 7 | "CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o" 8 | "CMakeFiles/nibbles_02.dir/src/update.cpp.o" 9 | "nibbles_02" 10 | "nibbles_02.pdb" 11 | ) 12 | 13 | # Per-language clean rules from dependency scanning. 14 | foreach(lang CXX) 15 | include(CMakeFiles/nibbles_02.dir/cmake_clean_${lang}.cmake OPTIONAL) 16 | endforeach() 17 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_02.dir/src/apple.cpp.o 5 | ../headers/apple.hpp 6 | /home/adam/CLionProjects/nibbles-02/src/apple.cpp 7 | CMakeFiles/nibbles_02.dir/src/draw.cpp.o 8 | ../headers/apple.hpp 9 | ../headers/engine.hpp 10 | ../headers/snakesection.hpp 11 | /home/adam/CLionProjects/nibbles-02/src/draw.cpp 12 | CMakeFiles/nibbles_02.dir/src/engine.cpp.o 13 | ../headers/apple.hpp 14 | ../headers/engine.hpp 15 | ../headers/snakesection.hpp 16 | /home/adam/CLionProjects/nibbles-02/src/engine.cpp 17 | CMakeFiles/nibbles_02.dir/src/input.cpp.o 18 | ../headers/apple.hpp 19 | ../headers/engine.hpp 20 | ../headers/snakesection.hpp 21 | /home/adam/CLionProjects/nibbles-02/src/input.cpp 22 | CMakeFiles/nibbles_02.dir/src/main.cpp.o 23 | ../headers/apple.hpp 24 | ../headers/engine.hpp 25 | ../headers/snakesection.hpp 26 | /home/adam/CLionProjects/nibbles-02/src/main.cpp 27 | CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o 28 | ../headers/snakesection.hpp 29 | /home/adam/CLionProjects/nibbles-02/src/snakesection.cpp 30 | CMakeFiles/nibbles_02.dir/src/update.cpp.o 31 | ../headers/apple.hpp 32 | ../headers/engine.hpp 33 | ../headers/snakesection.hpp 34 | /home/adam/CLionProjects/nibbles-02/src/update.cpp 35 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_02.dir/src/apple.cpp.o: ../headers/apple.hpp 5 | CMakeFiles/nibbles_02.dir/src/apple.cpp.o: ../src/apple.cpp 6 | 7 | CMakeFiles/nibbles_02.dir/src/draw.cpp.o: ../headers/apple.hpp 8 | CMakeFiles/nibbles_02.dir/src/draw.cpp.o: ../headers/engine.hpp 9 | CMakeFiles/nibbles_02.dir/src/draw.cpp.o: ../headers/snakesection.hpp 10 | CMakeFiles/nibbles_02.dir/src/draw.cpp.o: ../src/draw.cpp 11 | 12 | CMakeFiles/nibbles_02.dir/src/engine.cpp.o: ../headers/apple.hpp 13 | CMakeFiles/nibbles_02.dir/src/engine.cpp.o: ../headers/engine.hpp 14 | CMakeFiles/nibbles_02.dir/src/engine.cpp.o: ../headers/snakesection.hpp 15 | CMakeFiles/nibbles_02.dir/src/engine.cpp.o: ../src/engine.cpp 16 | 17 | CMakeFiles/nibbles_02.dir/src/input.cpp.o: ../headers/apple.hpp 18 | CMakeFiles/nibbles_02.dir/src/input.cpp.o: ../headers/engine.hpp 19 | CMakeFiles/nibbles_02.dir/src/input.cpp.o: ../headers/snakesection.hpp 20 | CMakeFiles/nibbles_02.dir/src/input.cpp.o: ../src/input.cpp 21 | 22 | CMakeFiles/nibbles_02.dir/src/main.cpp.o: ../headers/apple.hpp 23 | CMakeFiles/nibbles_02.dir/src/main.cpp.o: ../headers/engine.hpp 24 | CMakeFiles/nibbles_02.dir/src/main.cpp.o: ../headers/snakesection.hpp 25 | CMakeFiles/nibbles_02.dir/src/main.cpp.o: ../src/main.cpp 26 | 27 | CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o: ../headers/snakesection.hpp 28 | CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o: ../src/snakesection.cpp 29 | 30 | CMakeFiles/nibbles_02.dir/src/update.cpp.o: ../headers/apple.hpp 31 | CMakeFiles/nibbles_02.dir/src/update.cpp.o: ../headers/engine.hpp 32 | CMakeFiles/nibbles_02.dir/src/update.cpp.o: ../headers/snakesection.hpp 33 | CMakeFiles/nibbles_02.dir/src/update.cpp.o: ../src/update.cpp 34 | 35 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-02/headers -I/home/adam/CLionProjects/nibbles-02/c:/SFML/include 10 | 11 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_02.dir/src/main.cpp.o CMakeFiles/nibbles_02.dir/src/engine.cpp.o CMakeFiles/nibbles_02.dir/src/draw.cpp.o CMakeFiles/nibbles_02.dir/src/input.cpp.o CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o CMakeFiles/nibbles_02.dir/src/update.cpp.o CMakeFiles/nibbles_02.dir/src/apple.cpp.o -o nibbles_02 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so /usr/lib/libsfml-network.so /usr/lib/libsfml-audio.so 2 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | 10 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/apple.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/apple.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/draw.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/draw.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/engine.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/engine.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/input.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/input.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/main.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/update.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/update.cpp.o -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/adam/CLionProjects/nibbles-02 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(CMAKE_INSTALL_COMPONENT) 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 42 | else() 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 44 | endif() 45 | 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") 48 | file(WRITE "/home/adam/CLionProjects/nibbles-02/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 50 | -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/nibbles_01: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/nibbles_01 -------------------------------------------------------------------------------- /nibbles-02/cmake-build-debug/nibbles_02: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-02/cmake-build-debug/nibbles_02 -------------------------------------------------------------------------------- /nibbles-02/headers/apple.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_02_APPLE_HPP 2 | #define NIBBLES_02_APPLE_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Apple { 9 | private: 10 | RectangleShape sprite; 11 | 12 | public: 13 | Apple(); 14 | 15 | void setPosition(Vector2f newPosition); 16 | RectangleShape getSprite(); 17 | }; 18 | 19 | 20 | #endif //NIBBLES_02_APPLE_HPP 21 | -------------------------------------------------------------------------------- /nibbles-02/headers/engine.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_01_ENGINE_HPP 2 | #define NIBBLES_01_ENGINE_HPP 3 | 4 | #include "snakesection.hpp" 5 | #include "apple.hpp" 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | using namespace sf; 12 | using namespace std; 13 | 14 | class Engine { 15 | private: 16 | // Window 17 | Vector2f resolution; 18 | RenderWindow window; 19 | const unsigned int FPS = 60; 20 | static const Time TimePerFrame; 21 | 22 | vector snake; 23 | 24 | int snakeDirection; 25 | deque directionQueue; // queue for direction key presses 26 | int speed; 27 | int sectionsToAdd; // how many sections to add to the snake 28 | 29 | Apple apple; 30 | 31 | Time timeSinceLastMove; 32 | 33 | public: 34 | enum Direction { UP, RIGHT, DOWN, LEFT }; 35 | Engine(); 36 | 37 | void input(); 38 | void addDirection(int newDirection); 39 | void update(); 40 | void draw(); 41 | 42 | void newSnake(); 43 | void addSnakeSection(); 44 | 45 | void moveApple(); 46 | 47 | // The main loop will be in the run function 48 | void run(); 49 | 50 | }; 51 | 52 | 53 | #endif //NIBBLES_01_ENGINE_HPP 54 | -------------------------------------------------------------------------------- /nibbles-02/headers/snakesection.hpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NIBBLES_01_SNAKESECTION_HPP 3 | #define NIBBLES_01_SNAKESECTION_HPP 4 | 5 | #include 6 | 7 | using namespace sf; 8 | 9 | class SnakeSection { 10 | private: 11 | Vector2f position; 12 | RectangleShape section; 13 | public: 14 | explicit SnakeSection(Vector2f startPosition); 15 | 16 | Vector2f getPosition(); 17 | void setPosition(Vector2f newPosition); 18 | 19 | RectangleShape getShape(); 20 | 21 | void update(); 22 | }; 23 | 24 | 25 | #endif //NIBBLES_01_SNAKESECTION_HPP 26 | -------------------------------------------------------------------------------- /nibbles-02/src/apple.cpp: -------------------------------------------------------------------------------- 1 | #include "apple.hpp" 2 | 3 | Apple::Apple() { 4 | Vector2f startingPosition(400, 300); 5 | sprite.setSize(Vector2f(20,20)); 6 | sprite.setFillColor(Color::Red); 7 | sprite.setPosition(startingPosition); 8 | } 9 | 10 | void Apple::setPosition(Vector2f newPosition) { 11 | sprite.setPosition(newPosition); 12 | } 13 | 14 | RectangleShape Apple::getSprite() { 15 | return sprite; 16 | } -------------------------------------------------------------------------------- /nibbles-02/src/draw.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::draw() { 4 | window.clear(Color::Black); 5 | 6 | // Draw Apple 7 | window.draw(apple.getSprite()); 8 | 9 | // Draw snake sections 10 | for (auto & s : snake) { 11 | window.draw(s.getShape()); 12 | } 13 | 14 | window.display(); 15 | } 16 | -------------------------------------------------------------------------------- /nibbles-02/src/engine.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | const sf::Time Engine::TimePerFrame = seconds(1.f/60.f); 4 | 5 | Engine::Engine() { 6 | resolution = Vector2f(800, 600); 7 | window.create(VideoMode(resolution.x, resolution.y), "Nibbles", Style::Default); 8 | window.setFramerateLimit(FPS); 9 | 10 | speed = 2; 11 | snakeDirection = Direction::RIGHT; 12 | 13 | timeSinceLastMove = Time::Zero; 14 | 15 | sectionsToAdd = 0; 16 | newSnake(); 17 | moveApple(); 18 | } 19 | 20 | // This is the initial snake created at the start of each level 21 | void Engine::newSnake() { 22 | snake.clear(); 23 | snake.emplace_back(Vector2f(100,100)); 24 | snake.emplace_back(Vector2f(80,100)); 25 | snake.emplace_back(Vector2f(60,100)); 26 | } 27 | 28 | void Engine::addSnakeSection() { 29 | // Just add the section at the same position as the last section of the snake, it will follow normally 30 | Vector2f newSectionPosition = snake[snake.size() - 1].getPosition(); 31 | snake.emplace_back(newSectionPosition); 32 | } 33 | 34 | void Engine::moveApple() { 35 | // Find a location to place the apple 36 | // Must not be inside the snake, or on a wall 37 | 38 | // Divide the field into sections the size of the apple - remove 2 to exclude the exterior walls 39 | Vector2f appleResolution = Vector2f(resolution.x / 20 -2, resolution.y / 20 - 2); 40 | Vector2f newAppleLocation; 41 | bool badLocation = false; 42 | srand(time(nullptr)); 43 | // Loop until we find a valid location 44 | do { 45 | badLocation = false; 46 | // Generate a random location 47 | newAppleLocation.x = (float)(1 + rand() / ((RAND_MAX + 1u) / (int)appleResolution.x)) * 20; 48 | newAppleLocation.y = (float)(1 + rand() / ((RAND_MAX + 1u) / (int)appleResolution.y)) * 20; 49 | 50 | // Check if it is in the snake 51 | for (auto &s : snake) { 52 | if (s.getShape().getGlobalBounds().intersects(Rect(newAppleLocation.x, newAppleLocation.y, 20, 20))) { 53 | badLocation = true; 54 | break; 55 | } 56 | } 57 | 58 | // TODO - Add check for apple on wall sections 59 | 60 | } while (badLocation); 61 | apple.setPosition(newAppleLocation); 62 | } 63 | 64 | void Engine::run() { 65 | Clock clock; 66 | 67 | // Main loop - Runs until the window is closed 68 | while (window.isOpen()) { 69 | Time dt = clock.restart(); 70 | timeSinceLastMove += dt; 71 | 72 | input(); 73 | update(); 74 | draw(); 75 | } 76 | } -------------------------------------------------------------------------------- /nibbles-02/src/input.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::input() { 4 | Event event{}; 5 | 6 | while (window.pollEvent(event)) { 7 | // Window closed 8 | if (event.type == Event::Closed) { 9 | window.close(); 10 | } 11 | 12 | // Handle Keyboard Input 13 | if (event.type == Event::KeyPressed) { 14 | // Quit 15 | if (Keyboard::isKeyPressed(Keyboard::Escape)) { 16 | window.close(); 17 | } 18 | } 19 | } // END while pollEvent 20 | // Directions 21 | if (Keyboard::isKeyPressed(Keyboard::Up)) { 22 | addDirection(Direction::UP); 23 | } 24 | else if (Keyboard::isKeyPressed(Keyboard::Down)) { 25 | addDirection(Direction::DOWN); 26 | } 27 | else if (Keyboard::isKeyPressed(Keyboard::Left)) { 28 | addDirection(Direction::LEFT); 29 | } 30 | else if (Keyboard::isKeyPressed(Keyboard::Right)) { 31 | addDirection(Direction::RIGHT); 32 | } 33 | } 34 | 35 | void Engine::addDirection(int newDirection) { 36 | if (directionQueue.empty()) { 37 | directionQueue.emplace_back(newDirection); 38 | } 39 | else { 40 | if (directionQueue.back() != newDirection) { 41 | directionQueue.emplace_back(newDirection); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /nibbles-02/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | int main() { 4 | Engine engine; 5 | engine.run(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /nibbles-02/src/snakesection.cpp: -------------------------------------------------------------------------------- 1 | #include "snakesection.hpp" 2 | 3 | SnakeSection::SnakeSection(Vector2f startPosition) { 4 | section.setSize(Vector2f(20, 20)); 5 | section.setFillColor(Color::Green); 6 | section.setPosition(startPosition); 7 | position = startPosition; 8 | } 9 | 10 | Vector2f SnakeSection::getPosition() { 11 | return position; 12 | } 13 | 14 | void SnakeSection::setPosition(Vector2f newPosition) { 15 | position = newPosition; 16 | } 17 | 18 | RectangleShape SnakeSection::getShape() { 19 | return section; 20 | } 21 | 22 | void SnakeSection::update() { 23 | section.setPosition(position); 24 | } 25 | -------------------------------------------------------------------------------- /nibbles-02/src/update.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::update() { 4 | // Update snake positions 5 | if (timeSinceLastMove.asSeconds() >= seconds(1.f / float(speed)).asSeconds()) { 6 | Vector2f thisSectionPosition = snake[0].getPosition(); 7 | Vector2f lastSectionPosition = thisSectionPosition; 8 | 9 | // Is there anything in the input queue? 10 | if (!directionQueue.empty()) { 11 | // Make sure we don't reverse direction 12 | switch (snakeDirection) { 13 | case Direction::UP: 14 | if (directionQueue.front() != Direction::DOWN) { 15 | snakeDirection = directionQueue.front(); 16 | } 17 | break; 18 | case Direction::DOWN: 19 | if (directionQueue.front() != Direction::UP) { 20 | snakeDirection = directionQueue.front(); 21 | } 22 | break; 23 | case Direction::LEFT: 24 | if (directionQueue.front() != Direction::RIGHT) { 25 | snakeDirection = directionQueue.front(); 26 | } 27 | break; 28 | case Direction::RIGHT: 29 | if (directionQueue.front() != Direction::LEFT) { 30 | snakeDirection = directionQueue.front(); 31 | } 32 | break; 33 | } 34 | directionQueue.pop_front(); 35 | } 36 | 37 | // Do we need to grow the snake 38 | if (sectionsToAdd) { 39 | addSnakeSection(); 40 | sectionsToAdd--; 41 | } 42 | 43 | // Update the snake's head position 44 | switch (snakeDirection) { 45 | case Direction::RIGHT: 46 | snake[0].setPosition(Vector2f(thisSectionPosition.x + 20, thisSectionPosition.y)); 47 | break; 48 | case Direction::DOWN: 49 | snake[0].setPosition(Vector2f(thisSectionPosition.x, thisSectionPosition.y + 20)); 50 | break; 51 | case Direction::LEFT: 52 | snake[0].setPosition(Vector2f(thisSectionPosition.x - 20, thisSectionPosition.y)); 53 | break; 54 | case Direction::UP: 55 | snake[0].setPosition(Vector2f(thisSectionPosition.x, thisSectionPosition.y - 20)); 56 | break; 57 | } 58 | 59 | // Update the snake tail positions 60 | for (int s = 1; s < snake.size(); s++) { 61 | thisSectionPosition = snake[s].getPosition(); 62 | snake[s].setPosition(lastSectionPosition); 63 | lastSectionPosition = thisSectionPosition; 64 | } 65 | 66 | // update snake sections 67 | for (auto & s : snake) { 68 | s.update(); 69 | } 70 | 71 | // Collision detection - Apple 72 | if (snake[0].getShape().getGlobalBounds().intersects(apple.getSprite().getGlobalBounds())) { 73 | // We hit the apple, add more sections to the snake, increase speed and move the apple 74 | // TODO - increment score, apples eaten, add snake sections and check if its time for the next level 75 | 76 | sectionsToAdd += 4; 77 | speed++; 78 | moveApple(); 79 | } 80 | 81 | // Reset the last move timer. 82 | timeSinceLastMove = Time::Zero; 83 | } // END update snake positions 84 | } 85 | 86 | -------------------------------------------------------------------------------- /nibbles-03/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /nibbles-03/.idea/.name: -------------------------------------------------------------------------------- 1 | nibbles_03 -------------------------------------------------------------------------------- /nibbles-03/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /nibbles-03/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /nibbles-03/.idea/nibbles-01.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /nibbles-03/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.17) 2 | project(nibbles_03) 3 | 4 | set(CMAKE_CXX_STANDARD 20) 5 | 6 | add_executable(nibbles_03 src/main.cpp src/engine.cpp headers/engine.hpp src/draw.cpp src/input.cpp src/snakesection.cpp headers/snakesection.hpp src/update.cpp src/apple.cpp headers/apple.hpp src/wall.cpp headers/wall.hpp) 7 | 8 | include_directories(headers /usr/include c:/SFML/include) 9 | 10 | set(SFML_ROOT c:/SFML) 11 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") 12 | find_package(SFML REQUIRED system window graphics network audio) 13 | if (SFML_FOUND) 14 | include_directories(${SFML_INCLUDE_DIR}) 15 | target_link_libraries(nibbles_03 ${SFML_LIBRARIES}) 16 | endif() 17 | 18 | file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}) 19 | 20 | # Copy dlls to build 21 | if(WIN32) 22 | file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll") 23 | file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 24 | file(GLOB MINGW_DEP_DLLS "C:/mingw64/bin/*.dll") 25 | file(COPY ${MINGW_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 26 | endif() 27 | -------------------------------------------------------------------------------- /nibbles-03/assets/levels/level1.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | x x 3 | x x 4 | x x 5 | x x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-03/assets/levels/levels.txt: -------------------------------------------------------------------------------- 1 | level1.txt -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "10.2.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW ) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "ELF") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include;/usr/local/include;/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed;/usr/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0;/usr/lib;/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.9.1-1-MANJARO") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.9.1-1-MANJARO") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.9.1-1-MANJARO") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.9.1-1-MANJARO") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/adam/CLionProjects/nibbles-03") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/adam/CLionProjects/nibbles-03/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCInformation.cmake" 11 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCXXInformation.cmake" 12 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCommonLanguageInclude.cmake" 14 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeFindCodeBlocks.cmake" 16 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeGenericSystem.cmake" 17 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeInitializeConfigs.cmake" 18 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeLanguageInformation.cmake" 19 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 22 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-C.cmake" 23 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-CXX.cmake" 24 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU.cmake" 25 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Internal/CMakeCheckCompilerFlag.cmake" 26 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-C.cmake" 27 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-CXX.cmake" 28 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU.cmake" 29 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux.cmake" 30 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/UnixPaths.cmake" 31 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/ProcessorCount.cmake" 32 | "../CMakeLists.txt" 33 | "CMakeFiles/3.17.3/CMakeCCompiler.cmake" 34 | "CMakeFiles/3.17.3/CMakeCXXCompiler.cmake" 35 | "CMakeFiles/3.17.3/CMakeSystem.cmake" 36 | "../cmake_modules/FindSFML.cmake" 37 | ) 38 | 39 | # The corresponding makefile is: 40 | set(CMAKE_MAKEFILE_OUTPUTS 41 | "Makefile" 42 | "CMakeFiles/cmake.check_cache" 43 | ) 44 | 45 | # Byproducts of CMake generate step: 46 | set(CMAKE_MAKEFILE_PRODUCTS 47 | "CMakeFiles/CMakeDirectoryInformation.cmake" 48 | ) 49 | 50 | # Dependency information for all targets: 51 | set(CMAKE_DEPEND_INFO_FILES 52 | "CMakeFiles/nibbles_03.dir/DependInfo.cmake" 53 | ) 54 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | /home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | /home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir 4 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: 1.0 (local)Options: 2 | 3 | Options: -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/adam/CLionProjects/nibbles-03 2 | -- Found SFML .. in /usr/include 3 | -- Configuring done 4 | -- Generating done 5 | -- Build files have been written to: /home/adam/CLionProjects/nibbles-03/cmake-build-debug 6 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-03/src/apple.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/apple.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-03/src/draw.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/draw.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-03/src/engine.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/engine.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-03/src/input.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/input.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-03/src/main.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/main.cpp.o" 12 | "/home/adam/CLionProjects/nibbles-03/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o" 13 | "/home/adam/CLionProjects/nibbles-03/src/update.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/src/update.cpp.o" 14 | ) 15 | set(CMAKE_CXX_COMPILER_ID "GNU") 16 | 17 | # The include file search paths: 18 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 19 | "../headers" 20 | ) 21 | 22 | # Targets to which this target links. 23 | set(CMAKE_TARGET_LINKED_INFO_FILES 24 | ) 25 | 26 | # Fortran module output directory. 27 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 28 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_02.dir/src/apple.cpp.o" 3 | "CMakeFiles/nibbles_02.dir/src/draw.cpp.o" 4 | "CMakeFiles/nibbles_02.dir/src/engine.cpp.o" 5 | "CMakeFiles/nibbles_02.dir/src/input.cpp.o" 6 | "CMakeFiles/nibbles_02.dir/src/main.cpp.o" 7 | "CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o" 8 | "CMakeFiles/nibbles_02.dir/src/update.cpp.o" 9 | "nibbles_02" 10 | "nibbles_02.pdb" 11 | ) 12 | 13 | # Per-language clean rules from dependency scanning. 14 | foreach(lang CXX) 15 | include(CMakeFiles/nibbles_02.dir/cmake_clean_${lang}.cmake OPTIONAL) 16 | endforeach() 17 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/depend.make: -------------------------------------------------------------------------------- 1 | # Empty dependencies file for nibbles_02. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-03/headers 10 | 11 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_02.dir/src/main.cpp.o CMakeFiles/nibbles_02.dir/src/engine.cpp.o CMakeFiles/nibbles_02.dir/src/draw.cpp.o CMakeFiles/nibbles_02.dir/src/input.cpp.o CMakeFiles/nibbles_02.dir/src/snakesection.cpp.o CMakeFiles/nibbles_02.dir/src/update.cpp.o CMakeFiles/nibbles_02.dir/src/apple.cpp.o -o nibbles_02 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so /usr/lib/libsfml-network.so /usr/lib/libsfml-audio.so 2 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_02.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | 10 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-03/src/apple.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/apple.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-03/src/draw.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/draw.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-03/src/engine.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/engine.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-03/src/input.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/input.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-03/src/main.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/main.cpp.o" 12 | "/home/adam/CLionProjects/nibbles-03/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o" 13 | "/home/adam/CLionProjects/nibbles-03/src/update.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/update.cpp.o" 14 | "/home/adam/CLionProjects/nibbles-03/src/wall.cpp" "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/wall.cpp.o" 15 | ) 16 | set(CMAKE_CXX_COMPILER_ID "GNU") 17 | 18 | # The include file search paths: 19 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 20 | "../headers" 21 | "../c:/SFML/include" 22 | ) 23 | 24 | # Targets to which this target links. 25 | set(CMAKE_TARGET_LINKED_INFO_FILES 26 | ) 27 | 28 | # Fortran module output directory. 29 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 30 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_03.dir/src/apple.cpp.o" 3 | "CMakeFiles/nibbles_03.dir/src/draw.cpp.o" 4 | "CMakeFiles/nibbles_03.dir/src/engine.cpp.o" 5 | "CMakeFiles/nibbles_03.dir/src/input.cpp.o" 6 | "CMakeFiles/nibbles_03.dir/src/main.cpp.o" 7 | "CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o" 8 | "CMakeFiles/nibbles_03.dir/src/update.cpp.o" 9 | "CMakeFiles/nibbles_03.dir/src/wall.cpp.o" 10 | "nibbles_03" 11 | "nibbles_03.pdb" 12 | ) 13 | 14 | # Per-language clean rules from dependency scanning. 15 | foreach(lang CXX) 16 | include(CMakeFiles/nibbles_03.dir/cmake_clean_${lang}.cmake OPTIONAL) 17 | endforeach() 18 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_03.dir/src/apple.cpp.o 5 | ../headers/apple.hpp 6 | /home/adam/CLionProjects/nibbles-03/src/apple.cpp 7 | CMakeFiles/nibbles_03.dir/src/draw.cpp.o 8 | ../headers/apple.hpp 9 | ../headers/engine.hpp 10 | ../headers/snakesection.hpp 11 | ../headers/wall.hpp 12 | /home/adam/CLionProjects/nibbles-03/src/draw.cpp 13 | CMakeFiles/nibbles_03.dir/src/engine.cpp.o 14 | ../headers/apple.hpp 15 | ../headers/engine.hpp 16 | ../headers/snakesection.hpp 17 | ../headers/wall.hpp 18 | /home/adam/CLionProjects/nibbles-03/src/engine.cpp 19 | CMakeFiles/nibbles_03.dir/src/input.cpp.o 20 | ../headers/apple.hpp 21 | ../headers/engine.hpp 22 | ../headers/snakesection.hpp 23 | ../headers/wall.hpp 24 | /home/adam/CLionProjects/nibbles-03/src/input.cpp 25 | CMakeFiles/nibbles_03.dir/src/main.cpp.o 26 | ../headers/apple.hpp 27 | ../headers/engine.hpp 28 | ../headers/snakesection.hpp 29 | ../headers/wall.hpp 30 | /home/adam/CLionProjects/nibbles-03/src/main.cpp 31 | CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o 32 | ../headers/snakesection.hpp 33 | /home/adam/CLionProjects/nibbles-03/src/snakesection.cpp 34 | CMakeFiles/nibbles_03.dir/src/update.cpp.o 35 | ../headers/apple.hpp 36 | ../headers/engine.hpp 37 | ../headers/snakesection.hpp 38 | ../headers/wall.hpp 39 | /home/adam/CLionProjects/nibbles-03/src/update.cpp 40 | CMakeFiles/nibbles_03.dir/src/wall.cpp.o 41 | ../headers/wall.hpp 42 | /home/adam/CLionProjects/nibbles-03/src/wall.cpp 43 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_03.dir/src/apple.cpp.o: ../headers/apple.hpp 5 | CMakeFiles/nibbles_03.dir/src/apple.cpp.o: ../src/apple.cpp 6 | 7 | CMakeFiles/nibbles_03.dir/src/draw.cpp.o: ../headers/apple.hpp 8 | CMakeFiles/nibbles_03.dir/src/draw.cpp.o: ../headers/engine.hpp 9 | CMakeFiles/nibbles_03.dir/src/draw.cpp.o: ../headers/snakesection.hpp 10 | CMakeFiles/nibbles_03.dir/src/draw.cpp.o: ../headers/wall.hpp 11 | CMakeFiles/nibbles_03.dir/src/draw.cpp.o: ../src/draw.cpp 12 | 13 | CMakeFiles/nibbles_03.dir/src/engine.cpp.o: ../headers/apple.hpp 14 | CMakeFiles/nibbles_03.dir/src/engine.cpp.o: ../headers/engine.hpp 15 | CMakeFiles/nibbles_03.dir/src/engine.cpp.o: ../headers/snakesection.hpp 16 | CMakeFiles/nibbles_03.dir/src/engine.cpp.o: ../headers/wall.hpp 17 | CMakeFiles/nibbles_03.dir/src/engine.cpp.o: ../src/engine.cpp 18 | 19 | CMakeFiles/nibbles_03.dir/src/input.cpp.o: ../headers/apple.hpp 20 | CMakeFiles/nibbles_03.dir/src/input.cpp.o: ../headers/engine.hpp 21 | CMakeFiles/nibbles_03.dir/src/input.cpp.o: ../headers/snakesection.hpp 22 | CMakeFiles/nibbles_03.dir/src/input.cpp.o: ../headers/wall.hpp 23 | CMakeFiles/nibbles_03.dir/src/input.cpp.o: ../src/input.cpp 24 | 25 | CMakeFiles/nibbles_03.dir/src/main.cpp.o: ../headers/apple.hpp 26 | CMakeFiles/nibbles_03.dir/src/main.cpp.o: ../headers/engine.hpp 27 | CMakeFiles/nibbles_03.dir/src/main.cpp.o: ../headers/snakesection.hpp 28 | CMakeFiles/nibbles_03.dir/src/main.cpp.o: ../headers/wall.hpp 29 | CMakeFiles/nibbles_03.dir/src/main.cpp.o: ../src/main.cpp 30 | 31 | CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o: ../headers/snakesection.hpp 32 | CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o: ../src/snakesection.cpp 33 | 34 | CMakeFiles/nibbles_03.dir/src/update.cpp.o: ../headers/apple.hpp 35 | CMakeFiles/nibbles_03.dir/src/update.cpp.o: ../headers/engine.hpp 36 | CMakeFiles/nibbles_03.dir/src/update.cpp.o: ../headers/snakesection.hpp 37 | CMakeFiles/nibbles_03.dir/src/update.cpp.o: ../headers/wall.hpp 38 | CMakeFiles/nibbles_03.dir/src/update.cpp.o: ../src/update.cpp 39 | 40 | CMakeFiles/nibbles_03.dir/src/wall.cpp.o: ../headers/wall.hpp 41 | CMakeFiles/nibbles_03.dir/src/wall.cpp.o: ../src/wall.cpp 42 | 43 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-03/headers -I/home/adam/CLionProjects/nibbles-03/c:/SFML/include 10 | 11 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_03.dir/src/main.cpp.o CMakeFiles/nibbles_03.dir/src/engine.cpp.o CMakeFiles/nibbles_03.dir/src/draw.cpp.o CMakeFiles/nibbles_03.dir/src/input.cpp.o CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o CMakeFiles/nibbles_03.dir/src/update.cpp.o CMakeFiles/nibbles_03.dir/src/apple.cpp.o CMakeFiles/nibbles_03.dir/src/wall.cpp.o -o nibbles_03 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so /usr/lib/libsfml-network.so /usr/lib/libsfml-audio.so 2 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | 11 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/apple.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/apple.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/draw.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/draw.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/engine.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/engine.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/input.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/input.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/main.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/update.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/update.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/wall.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/wall.cpp.o -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/assets/levels/level1.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | x x 3 | x x 4 | x x 5 | x x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/assets/levels/levels.txt: -------------------------------------------------------------------------------- 1 | level1.txt -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/adam/CLionProjects/nibbles-03 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(CMAKE_INSTALL_COMPONENT) 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 42 | else() 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 44 | endif() 45 | 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") 48 | file(WRITE "/home/adam/CLionProjects/nibbles-03/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 50 | -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/nibbles_01: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/nibbles_01 -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/nibbles_02: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/nibbles_02 -------------------------------------------------------------------------------- /nibbles-03/cmake-build-debug/nibbles_03: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-03/cmake-build-debug/nibbles_03 -------------------------------------------------------------------------------- /nibbles-03/headers/apple.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_02_APPLE_HPP 2 | #define NIBBLES_02_APPLE_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Apple { 9 | private: 10 | RectangleShape sprite; 11 | 12 | public: 13 | Apple(); 14 | 15 | void setPosition(Vector2f newPosition); 16 | RectangleShape getSprite(); 17 | }; 18 | 19 | 20 | #endif //NIBBLES_02_APPLE_HPP 21 | -------------------------------------------------------------------------------- /nibbles-03/headers/engine.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_01_ENGINE_HPP 2 | #define NIBBLES_01_ENGINE_HPP 3 | 4 | #include "snakesection.hpp" 5 | #include "apple.hpp" 6 | #include "wall.hpp" 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | using namespace sf; 14 | using namespace std; 15 | 16 | class Engine { 17 | private: 18 | // Window 19 | Vector2f resolution; 20 | RenderWindow window; 21 | const unsigned int FPS = 60; 22 | static const Time TimePerFrame; 23 | 24 | vector snake; 25 | 26 | int snakeDirection; 27 | deque directionQueue; // queue for direction key presses 28 | int speed; 29 | int sectionsToAdd; // how many sections to add to the snake 30 | 31 | Apple apple; 32 | 33 | vector wallSections; 34 | int currentLevel; 35 | int maxLevels; 36 | vector levels; 37 | 38 | Time timeSinceLastMove; 39 | 40 | int currentGameState; 41 | int lastGameState; // For storing the last state the game was in when pausing. 42 | 43 | public: 44 | enum Direction { UP, RIGHT, DOWN, LEFT }; 45 | enum GameState { RUNNING, PAUSED, GAMEOVER }; 46 | Engine(); 47 | 48 | void input(); 49 | void addDirection(int newDirection); 50 | void update(); 51 | void draw(); 52 | 53 | void newSnake(); 54 | void addSnakeSection(); 55 | 56 | void moveApple(); 57 | void checkLevelFiles(); 58 | void loadLevel(int levelNumber); 59 | 60 | void startTheGame(); 61 | 62 | void togglePause(); 63 | 64 | // The main loop will be in the run function 65 | void run(); 66 | 67 | }; 68 | 69 | 70 | #endif //NIBBLES_01_ENGINE_HPP 71 | -------------------------------------------------------------------------------- /nibbles-03/headers/snakesection.hpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NIBBLES_01_SNAKESECTION_HPP 3 | #define NIBBLES_01_SNAKESECTION_HPP 4 | 5 | #include 6 | 7 | using namespace sf; 8 | 9 | class SnakeSection { 10 | private: 11 | Vector2f position; 12 | RectangleShape section; 13 | public: 14 | explicit SnakeSection(Vector2f startPosition); 15 | 16 | Vector2f getPosition(); 17 | void setPosition(Vector2f newPosition); 18 | 19 | RectangleShape getShape(); 20 | 21 | void update(); 22 | }; 23 | 24 | 25 | #endif //NIBBLES_01_SNAKESECTION_HPP 26 | -------------------------------------------------------------------------------- /nibbles-03/headers/wall.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_03_WALL_HPP 2 | #define NIBBLES_03_WALL_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Wall { 9 | private: 10 | RectangleShape wallShape; 11 | 12 | public: 13 | Wall(Vector2f position, Vector2f size); 14 | 15 | RectangleShape getShape(); 16 | 17 | }; 18 | 19 | 20 | #endif //NIBBLES_03_WALL_HPP 21 | -------------------------------------------------------------------------------- /nibbles-03/src/apple.cpp: -------------------------------------------------------------------------------- 1 | #include "apple.hpp" 2 | 3 | Apple::Apple() { 4 | Vector2f startingPosition(400, 300); 5 | sprite.setSize(Vector2f(20,20)); 6 | sprite.setFillColor(Color::Red); 7 | sprite.setPosition(startingPosition); 8 | } 9 | 10 | void Apple::setPosition(Vector2f newPosition) { 11 | sprite.setPosition(newPosition); 12 | } 13 | 14 | RectangleShape Apple::getSprite() { 15 | return sprite; 16 | } -------------------------------------------------------------------------------- /nibbles-03/src/draw.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::draw() { 4 | window.clear(Color::Black); 5 | 6 | // Draw walls 7 | for (auto & w : wallSections) { 8 | window.draw(w.getShape()); 9 | } 10 | 11 | // Draw Apple 12 | window.draw(apple.getSprite()); 13 | 14 | // Draw snake sections 15 | for (auto & s : snake) { 16 | window.draw(s.getShape()); 17 | } 18 | 19 | window.display(); 20 | } 21 | -------------------------------------------------------------------------------- /nibbles-03/src/input.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::input() { 4 | Event event{}; 5 | 6 | while (window.pollEvent(event)) { 7 | // Window closed 8 | if (event.type == Event::Closed) { 9 | window.close(); 10 | } 11 | 12 | // Handle Keyboard Input 13 | if (event.type == Event::KeyPressed) { 14 | // Quit 15 | if (Keyboard::isKeyPressed(Keyboard::Escape)) { 16 | window.close(); 17 | } 18 | 19 | // Pause 20 | if (Keyboard::isKeyPressed(Keyboard::Pause)) { 21 | togglePause(); 22 | } 23 | 24 | // New Game 25 | if (currentGameState == GameState::GAMEOVER) { 26 | if (Keyboard::isKeyPressed(Keyboard::Enter)) { 27 | startTheGame(); 28 | } 29 | } 30 | } 31 | } // END while pollEvent 32 | // Directions 33 | if (Keyboard::isKeyPressed(Keyboard::Up)) { 34 | addDirection(Direction::UP); 35 | } 36 | else if (Keyboard::isKeyPressed(Keyboard::Down)) { 37 | addDirection(Direction::DOWN); 38 | } 39 | else if (Keyboard::isKeyPressed(Keyboard::Left)) { 40 | addDirection(Direction::LEFT); 41 | } 42 | else if (Keyboard::isKeyPressed(Keyboard::Right)) { 43 | addDirection(Direction::RIGHT); 44 | } 45 | } 46 | 47 | void Engine::addDirection(int newDirection) { 48 | if (directionQueue.empty()) { 49 | directionQueue.emplace_back(newDirection); 50 | } 51 | else { 52 | if (directionQueue.back() != newDirection) { 53 | directionQueue.emplace_back(newDirection); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /nibbles-03/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | int main() { 4 | Engine engine; 5 | engine.run(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /nibbles-03/src/snakesection.cpp: -------------------------------------------------------------------------------- 1 | #include "snakesection.hpp" 2 | 3 | SnakeSection::SnakeSection(Vector2f startPosition) { 4 | section.setSize(Vector2f(20, 20)); 5 | section.setFillColor(Color::Green); 6 | section.setPosition(startPosition); 7 | position = startPosition; 8 | } 9 | 10 | Vector2f SnakeSection::getPosition() { 11 | return position; 12 | } 13 | 14 | void SnakeSection::setPosition(Vector2f newPosition) { 15 | position = newPosition; 16 | } 17 | 18 | RectangleShape SnakeSection::getShape() { 19 | return section; 20 | } 21 | 22 | void SnakeSection::update() { 23 | section.setPosition(position); 24 | } 25 | -------------------------------------------------------------------------------- /nibbles-03/src/update.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::update() { 4 | // Update snake positions 5 | if (timeSinceLastMove.asSeconds() >= seconds(1.f / float(speed)).asSeconds()) { 6 | Vector2f thisSectionPosition = snake[0].getPosition(); 7 | Vector2f lastSectionPosition = thisSectionPosition; 8 | 9 | // Is there anything in the input queue? 10 | if (!directionQueue.empty()) { 11 | // Make sure we don't reverse direction 12 | switch (snakeDirection) { 13 | case Direction::UP: 14 | if (directionQueue.front() != Direction::DOWN) { 15 | snakeDirection = directionQueue.front(); 16 | } 17 | break; 18 | case Direction::DOWN: 19 | if (directionQueue.front() != Direction::UP) { 20 | snakeDirection = directionQueue.front(); 21 | } 22 | break; 23 | case Direction::LEFT: 24 | if (directionQueue.front() != Direction::RIGHT) { 25 | snakeDirection = directionQueue.front(); 26 | } 27 | break; 28 | case Direction::RIGHT: 29 | if (directionQueue.front() != Direction::LEFT) { 30 | snakeDirection = directionQueue.front(); 31 | } 32 | break; 33 | } 34 | directionQueue.pop_front(); 35 | } 36 | 37 | // Do we need to grow the snake 38 | if (sectionsToAdd) { 39 | addSnakeSection(); 40 | sectionsToAdd--; 41 | } 42 | 43 | // Update the snake's head position 44 | switch (snakeDirection) { 45 | case Direction::RIGHT: 46 | snake[0].setPosition(Vector2f(thisSectionPosition.x + 20, thisSectionPosition.y)); 47 | break; 48 | case Direction::DOWN: 49 | snake[0].setPosition(Vector2f(thisSectionPosition.x, thisSectionPosition.y + 20)); 50 | break; 51 | case Direction::LEFT: 52 | snake[0].setPosition(Vector2f(thisSectionPosition.x - 20, thisSectionPosition.y)); 53 | break; 54 | case Direction::UP: 55 | snake[0].setPosition(Vector2f(thisSectionPosition.x, thisSectionPosition.y - 20)); 56 | break; 57 | } 58 | 59 | // Update the snake tail positions 60 | for (int s = 1; s < snake.size(); s++) { 61 | thisSectionPosition = snake[s].getPosition(); 62 | snake[s].setPosition(lastSectionPosition); 63 | lastSectionPosition = thisSectionPosition; 64 | } 65 | 66 | // update snake sections 67 | for (auto & s : snake) { 68 | s.update(); 69 | } 70 | 71 | // Collision detection - Apple 72 | if (snake[0].getShape().getGlobalBounds().intersects(apple.getSprite().getGlobalBounds())) { 73 | // We hit the apple, add more sections to the snake, increase speed and move the apple 74 | // TODO - increment score, apples eaten, add snake sections and check if its time for the next level 75 | 76 | sectionsToAdd += 4; 77 | speed++; 78 | moveApple(); 79 | } 80 | 81 | // Collision detection - Snake Body 82 | for (int s = 1; s < snake.size(); s++) { 83 | if (snake[0].getShape().getGlobalBounds().intersects(snake[s].getShape().getGlobalBounds())) { 84 | // Game Over 85 | currentGameState = GameState::GAMEOVER; 86 | } 87 | } 88 | 89 | // Collision detection - Wall 90 | for (auto & w : wallSections) { 91 | if (snake[0].getShape().getGlobalBounds().intersects(w.getShape().getGlobalBounds())) { 92 | // Game Over 93 | currentGameState = GameState::GAMEOVER; 94 | } 95 | } 96 | 97 | // Reset the last move timer. 98 | timeSinceLastMove = Time::Zero; 99 | } // END update snake positions 100 | } 101 | 102 | -------------------------------------------------------------------------------- /nibbles-03/src/wall.cpp: -------------------------------------------------------------------------------- 1 | #include "wall.hpp" 2 | 3 | Wall::Wall(Vector2f position, Vector2f size) { 4 | wallShape.setSize(size); 5 | wallShape.setFillColor(Color::White); 6 | wallShape.setPosition(position); 7 | } 8 | 9 | RectangleShape Wall::getShape() { 10 | return wallShape; 11 | } -------------------------------------------------------------------------------- /nibbles-04/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /nibbles-04/.idea/.name: -------------------------------------------------------------------------------- 1 | nibbles_04 -------------------------------------------------------------------------------- /nibbles-04/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /nibbles-04/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /nibbles-04/.idea/nibbles-01.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /nibbles-04/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.17) 2 | project(nibbles_04) 3 | 4 | set(CMAKE_CXX_STANDARD 20) 5 | 6 | add_executable(nibbles_04 src/main.cpp src/engine.cpp headers/engine.hpp src/draw.cpp src/input.cpp src/snakesection.cpp headers/snakesection.hpp src/update.cpp src/apple.cpp headers/apple.hpp src/wall.cpp headers/wall.hpp) 7 | 8 | include_directories(headers /usr/include c:/SFML/include) 9 | 10 | set(SFML_ROOT c:/SFML) 11 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") 12 | find_package(SFML REQUIRED system window graphics) 13 | if (SFML_FOUND) 14 | include_directories(${SFML_INCLUDE_DIR}) 15 | target_link_libraries(nibbles_04 ${SFML_LIBRARIES}) 16 | endif() 17 | 18 | file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}) 19 | 20 | # Copy dlls to build 21 | if(WIN32) 22 | file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll") 23 | file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 24 | file(GLOB MINGW_DEP_DLLS "C:/mingw64/bin/*.dll") 25 | file(COPY ${MINGW_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 26 | endif() 27 | -------------------------------------------------------------------------------- /nibbles-04/assets/fonts/slant_regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/assets/fonts/slant_regular.ttf -------------------------------------------------------------------------------- /nibbles-04/assets/levels/level1.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | x x 3 | x x 4 | x x 5 | x x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-04/assets/levels/level2.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | x x 3 | x x 4 | x x 5 | x x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x xxxxxxxxxxx x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-04/assets/levels/levels.txt: -------------------------------------------------------------------------------- 1 | level1.txt 2 | level2.txt -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "10.2.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW ) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "ELF") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include;/usr/local/include;/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed;/usr/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0;/usr/lib;/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.9.1-1-MANJARO") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.9.1-1-MANJARO") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.9.1-1-MANJARO") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.9.1-1-MANJARO") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/adam/CLionProjects/nibbles-04") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/adam/CLionProjects/nibbles-04/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCInformation.cmake" 11 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCXXInformation.cmake" 12 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCommonLanguageInclude.cmake" 14 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeFindCodeBlocks.cmake" 16 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeGenericSystem.cmake" 17 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeInitializeConfigs.cmake" 18 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeLanguageInformation.cmake" 19 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 22 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-C.cmake" 23 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-CXX.cmake" 24 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU.cmake" 25 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Internal/CMakeCheckCompilerFlag.cmake" 26 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-C.cmake" 27 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-CXX.cmake" 28 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU.cmake" 29 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux.cmake" 30 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/UnixPaths.cmake" 31 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/ProcessorCount.cmake" 32 | "../CMakeLists.txt" 33 | "CMakeFiles/3.17.3/CMakeCCompiler.cmake" 34 | "CMakeFiles/3.17.3/CMakeCXXCompiler.cmake" 35 | "CMakeFiles/3.17.3/CMakeSystem.cmake" 36 | "../cmake_modules/FindSFML.cmake" 37 | ) 38 | 39 | # The corresponding makefile is: 40 | set(CMAKE_MAKEFILE_OUTPUTS 41 | "Makefile" 42 | "CMakeFiles/cmake.check_cache" 43 | ) 44 | 45 | # Byproducts of CMake generate step: 46 | set(CMAKE_MAKEFILE_PRODUCTS 47 | "CMakeFiles/CMakeDirectoryInformation.cmake" 48 | ) 49 | 50 | # Dependency information for all targets: 51 | set(CMAKE_DEPEND_INFO_FILES 52 | "CMakeFiles/nibbles_04.dir/DependInfo.cmake" 53 | ) 54 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | /home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | /home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir 4 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: 1.0 (local)Options: 2 | 3 | Options: -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/adam/CLionProjects/nibbles-04 2 | -- Found SFML .. in /usr/include 3 | -- Configuring done 4 | -- Generating done 5 | -- Build files have been written to: /home/adam/CLionProjects/nibbles-04/cmake-build-debug 6 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-04/src/apple.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/apple.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-04/src/draw.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/draw.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-04/src/engine.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/engine.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-04/src/input.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/input.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-04/src/main.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/main.cpp.o" 12 | "/home/adam/CLionProjects/nibbles-04/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o" 13 | "/home/adam/CLionProjects/nibbles-04/src/update.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/update.cpp.o" 14 | "/home/adam/CLionProjects/nibbles-04/src/wall.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/src/wall.cpp.o" 15 | ) 16 | set(CMAKE_CXX_COMPILER_ID "GNU") 17 | 18 | # The include file search paths: 19 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 20 | "../headers" 21 | ) 22 | 23 | # Targets to which this target links. 24 | set(CMAKE_TARGET_LINKED_INFO_FILES 25 | ) 26 | 27 | # Fortran module output directory. 28 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 29 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_03.dir/src/apple.cpp.o" 3 | "CMakeFiles/nibbles_03.dir/src/draw.cpp.o" 4 | "CMakeFiles/nibbles_03.dir/src/engine.cpp.o" 5 | "CMakeFiles/nibbles_03.dir/src/input.cpp.o" 6 | "CMakeFiles/nibbles_03.dir/src/main.cpp.o" 7 | "CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o" 8 | "CMakeFiles/nibbles_03.dir/src/update.cpp.o" 9 | "CMakeFiles/nibbles_03.dir/src/wall.cpp.o" 10 | "nibbles_03" 11 | "nibbles_03.pdb" 12 | ) 13 | 14 | # Per-language clean rules from dependency scanning. 15 | foreach(lang CXX) 16 | include(CMakeFiles/nibbles_03.dir/cmake_clean_${lang}.cmake OPTIONAL) 17 | endforeach() 18 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/depend.make: -------------------------------------------------------------------------------- 1 | # Empty dependencies file for nibbles_03. 2 | # This may be replaced when dependencies are built. 3 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-04/headers 10 | 11 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_03.dir/src/main.cpp.o CMakeFiles/nibbles_03.dir/src/engine.cpp.o CMakeFiles/nibbles_03.dir/src/draw.cpp.o CMakeFiles/nibbles_03.dir/src/input.cpp.o CMakeFiles/nibbles_03.dir/src/snakesection.cpp.o CMakeFiles/nibbles_03.dir/src/update.cpp.o CMakeFiles/nibbles_03.dir/src/apple.cpp.o CMakeFiles/nibbles_03.dir/src/wall.cpp.o -o nibbles_03 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so /usr/lib/libsfml-network.so /usr/lib/libsfml-audio.so 2 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_03.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | 11 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles-04/src/apple.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/apple.cpp.o" 8 | "/home/adam/CLionProjects/nibbles-04/src/draw.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/draw.cpp.o" 9 | "/home/adam/CLionProjects/nibbles-04/src/engine.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/engine.cpp.o" 10 | "/home/adam/CLionProjects/nibbles-04/src/input.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/input.cpp.o" 11 | "/home/adam/CLionProjects/nibbles-04/src/main.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/main.cpp.o" 12 | "/home/adam/CLionProjects/nibbles-04/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o" 13 | "/home/adam/CLionProjects/nibbles-04/src/update.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/update.cpp.o" 14 | "/home/adam/CLionProjects/nibbles-04/src/wall.cpp" "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/wall.cpp.o" 15 | ) 16 | set(CMAKE_CXX_COMPILER_ID "GNU") 17 | 18 | # The include file search paths: 19 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 20 | "../headers" 21 | "../c:/SFML/include" 22 | ) 23 | 24 | # Targets to which this target links. 25 | set(CMAKE_TARGET_LINKED_INFO_FILES 26 | ) 27 | 28 | # Fortran module output directory. 29 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 30 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles_04.dir/src/apple.cpp.o" 3 | "CMakeFiles/nibbles_04.dir/src/draw.cpp.o" 4 | "CMakeFiles/nibbles_04.dir/src/engine.cpp.o" 5 | "CMakeFiles/nibbles_04.dir/src/input.cpp.o" 6 | "CMakeFiles/nibbles_04.dir/src/main.cpp.o" 7 | "CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o" 8 | "CMakeFiles/nibbles_04.dir/src/update.cpp.o" 9 | "CMakeFiles/nibbles_04.dir/src/wall.cpp.o" 10 | "nibbles_04" 11 | "nibbles_04.pdb" 12 | ) 13 | 14 | # Per-language clean rules from dependency scanning. 15 | foreach(lang CXX) 16 | include(CMakeFiles/nibbles_04.dir/cmake_clean_${lang}.cmake OPTIONAL) 17 | endforeach() 18 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_04.dir/src/apple.cpp.o 5 | ../headers/apple.hpp 6 | /home/adam/CLionProjects/nibbles-04/src/apple.cpp 7 | CMakeFiles/nibbles_04.dir/src/draw.cpp.o 8 | ../headers/apple.hpp 9 | ../headers/engine.hpp 10 | ../headers/snakesection.hpp 11 | ../headers/wall.hpp 12 | /home/adam/CLionProjects/nibbles-04/src/draw.cpp 13 | CMakeFiles/nibbles_04.dir/src/engine.cpp.o 14 | ../headers/apple.hpp 15 | ../headers/engine.hpp 16 | ../headers/snakesection.hpp 17 | ../headers/wall.hpp 18 | /home/adam/CLionProjects/nibbles-04/src/engine.cpp 19 | CMakeFiles/nibbles_04.dir/src/input.cpp.o 20 | ../headers/apple.hpp 21 | ../headers/engine.hpp 22 | ../headers/snakesection.hpp 23 | ../headers/wall.hpp 24 | /home/adam/CLionProjects/nibbles-04/src/input.cpp 25 | CMakeFiles/nibbles_04.dir/src/main.cpp.o 26 | ../headers/apple.hpp 27 | ../headers/engine.hpp 28 | ../headers/snakesection.hpp 29 | ../headers/wall.hpp 30 | /home/adam/CLionProjects/nibbles-04/src/main.cpp 31 | CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o 32 | ../headers/snakesection.hpp 33 | /home/adam/CLionProjects/nibbles-04/src/snakesection.cpp 34 | CMakeFiles/nibbles_04.dir/src/update.cpp.o 35 | ../headers/apple.hpp 36 | ../headers/engine.hpp 37 | ../headers/snakesection.hpp 38 | ../headers/wall.hpp 39 | /home/adam/CLionProjects/nibbles-04/src/update.cpp 40 | CMakeFiles/nibbles_04.dir/src/wall.cpp.o 41 | ../headers/wall.hpp 42 | /home/adam/CLionProjects/nibbles-04/src/wall.cpp 43 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles_04.dir/src/apple.cpp.o: ../headers/apple.hpp 5 | CMakeFiles/nibbles_04.dir/src/apple.cpp.o: ../src/apple.cpp 6 | 7 | CMakeFiles/nibbles_04.dir/src/draw.cpp.o: ../headers/apple.hpp 8 | CMakeFiles/nibbles_04.dir/src/draw.cpp.o: ../headers/engine.hpp 9 | CMakeFiles/nibbles_04.dir/src/draw.cpp.o: ../headers/snakesection.hpp 10 | CMakeFiles/nibbles_04.dir/src/draw.cpp.o: ../headers/wall.hpp 11 | CMakeFiles/nibbles_04.dir/src/draw.cpp.o: ../src/draw.cpp 12 | 13 | CMakeFiles/nibbles_04.dir/src/engine.cpp.o: ../headers/apple.hpp 14 | CMakeFiles/nibbles_04.dir/src/engine.cpp.o: ../headers/engine.hpp 15 | CMakeFiles/nibbles_04.dir/src/engine.cpp.o: ../headers/snakesection.hpp 16 | CMakeFiles/nibbles_04.dir/src/engine.cpp.o: ../headers/wall.hpp 17 | CMakeFiles/nibbles_04.dir/src/engine.cpp.o: ../src/engine.cpp 18 | 19 | CMakeFiles/nibbles_04.dir/src/input.cpp.o: ../headers/apple.hpp 20 | CMakeFiles/nibbles_04.dir/src/input.cpp.o: ../headers/engine.hpp 21 | CMakeFiles/nibbles_04.dir/src/input.cpp.o: ../headers/snakesection.hpp 22 | CMakeFiles/nibbles_04.dir/src/input.cpp.o: ../headers/wall.hpp 23 | CMakeFiles/nibbles_04.dir/src/input.cpp.o: ../src/input.cpp 24 | 25 | CMakeFiles/nibbles_04.dir/src/main.cpp.o: ../headers/apple.hpp 26 | CMakeFiles/nibbles_04.dir/src/main.cpp.o: ../headers/engine.hpp 27 | CMakeFiles/nibbles_04.dir/src/main.cpp.o: ../headers/snakesection.hpp 28 | CMakeFiles/nibbles_04.dir/src/main.cpp.o: ../headers/wall.hpp 29 | CMakeFiles/nibbles_04.dir/src/main.cpp.o: ../src/main.cpp 30 | 31 | CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o: ../headers/snakesection.hpp 32 | CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o: ../src/snakesection.cpp 33 | 34 | CMakeFiles/nibbles_04.dir/src/update.cpp.o: ../headers/apple.hpp 35 | CMakeFiles/nibbles_04.dir/src/update.cpp.o: ../headers/engine.hpp 36 | CMakeFiles/nibbles_04.dir/src/update.cpp.o: ../headers/snakesection.hpp 37 | CMakeFiles/nibbles_04.dir/src/update.cpp.o: ../headers/wall.hpp 38 | CMakeFiles/nibbles_04.dir/src/update.cpp.o: ../src/update.cpp 39 | 40 | CMakeFiles/nibbles_04.dir/src/wall.cpp.o: ../headers/wall.hpp 41 | CMakeFiles/nibbles_04.dir/src/wall.cpp.o: ../src/wall.cpp 42 | 43 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles-04/headers -I/home/adam/CLionProjects/nibbles-04/c:/SFML/include 10 | 11 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles_04.dir/src/main.cpp.o CMakeFiles/nibbles_04.dir/src/engine.cpp.o CMakeFiles/nibbles_04.dir/src/draw.cpp.o CMakeFiles/nibbles_04.dir/src/input.cpp.o CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o CMakeFiles/nibbles_04.dir/src/update.cpp.o CMakeFiles/nibbles_04.dir/src/apple.cpp.o CMakeFiles/nibbles_04.dir/src/wall.cpp.o -o nibbles_04 /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so 2 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | 11 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/apple.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/apple.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/draw.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/draw.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/engine.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/engine.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/input.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/input.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/main.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/snakesection.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/update.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/update.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/wall.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/CMakeFiles/nibbles_04.dir/src/wall.cpp.o -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/assets/fonts/slant_regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/assets/fonts/slant_regular.ttf -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/assets/levels/level1.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | x x 3 | x x 4 | x x 5 | x x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/assets/levels/level2.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | x x 3 | x x 4 | x x 5 | x x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x xxxxxxxxxxx x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/assets/levels/levels.txt: -------------------------------------------------------------------------------- 1 | level1.txt 2 | level2.txt -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/adam/CLionProjects/nibbles-04 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(CMAKE_INSTALL_COMPONENT) 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 42 | else() 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 44 | endif() 45 | 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") 48 | file(WRITE "/home/adam/CLionProjects/nibbles-04/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 50 | -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/nibbles_01: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/nibbles_01 -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/nibbles_02: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/nibbles_02 -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/nibbles_03: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/nibbles_03 -------------------------------------------------------------------------------- /nibbles-04/cmake-build-debug/nibbles_04: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-04/cmake-build-debug/nibbles_04 -------------------------------------------------------------------------------- /nibbles-04/headers/apple.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_02_APPLE_HPP 2 | #define NIBBLES_02_APPLE_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Apple { 9 | private: 10 | RectangleShape sprite; 11 | 12 | public: 13 | Apple(); 14 | 15 | void setPosition(Vector2f newPosition); 16 | RectangleShape getSprite(); 17 | }; 18 | 19 | 20 | #endif //NIBBLES_02_APPLE_HPP 21 | -------------------------------------------------------------------------------- /nibbles-04/headers/engine.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_01_ENGINE_HPP 2 | #define NIBBLES_01_ENGINE_HPP 3 | 4 | #include "snakesection.hpp" 5 | #include "apple.hpp" 6 | #include "wall.hpp" 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | using namespace sf; 14 | using namespace std; 15 | 16 | class Engine { 17 | private: 18 | // Window 19 | Vector2f resolution; 20 | RenderWindow window; 21 | const unsigned int FPS = 60; 22 | static const Time TimePerFrame; 23 | 24 | vector snake; 25 | 26 | int snakeDirection; 27 | deque directionQueue; // queue for direction key presses 28 | int speed; 29 | int sectionsToAdd; // how many sections to add to the snake 30 | int applesEatenThisLevel; 31 | int applesEatenTotal; 32 | unsigned long long int score; 33 | 34 | Apple apple; 35 | 36 | vector wallSections; 37 | int currentLevel; 38 | int maxLevels; 39 | vector levels; 40 | 41 | Font mainFont; 42 | Text titleText; 43 | Text applesEatenText; 44 | Text currentLevelText; 45 | Text scoreText; 46 | Text gameOverText; 47 | Text pressEnterText; 48 | 49 | Time timeSinceLastMove; 50 | 51 | int currentGameState; 52 | int lastGameState; // For storing the last state the game was in when pausing. 53 | 54 | public: 55 | enum Direction { UP, RIGHT, DOWN, LEFT }; 56 | enum GameState { RUNNING, PAUSED, GAMEOVER }; 57 | Engine(); 58 | 59 | void input(); 60 | void addDirection(int newDirection); 61 | void update(); 62 | void draw(); 63 | 64 | static void setupText(Text *textItem, const Font &font, const String &value, int size, Color colour); 65 | 66 | void newSnake(); 67 | void addSnakeSection(); 68 | 69 | void moveApple(); 70 | void checkLevelFiles(); 71 | void loadLevel(int levelNumber); 72 | 73 | void beginNextLevel(); 74 | void startTheGame(); 75 | 76 | void togglePause(); 77 | 78 | // The main loop will be in the run function 79 | void run(); 80 | 81 | }; 82 | 83 | 84 | #endif //NIBBLES_01_ENGINE_HPP 85 | -------------------------------------------------------------------------------- /nibbles-04/headers/snakesection.hpp: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NIBBLES_01_SNAKESECTION_HPP 3 | #define NIBBLES_01_SNAKESECTION_HPP 4 | 5 | #include 6 | 7 | using namespace sf; 8 | 9 | class SnakeSection { 10 | private: 11 | Vector2f position; 12 | RectangleShape section; 13 | public: 14 | explicit SnakeSection(Vector2f startPosition); 15 | 16 | Vector2f getPosition(); 17 | void setPosition(Vector2f newPosition); 18 | 19 | RectangleShape getShape(); 20 | 21 | void update(); 22 | }; 23 | 24 | 25 | #endif //NIBBLES_01_SNAKESECTION_HPP 26 | -------------------------------------------------------------------------------- /nibbles-04/headers/wall.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_03_WALL_HPP 2 | #define NIBBLES_03_WALL_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Wall { 9 | private: 10 | RectangleShape wallShape; 11 | 12 | public: 13 | Wall(Vector2f position, Vector2f size); 14 | 15 | RectangleShape getShape(); 16 | 17 | }; 18 | 19 | 20 | #endif //NIBBLES_03_WALL_HPP 21 | -------------------------------------------------------------------------------- /nibbles-04/src/apple.cpp: -------------------------------------------------------------------------------- 1 | #include "apple.hpp" 2 | 3 | Apple::Apple() { 4 | Vector2f startingPosition(400, 300); 5 | sprite.setSize(Vector2f(20,20)); 6 | sprite.setFillColor(Color::Red); 7 | sprite.setPosition(startingPosition); 8 | } 9 | 10 | void Apple::setPosition(Vector2f newPosition) { 11 | sprite.setPosition(newPosition); 12 | } 13 | 14 | RectangleShape Apple::getSprite() { 15 | return sprite; 16 | } -------------------------------------------------------------------------------- /nibbles-04/src/draw.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::draw() { 4 | window.clear(Color::Black); 5 | 6 | // Draw walls 7 | for (auto & w : wallSections) { 8 | window.draw(w.getShape()); 9 | } 10 | 11 | // Draw Apple 12 | window.draw(apple.getSprite()); 13 | 14 | // Draw snake sections 15 | for (auto & s : snake) { 16 | window.draw(s.getShape()); 17 | } 18 | 19 | // Draw Text 20 | window.draw(titleText); 21 | window.draw(currentLevelText); 22 | window.draw(applesEatenText); 23 | window.draw(scoreText); 24 | 25 | // Draw GameOver 26 | if (currentGameState == GameState::GAMEOVER) { 27 | window.draw(gameOverText); 28 | window.draw(pressEnterText); 29 | } 30 | 31 | window.display(); 32 | } 33 | -------------------------------------------------------------------------------- /nibbles-04/src/input.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::input() { 4 | Event event{}; 5 | 6 | while (window.pollEvent(event)) { 7 | // Window closed 8 | if (event.type == Event::Closed) { 9 | window.close(); 10 | } 11 | 12 | // Handle Keyboard Input 13 | if (event.type == Event::KeyPressed) { 14 | // Quit 15 | if (Keyboard::isKeyPressed(Keyboard::Escape)) { 16 | window.close(); 17 | } 18 | 19 | // Pause 20 | if (Keyboard::isKeyPressed(Keyboard::Pause)) { 21 | togglePause(); 22 | } 23 | 24 | // New Game 25 | if (currentGameState == GameState::GAMEOVER) { 26 | if (Keyboard::isKeyPressed(Keyboard::Enter)) { 27 | startTheGame(); 28 | } 29 | } 30 | } 31 | } // END while pollEvent 32 | // Directions 33 | if (Keyboard::isKeyPressed(Keyboard::Up)) { 34 | addDirection(Direction::UP); 35 | } 36 | else if (Keyboard::isKeyPressed(Keyboard::Down)) { 37 | addDirection(Direction::DOWN); 38 | } 39 | else if (Keyboard::isKeyPressed(Keyboard::Left)) { 40 | addDirection(Direction::LEFT); 41 | } 42 | else if (Keyboard::isKeyPressed(Keyboard::Right)) { 43 | addDirection(Direction::RIGHT); 44 | } 45 | } 46 | 47 | void Engine::addDirection(int newDirection) { 48 | if (directionQueue.empty()) { 49 | directionQueue.emplace_back(newDirection); 50 | } 51 | else { 52 | if (directionQueue.back() != newDirection) { 53 | directionQueue.emplace_back(newDirection); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /nibbles-04/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | int main() { 4 | Engine engine; 5 | engine.run(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /nibbles-04/src/snakesection.cpp: -------------------------------------------------------------------------------- 1 | #include "snakesection.hpp" 2 | 3 | SnakeSection::SnakeSection(Vector2f startPosition) { 4 | section.setSize(Vector2f(20, 20)); 5 | section.setFillColor(Color::Green); 6 | section.setPosition(startPosition); 7 | position = startPosition; 8 | } 9 | 10 | Vector2f SnakeSection::getPosition() { 11 | return position; 12 | } 13 | 14 | void SnakeSection::setPosition(Vector2f newPosition) { 15 | position = newPosition; 16 | } 17 | 18 | RectangleShape SnakeSection::getShape() { 19 | return section; 20 | } 21 | 22 | void SnakeSection::update() { 23 | section.setPosition(position); 24 | } 25 | -------------------------------------------------------------------------------- /nibbles-04/src/wall.cpp: -------------------------------------------------------------------------------- 1 | #include "wall.hpp" 2 | 3 | Wall::Wall(Vector2f position, Vector2f size) { 4 | wallShape.setSize(size); 5 | wallShape.setFillColor(Color::White); 6 | wallShape.setPosition(position); 7 | } 8 | 9 | RectangleShape Wall::getShape() { 10 | return wallShape; 11 | } -------------------------------------------------------------------------------- /nibbles-Homework/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.17) 2 | project(nibbles) 3 | 4 | set(CMAKE_CXX_STANDARD 20) 5 | 6 | add_executable(nibbles src/main.cpp src/engine.cpp headers/engine.hpp src/draw.cpp src/input.cpp src/snakesection.cpp headers/snakesection.hpp src/update.cpp src/apple.cpp headers/apple.hpp src/wall.cpp headers/wall.hpp) 7 | 8 | include_directories(headers /usr/include c:/SFML/include) 9 | 10 | set(SFML_ROOT c:/SFML) 11 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") 12 | find_package(SFML REQUIRED system window graphics) 13 | if (SFML_FOUND) 14 | include_directories(${SFML_INCLUDE_DIR}) 15 | target_link_libraries(nibbles ${SFML_LIBRARIES}) 16 | endif() 17 | 18 | file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}) 19 | 20 | # Copy dlls to build directory 21 | if(WIN32) 22 | file(GLOB BINARY_DEP_DLLS "${SFML_INCLUDE_DIR}/../bin/*.dll") 23 | file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 24 | file(GLOB MINGW_DEP_DLLS "C:/mingw64/bin/*.dll") 25 | file(COPY ${MINGW_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR}) 26 | endif() 27 | -------------------------------------------------------------------------------- /nibbles-Homework/HOMEWORK.MD: -------------------------------------------------------------------------------- 1 | NIBBLES HOMEWORK 2 | ================ 3 | This is the homework set after completion of the Nibbles C++ SFML tutorial. 4 | 5 | * [x] Change the number of apples required to progress to the next level into a variable in the Engine class, 6 | and change it to 5 7 | * [x] Make it so the speed only increases when you load a new level instead of when you eat apples. Start the speed a 8 | bit faster though, or the first couple of levels will be quite slow. 9 | * [x] Add a couple of 'cheat' keys 10 | * [x] SPACE - add snake section 11 | * [x] M - move the apple 12 | * [x] L - load the next level 13 | * [x] Can you find any code that we didn't actually use in the project. Or do you have any ideas on how to improve 14 | the code. I have some ideas; but I'd love to see yours. 15 | * [ ] Your choice - surprise me (I'm excited to see what you come up with) 16 | * [x] **BONUS** - Change the level files so that you can set the starting position and length of the snake. You could 17 | use the 'h' character to denote the head, and the 's' character to denote the body sections. Then in the engine, 18 | build a function to load in the snake from the level file. The trick will be to work out how the snake connects. 19 | Some loops will be required. With this, you could make some levels super hard by 20 | starting the game with a really long snake. 21 | -------------------------------------------------------------------------------- /nibbles-Homework/assets/fonts/slant_regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/assets/fonts/slant_regular.ttf -------------------------------------------------------------------------------- /nibbles-Homework/assets/levels/level1.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | xR x 3 | x tttth x 4 | x t x 5 | x t x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-Homework/assets/levels/level2.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | xD x 3 | x ttttttttt x 4 | x t t x 5 | x h t x 6 | x t x 7 | x t x 8 | x t x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x xxxxxxxxxxx x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-Homework/assets/levels/levels.txt: -------------------------------------------------------------------------------- 1 | level1.txt 2 | level2.txt -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "10.2.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW ) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "ELF") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include;/usr/local/include;/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include-fixed;/usr/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0;/usr/lib;/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-5.9.1-1-MANJARO") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "5.9.1-1-MANJARO") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-5.9.1-1-MANJARO") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "5.9.1-1-MANJARO") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdC/a.out -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/3.17.3/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/adam/CLionProjects/nibbles") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/adam/CLionProjects/nibbles/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCInformation.cmake" 11 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCXXInformation.cmake" 12 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeCommonLanguageInclude.cmake" 14 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeFindCodeBlocks.cmake" 16 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeGenericSystem.cmake" 17 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeInitializeConfigs.cmake" 18 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeLanguageInformation.cmake" 19 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInformation.cmake" 20 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/CMakeSystemSpecificInitialize.cmake" 21 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 22 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-C.cmake" 23 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU-CXX.cmake" 24 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Compiler/GNU.cmake" 25 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Internal/CMakeCheckCompilerFlag.cmake" 26 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-C.cmake" 27 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU-CXX.cmake" 28 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux-GNU.cmake" 29 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/Linux.cmake" 30 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/Platform/UnixPaths.cmake" 31 | "/home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/share/cmake-3.17/Modules/ProcessorCount.cmake" 32 | "../CMakeLists.txt" 33 | "CMakeFiles/3.17.3/CMakeCCompiler.cmake" 34 | "CMakeFiles/3.17.3/CMakeCXXCompiler.cmake" 35 | "CMakeFiles/3.17.3/CMakeSystem.cmake" 36 | "../cmake_modules/FindSFML.cmake" 37 | ) 38 | 39 | # The corresponding makefile is: 40 | set(CMAKE_MAKEFILE_OUTPUTS 41 | "Makefile" 42 | "CMakeFiles/cmake.check_cache" 43 | ) 44 | 45 | # Byproducts of CMake generate step: 46 | set(CMAKE_MAKEFILE_PRODUCTS 47 | "CMakeFiles/CMakeDirectoryInformation.cmake" 48 | ) 49 | 50 | # Dependency information for all targets: 51 | set(CMAKE_DEPEND_INFO_FILES 52 | "CMakeFiles/nibbles.dir/DependInfo.cmake" 53 | ) 54 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | #============================================================================= 10 | # Special targets provided by cmake. 11 | 12 | # Disable implicit rules so canonical targets will work. 13 | .SUFFIXES: 14 | 15 | 16 | # Disable VCS-based implicit rules. 17 | % : %,v 18 | 19 | 20 | # Disable VCS-based implicit rules. 21 | % : RCS/% 22 | 23 | 24 | # Disable VCS-based implicit rules. 25 | % : RCS/%,v 26 | 27 | 28 | # Disable VCS-based implicit rules. 29 | % : SCCS/s.% 30 | 31 | 32 | # Disable VCS-based implicit rules. 33 | % : s.% 34 | 35 | 36 | .SUFFIXES: .hpux_make_needs_suffix_list 37 | 38 | 39 | # Command-line flag to silence nested $(MAKE). 40 | $(VERBOSE)MAKESILENT = -s 41 | 42 | # Suppress display of executed commands. 43 | $(VERBOSE).SILENT: 44 | 45 | 46 | # A target that is always out of date. 47 | cmake_force: 48 | 49 | .PHONY : cmake_force 50 | 51 | #============================================================================= 52 | # Set environment variables for the build. 53 | 54 | # The shell in which to execute make rules. 55 | SHELL = /bin/sh 56 | 57 | # The CMake executable. 58 | CMAKE_COMMAND = /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake 59 | 60 | # The command to remove a file. 61 | RM = /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -E rm -f 62 | 63 | # Escaping for special characters. 64 | EQUALS = = 65 | 66 | # The top-level source directory on which CMake was run. 67 | CMAKE_SOURCE_DIR = /home/adam/CLionProjects/nibbles 68 | 69 | # The top-level build directory on which CMake was run. 70 | CMAKE_BINARY_DIR = /home/adam/CLionProjects/nibbles/cmake-build-debug 71 | 72 | #============================================================================= 73 | # Directory level rules for the build root directory 74 | 75 | # The main recursive "all" target. 76 | all: CMakeFiles/nibbles.dir/all 77 | 78 | .PHONY : all 79 | 80 | # The main recursive "preinstall" target. 81 | preinstall: 82 | 83 | .PHONY : preinstall 84 | 85 | # The main recursive "clean" target. 86 | clean: CMakeFiles/nibbles.dir/clean 87 | 88 | .PHONY : clean 89 | 90 | #============================================================================= 91 | # Target rules for target CMakeFiles/nibbles.dir 92 | 93 | # All Build rule for target. 94 | CMakeFiles/nibbles.dir/all: 95 | $(MAKE) $(MAKESILENT) -f CMakeFiles/nibbles.dir/build.make CMakeFiles/nibbles.dir/depend 96 | $(MAKE) $(MAKESILENT) -f CMakeFiles/nibbles.dir/build.make CMakeFiles/nibbles.dir/build 97 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9 "Built target nibbles" 98 | .PHONY : CMakeFiles/nibbles.dir/all 99 | 100 | # Build rule for subdir invocation for target. 101 | CMakeFiles/nibbles.dir/rule: cmake_check_build_system 102 | $(CMAKE_COMMAND) -E cmake_progress_start /home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles 9 103 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/nibbles.dir/all 104 | $(CMAKE_COMMAND) -E cmake_progress_start /home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles 0 105 | .PHONY : CMakeFiles/nibbles.dir/rule 106 | 107 | # Convenience name for target. 108 | nibbles: CMakeFiles/nibbles.dir/rule 109 | 110 | .PHONY : nibbles 111 | 112 | # clean rule for target. 113 | CMakeFiles/nibbles.dir/clean: 114 | $(MAKE) $(MAKESILENT) -f CMakeFiles/nibbles.dir/build.make CMakeFiles/nibbles.dir/clean 115 | .PHONY : CMakeFiles/nibbles.dir/clean 116 | 117 | #============================================================================= 118 | # Special targets to cleanup operation of make. 119 | 120 | # Special rule to run CMake to check the build system integrity. 121 | # No rule that depends on this can have commands that come from listfiles 122 | # because they might be regenerated. 123 | cmake_check_build_system: 124 | $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 125 | .PHONY : cmake_check_build_system 126 | 127 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | /home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | /home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir 4 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: 1.0 (local)Options: 2 | 3 | Options: -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | /home/adam/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/202.7660.37/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/adam/CLionProjects/nibbles 2 | -- Found SFML .. in /usr/include 3 | -- Configuring done 4 | -- Generating done 5 | -- Build files have been written to: /home/adam/CLionProjects/nibbles/cmake-build-debug 6 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | ../headers/apple.hpp 10 | SFML/Graphics.hpp 11 | - 12 | 13 | ../headers/engine.hpp 14 | snakesection.hpp 15 | ../headers/snakesection.hpp 16 | apple.hpp 17 | ../headers/apple.hpp 18 | wall.hpp 19 | ../headers/wall.hpp 20 | SFML/Graphics.hpp 21 | - 22 | SFML/Graphics/RectangleShape.hpp 23 | - 24 | vector 25 | - 26 | deque 27 | - 28 | fstream 29 | - 30 | stdlib.h 31 | - 32 | 33 | ../headers/snakesection.hpp 34 | SFML/Graphics.hpp 35 | - 36 | 37 | ../headers/wall.hpp 38 | SFML/Graphics.hpp 39 | - 40 | 41 | /home/adam/CLionProjects/nibbles/src/draw.cpp 42 | engine.hpp 43 | /home/adam/CLionProjects/nibbles/src/engine.hpp 44 | 45 | /home/adam/CLionProjects/nibbles/src/engine.cpp 46 | engine.hpp 47 | /home/adam/CLionProjects/nibbles/src/engine.hpp 48 | 49 | /home/adam/CLionProjects/nibbles/src/input.cpp 50 | engine.hpp 51 | /home/adam/CLionProjects/nibbles/src/engine.hpp 52 | 53 | /home/adam/CLionProjects/nibbles/src/main.cpp 54 | engine.hpp 55 | /home/adam/CLionProjects/nibbles/src/engine.hpp 56 | 57 | /home/adam/CLionProjects/nibbles/src/snakesection.cpp 58 | snakesection.hpp 59 | /home/adam/CLionProjects/nibbles/src/snakesection.hpp 60 | 61 | /home/adam/CLionProjects/nibbles/src/update.cpp 62 | engine.hpp 63 | /home/adam/CLionProjects/nibbles/src/engine.hpp 64 | 65 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/adam/CLionProjects/nibbles/src/apple.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/apple.cpp.o" 8 | "/home/adam/CLionProjects/nibbles/src/draw.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/draw.cpp.o" 9 | "/home/adam/CLionProjects/nibbles/src/engine.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/engine.cpp.o" 10 | "/home/adam/CLionProjects/nibbles/src/input.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/input.cpp.o" 11 | "/home/adam/CLionProjects/nibbles/src/main.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/main.cpp.o" 12 | "/home/adam/CLionProjects/nibbles/src/snakesection.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/snakesection.cpp.o" 13 | "/home/adam/CLionProjects/nibbles/src/update.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/update.cpp.o" 14 | "/home/adam/CLionProjects/nibbles/src/wall.cpp" "/home/adam/CLionProjects/nibbles/cmake-build-debug/CMakeFiles/nibbles.dir/src/wall.cpp.o" 15 | ) 16 | set(CMAKE_CXX_COMPILER_ID "GNU") 17 | 18 | # The include file search paths: 19 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 20 | "../headers" 21 | "../c:/SFML/include" 22 | ) 23 | 24 | # Targets to which this target links. 25 | set(CMAKE_TARGET_LINKED_INFO_FILES 26 | ) 27 | 28 | # Fortran module output directory. 29 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 30 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/nibbles.dir/src/apple.cpp.o" 3 | "CMakeFiles/nibbles.dir/src/draw.cpp.o" 4 | "CMakeFiles/nibbles.dir/src/engine.cpp.o" 5 | "CMakeFiles/nibbles.dir/src/input.cpp.o" 6 | "CMakeFiles/nibbles.dir/src/main.cpp.o" 7 | "CMakeFiles/nibbles.dir/src/snakesection.cpp.o" 8 | "CMakeFiles/nibbles.dir/src/update.cpp.o" 9 | "CMakeFiles/nibbles.dir/src/wall.cpp.o" 10 | "nibbles" 11 | "nibbles.pdb" 12 | ) 13 | 14 | # Per-language clean rules from dependency scanning. 15 | foreach(lang CXX) 16 | include(CMakeFiles/nibbles.dir/cmake_clean_${lang}.cmake OPTIONAL) 17 | endforeach() 18 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles.dir/src/apple.cpp.o 5 | ../headers/apple.hpp 6 | /home/adam/CLionProjects/nibbles/src/apple.cpp 7 | CMakeFiles/nibbles.dir/src/draw.cpp.o 8 | ../headers/apple.hpp 9 | ../headers/engine.hpp 10 | ../headers/snakesection.hpp 11 | ../headers/wall.hpp 12 | /home/adam/CLionProjects/nibbles/src/draw.cpp 13 | CMakeFiles/nibbles.dir/src/engine.cpp.o 14 | ../headers/apple.hpp 15 | ../headers/engine.hpp 16 | ../headers/snakesection.hpp 17 | ../headers/wall.hpp 18 | /home/adam/CLionProjects/nibbles/src/engine.cpp 19 | CMakeFiles/nibbles.dir/src/input.cpp.o 20 | ../headers/apple.hpp 21 | ../headers/engine.hpp 22 | ../headers/snakesection.hpp 23 | ../headers/wall.hpp 24 | /home/adam/CLionProjects/nibbles/src/input.cpp 25 | CMakeFiles/nibbles.dir/src/main.cpp.o 26 | ../headers/apple.hpp 27 | ../headers/engine.hpp 28 | ../headers/snakesection.hpp 29 | ../headers/wall.hpp 30 | /home/adam/CLionProjects/nibbles/src/main.cpp 31 | CMakeFiles/nibbles.dir/src/snakesection.cpp.o 32 | ../headers/snakesection.hpp 33 | /home/adam/CLionProjects/nibbles/src/snakesection.cpp 34 | CMakeFiles/nibbles.dir/src/update.cpp.o 35 | ../headers/apple.hpp 36 | ../headers/engine.hpp 37 | ../headers/snakesection.hpp 38 | ../headers/wall.hpp 39 | /home/adam/CLionProjects/nibbles/src/update.cpp 40 | CMakeFiles/nibbles.dir/src/wall.cpp.o 41 | ../headers/wall.hpp 42 | /home/adam/CLionProjects/nibbles/src/wall.cpp 43 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | CMakeFiles/nibbles.dir/src/apple.cpp.o: ../headers/apple.hpp 5 | CMakeFiles/nibbles.dir/src/apple.cpp.o: ../src/apple.cpp 6 | 7 | CMakeFiles/nibbles.dir/src/draw.cpp.o: ../headers/apple.hpp 8 | CMakeFiles/nibbles.dir/src/draw.cpp.o: ../headers/engine.hpp 9 | CMakeFiles/nibbles.dir/src/draw.cpp.o: ../headers/snakesection.hpp 10 | CMakeFiles/nibbles.dir/src/draw.cpp.o: ../headers/wall.hpp 11 | CMakeFiles/nibbles.dir/src/draw.cpp.o: ../src/draw.cpp 12 | 13 | CMakeFiles/nibbles.dir/src/engine.cpp.o: ../headers/apple.hpp 14 | CMakeFiles/nibbles.dir/src/engine.cpp.o: ../headers/engine.hpp 15 | CMakeFiles/nibbles.dir/src/engine.cpp.o: ../headers/snakesection.hpp 16 | CMakeFiles/nibbles.dir/src/engine.cpp.o: ../headers/wall.hpp 17 | CMakeFiles/nibbles.dir/src/engine.cpp.o: ../src/engine.cpp 18 | 19 | CMakeFiles/nibbles.dir/src/input.cpp.o: ../headers/apple.hpp 20 | CMakeFiles/nibbles.dir/src/input.cpp.o: ../headers/engine.hpp 21 | CMakeFiles/nibbles.dir/src/input.cpp.o: ../headers/snakesection.hpp 22 | CMakeFiles/nibbles.dir/src/input.cpp.o: ../headers/wall.hpp 23 | CMakeFiles/nibbles.dir/src/input.cpp.o: ../src/input.cpp 24 | 25 | CMakeFiles/nibbles.dir/src/main.cpp.o: ../headers/apple.hpp 26 | CMakeFiles/nibbles.dir/src/main.cpp.o: ../headers/engine.hpp 27 | CMakeFiles/nibbles.dir/src/main.cpp.o: ../headers/snakesection.hpp 28 | CMakeFiles/nibbles.dir/src/main.cpp.o: ../headers/wall.hpp 29 | CMakeFiles/nibbles.dir/src/main.cpp.o: ../src/main.cpp 30 | 31 | CMakeFiles/nibbles.dir/src/snakesection.cpp.o: ../headers/snakesection.hpp 32 | CMakeFiles/nibbles.dir/src/snakesection.cpp.o: ../src/snakesection.cpp 33 | 34 | CMakeFiles/nibbles.dir/src/update.cpp.o: ../headers/apple.hpp 35 | CMakeFiles/nibbles.dir/src/update.cpp.o: ../headers/engine.hpp 36 | CMakeFiles/nibbles.dir/src/update.cpp.o: ../headers/snakesection.hpp 37 | CMakeFiles/nibbles.dir/src/update.cpp.o: ../headers/wall.hpp 38 | CMakeFiles/nibbles.dir/src/update.cpp.o: ../src/update.cpp 39 | 40 | CMakeFiles/nibbles.dir/src/wall.cpp.o: ../headers/wall.hpp 41 | CMakeFiles/nibbles.dir/src/wall.cpp.o: ../src/wall.cpp 42 | 43 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.17 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -g -std=gnu++2a 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/home/adam/CLionProjects/nibbles/headers -I/home/adam/CLionProjects/nibbles/c:/SFML/include 10 | 11 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -g CMakeFiles/nibbles.dir/src/main.cpp.o CMakeFiles/nibbles.dir/src/engine.cpp.o CMakeFiles/nibbles.dir/src/draw.cpp.o CMakeFiles/nibbles.dir/src/input.cpp.o CMakeFiles/nibbles.dir/src/snakesection.cpp.o CMakeFiles/nibbles.dir/src/update.cpp.o CMakeFiles/nibbles.dir/src/apple.cpp.o CMakeFiles/nibbles.dir/src/wall.cpp.o -o nibbles /usr/lib/libsfml-system.so /usr/lib/libsfml-window.so /usr/lib/libsfml-graphics.so 2 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | CMAKE_PROGRESS_6 = 6 7 | CMAKE_PROGRESS_7 = 7 8 | CMAKE_PROGRESS_8 = 8 9 | CMAKE_PROGRESS_9 = 9 10 | 11 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/apple.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/apple.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/draw.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/draw.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/engine.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/engine.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/input.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/input.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/main.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/snakesection.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/snakesection.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/update.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/update.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/wall.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/CMakeFiles/nibbles.dir/src/wall.cpp.o -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/assets/fonts/slant_regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/assets/fonts/slant_regular.ttf -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/assets/levels/level1.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | xR x 3 | x tttth x 4 | x t x 5 | x t x 6 | x x 7 | x x 8 | x x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/assets/levels/level2.txt: -------------------------------------------------------------------------------- 1 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 | xD x 3 | x ttttttttt x 4 | x t t x 5 | x h t x 6 | x t x 7 | x t x 8 | x t x 9 | x x 10 | x x 11 | x x 12 | x x 13 | x x 14 | x xxxxxxxxxxx x 15 | x x 16 | x x 17 | x x 18 | x x 19 | x x 20 | x x 21 | x x 22 | x x 23 | x x 24 | x x 25 | x x 26 | x x 27 | x x 28 | x x 29 | x x 30 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/assets/levels/levels.txt: -------------------------------------------------------------------------------- 1 | level1.txt 2 | level2.txt -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/adam/CLionProjects/nibbles 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "0") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(CMAKE_INSTALL_COMPONENT) 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 42 | else() 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 44 | endif() 45 | 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") 48 | file(WRITE "/home/adam/CLionProjects/nibbles/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 50 | -------------------------------------------------------------------------------- /nibbles-Homework/cmake-build-debug/nibbles: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CaffeinatedTech/nibbles/bef1e38ac7d995ae2b8a45e2088865025ebe0df0/nibbles-Homework/cmake-build-debug/nibbles -------------------------------------------------------------------------------- /nibbles-Homework/headers/apple.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_APPLE_HPP 2 | #define NIBBLES_APPLE_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Apple { 9 | private: 10 | RectangleShape sprite; 11 | 12 | public: 13 | Apple(); 14 | 15 | void setPosition(Vector2f newPosition); 16 | RectangleShape getSprite(); 17 | }; 18 | 19 | 20 | #endif //NIBBLES_APPLE_HPP 21 | -------------------------------------------------------------------------------- /nibbles-Homework/headers/engine.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_ENGINE_HPP 2 | #define NIBBLES_ENGINE_HPP 3 | 4 | #include "snakesection.hpp" 5 | #include "apple.hpp" 6 | #include "wall.hpp" 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | using namespace sf; 15 | using namespace std; 16 | 17 | class Engine { 18 | private: 19 | // Window 20 | Vector2f resolution; 21 | RenderWindow window; 22 | const unsigned int FPS = 60; 23 | 24 | vector snake; 25 | 26 | int snakeDirection; 27 | deque directionQueue; // queue for direction key presses 28 | int speed; 29 | int sectionsToAdd; // how many sections to add to the snake 30 | int applesEatenThisLevel; 31 | int applesEatenTotal; 32 | const unsigned int applesForNextLevel = 3; 33 | unsigned long long int score; 34 | 35 | Apple apple; 36 | 37 | vector wallSections; 38 | int currentLevel; 39 | int maxLevels; 40 | vector levels; 41 | 42 | Font mainFont; 43 | Text titleText; 44 | Text applesEatenText; 45 | Text currentLevelText; 46 | Text scoreText; 47 | Text gameOverText; 48 | Text pressEnterText; 49 | 50 | Time timeSinceLastMove; 51 | 52 | int currentGameState; 53 | int lastGameState; // For storing the last state the game was in when pausing. 54 | 55 | public: 56 | enum Direction { UP, RIGHT, DOWN, LEFT }; 57 | enum GameState { RUNNING, PAUSED, GAMEOVER }; 58 | Engine(); 59 | 60 | void input(); 61 | void addDirection(int newDirection); 62 | void update(); 63 | void draw(); 64 | 65 | static void setupText(Text *textItem, const Font &font, const String &value, int size, Color colour); 66 | 67 | void newSnake(); 68 | void addSnakeSection(); 69 | 70 | void moveApple(); 71 | void checkLevelFiles(); 72 | void loadLevel(int levelNumber); 73 | 74 | void beginNextLevel(); 75 | void startTheGame(); 76 | 77 | void togglePause(); 78 | 79 | // The main loop will be in the run function 80 | void run(); 81 | 82 | }; 83 | 84 | 85 | #endif //NIBBLES_ENGINE_HPP 86 | -------------------------------------------------------------------------------- /nibbles-Homework/headers/snakesection.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_SNAKESECTION_HPP 2 | #define NIBBLES_SNAKESECTION_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class SnakeSection { 9 | private: 10 | RectangleShape section; 11 | 12 | public: 13 | explicit SnakeSection(Vector2f startPosition); 14 | 15 | void setPosition(Vector2f newPosition); 16 | 17 | RectangleShape getShape(); 18 | 19 | }; 20 | 21 | 22 | #endif //NIBBLES_SNAKESECTION_HPP 23 | -------------------------------------------------------------------------------- /nibbles-Homework/headers/wall.hpp: -------------------------------------------------------------------------------- 1 | #ifndef NIBBLES_WALL_HPP 2 | #define NIBBLES_WALL_HPP 3 | 4 | #include 5 | 6 | using namespace sf; 7 | 8 | class Wall { 9 | private: 10 | RectangleShape wallShape; 11 | 12 | public: 13 | Wall(Vector2f position, Vector2f size); 14 | 15 | RectangleShape getShape(); 16 | }; 17 | 18 | 19 | #endif //NIBBLES_WALL_HPP 20 | -------------------------------------------------------------------------------- /nibbles-Homework/src/apple.cpp: -------------------------------------------------------------------------------- 1 | #include "apple.hpp" 2 | 3 | Apple::Apple() { 4 | Vector2f startingPosition(400, 300); 5 | sprite.setSize(Vector2f(20, 20)); 6 | sprite.setFillColor(Color::Red); 7 | sprite.setPosition(startingPosition); 8 | } 9 | 10 | void Apple::setPosition(Vector2f newPosition) { 11 | sprite.setPosition(newPosition); 12 | } 13 | 14 | RectangleShape Apple::getSprite() { 15 | return sprite; 16 | } 17 | -------------------------------------------------------------------------------- /nibbles-Homework/src/draw.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::draw() { 4 | window.clear(Color::Black); 5 | 6 | // Draw walls 7 | for (auto & w : wallSections) { 8 | window.draw(w.getShape()); 9 | } 10 | 11 | // Draw Apple 12 | window.draw(apple.getSprite()); 13 | 14 | // Draw snake sections 15 | for (auto & s : snake) { 16 | window.draw(s.getShape()); 17 | } 18 | 19 | // Draw Text 20 | window.draw(titleText); 21 | window.draw(currentLevelText); 22 | window.draw(applesEatenText); 23 | window.draw(scoreText); 24 | 25 | // Draw GameOver 26 | if (currentGameState == GameState::GAMEOVER) { 27 | window.draw(gameOverText); 28 | window.draw(pressEnterText); 29 | } 30 | 31 | window.display(); 32 | } 33 | -------------------------------------------------------------------------------- /nibbles-Homework/src/input.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | void Engine::input() { 4 | Event event{}; 5 | 6 | while (window.pollEvent(event)) { 7 | // Window closed 8 | if (event.type == Event::Closed) { 9 | window.close(); 10 | } 11 | 12 | // Handle Keyboard Input 13 | if (event.type == Event::KeyPressed) { 14 | // Quit 15 | if (event.key.code == Keyboard::Escape) { 16 | window.close(); 17 | } 18 | 19 | // Pause 20 | if (event.key.code == Keyboard::Pause) { 21 | togglePause(); 22 | } 23 | 24 | // New Game 25 | if (currentGameState == GameState::GAMEOVER) { 26 | if (event.key.code == Keyboard::Enter) { 27 | startTheGame(); 28 | } 29 | } 30 | 31 | // CHEAT KEYS 32 | // Add Snake Section 33 | if (event.key.code == Keyboard::Space) { 34 | sectionsToAdd += 4; 35 | } 36 | // Move Apple 37 | if (event.key.code == Keyboard::M) { 38 | moveApple(); 39 | } 40 | // Load Next Level 41 | if (event.key.code == Keyboard::L) { 42 | beginNextLevel(); 43 | } 44 | 45 | // Direction 46 | if (event.key.code == Keyboard::Up) { 47 | addDirection(Direction::UP); 48 | } 49 | else if (event.key.code == Keyboard::Down) { 50 | addDirection(Direction::DOWN); 51 | } 52 | else if (event.key.code == Keyboard::Left) { 53 | addDirection(Direction::LEFT); 54 | } 55 | else if (event.key.code == Keyboard::Right) { 56 | addDirection(Direction::RIGHT); 57 | } 58 | 59 | } 60 | } 61 | } 62 | 63 | void Engine::addDirection(int newDirection) { 64 | if (directionQueue.empty()) { 65 | directionQueue.emplace_back(newDirection); 66 | } 67 | else { 68 | if (directionQueue.back() != newDirection) { 69 | directionQueue.emplace_back(newDirection); 70 | } 71 | } 72 | } 73 | 74 | -------------------------------------------------------------------------------- /nibbles-Homework/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "engine.hpp" 2 | 3 | int main() { 4 | Engine engine; 5 | engine.run(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /nibbles-Homework/src/snakesection.cpp: -------------------------------------------------------------------------------- 1 | #include "snakesection.hpp" 2 | 3 | SnakeSection::SnakeSection(Vector2f startPosition) { 4 | section.setSize(Vector2f(20, 20)); 5 | section.setFillColor(Color::Green); 6 | section.setPosition(startPosition); 7 | } 8 | 9 | void SnakeSection::setPosition(Vector2f newPosition) { 10 | section.setPosition(newPosition); 11 | } 12 | 13 | RectangleShape SnakeSection::getShape() { 14 | return section; 15 | } 16 | -------------------------------------------------------------------------------- /nibbles-Homework/src/wall.cpp: -------------------------------------------------------------------------------- 1 | #include "wall.hpp" 2 | 3 | Wall::Wall(Vector2f position, Vector2f size) { 4 | wallShape.setSize(size); 5 | wallShape.setFillColor(Color::White); 6 | wallShape.setPosition(position); 7 | } 8 | 9 | RectangleShape Wall::getShape() { 10 | return wallShape; 11 | } --------------------------------------------------------------------------------