Skip to content

Commit

Permalink
Merge pull request #1 from felixBtzr/score
Browse files Browse the repository at this point in the history
score implemented
  • Loading branch information
felixBtzr authored May 31, 2024
2 parents 8b36b91 + 69e741c commit 14654d6
Show file tree
Hide file tree
Showing 26 changed files with 345 additions and 2,473 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ set(CMAKE_C_STANDARD 99)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})

# Find the SDL2_ttf library
find_package(SDL2_ttf REQUIRED)
include_directories(${SDL2_TTF_INCLUDE_DIRS})

# Include directories
include_directories(include)

Expand All @@ -16,13 +20,10 @@ set(SOURCE_FILES
src/main.c
src/game.c
src/graphics.c
src/input.c
include/game.h
include/graphics.h
include/input.h)
src/input.c)

# Add the executable target
add_executable(PongWithGravity ${SOURCE_FILES})

# Link SDL2 library
target_link_libraries(PongWithGravity ${SDL2_LIBRARIES})
# Link SDL2 and SDL2_ttf libraries
target_link_libraries(PongWithGravity SDL2 SDL2_ttf)
Binary file added assets/fonts/PressStart2P-Regular.ttf
Binary file not shown.
3 changes: 3 additions & 0 deletions build/CMakeCache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ PongWithGravity_SOURCE_DIR:STATIC=/home/felix/gravity-pong
//The directory containing a CMake configuration file for SDL2.
SDL2_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/SDL2

//The directory containing a CMake configuration file for SDL2_ttf.
SDL2_ttf_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/SDL2_ttf


########################
# INTERNAL cache entries
Expand Down
78 changes: 39 additions & 39 deletions build/CMakeFiles/CMakeConfigureLog.yaml

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions build/CMakeFiles/Makefile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,80 @@ set(CMAKE_MAKEFILE_DEPENDS
"CMakeFiles/3.28.3/CMakeSystem.cmake"
"/usr/lib/x86_64-linux-gnu/cmake/SDL2/sdl2-config-version.cmake"
"/usr/lib/x86_64-linux-gnu/cmake/SDL2/sdl2-config.cmake"
"/usr/lib/x86_64-linux-gnu/cmake/SDL2_ttf/sdl2_ttf-config-version.cmake"
"/usr/lib/x86_64-linux-gnu/cmake/SDL2_ttf/sdl2_ttf-config.cmake"
"/usr/share/cmake-3.28/Modules/CMakeCCompiler.cmake.in"
"/usr/share/cmake-3.28/Modules/CMakeCCompilerABI.c"
"/usr/share/cmake-3.28/Modules/CMakeCInformation.cmake"
"/usr/share/cmake-3.28/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake-3.28/Modules/CMakeCompilerIdDetection.cmake"
"/usr/share/cmake-3.28/Modules/CMakeDetermineCCompiler.cmake"
"/usr/share/cmake-3.28/Modules/CMakeDetermineCompileFeatures.cmake"
"/usr/share/cmake-3.28/Modules/CMakeDetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/share/cmake-3.28/Modules/CMakeDetermineCompilerId.cmake"
"/usr/share/cmake-3.28/Modules/CMakeDetermineSystem.cmake"
"/usr/share/cmake-3.28/Modules/CMakeFindBinUtils.cmake"
"/usr/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake"
"/usr/share/cmake-3.28/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake-3.28/Modules/CMakeInitializeConfigs.cmake"
"/usr/share/cmake-3.28/Modules/CMakeLanguageInformation.cmake"
"/usr/share/cmake-3.28/Modules/CMakeParseImplicitIncludeInfo.cmake"
"/usr/share/cmake-3.28/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/share/cmake-3.28/Modules/CMakeParseLibraryArchitecture.cmake"
"/usr/share/cmake-3.28/Modules/CMakeSystem.cmake.in"
"/usr/share/cmake-3.28/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake-3.28/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake"
"/usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake"
"/usr/share/cmake-3.28/Modules/CMakeUnixFindMake.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/ARMClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/CrayClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/GNU-FindBinUtils.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/GNU.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/IBMClang-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/LCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/NVHPC-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/OrangeC-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/TI-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Tasking-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/XLClang-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/usr/share/cmake-3.28/Modules/FeatureSummary.cmake"
"/usr/share/cmake-3.28/Modules/Internal/FeatureTesting.cmake"
"/usr/share/cmake-3.28/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake-3.28/Modules/Platform/Linux-GNU.cmake"
"/usr/share/cmake-3.28/Modules/Platform/Linux-Initialize.cmake"
Expand All @@ -38,6 +101,9 @@ set(CMAKE_MAKEFILE_OUTPUTS

# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.28.3/CMakeSystem.cmake"
"CMakeFiles/3.28.3/CMakeCCompiler.cmake"
"CMakeFiles/3.28.3/CMakeCCompiler.cmake"
"CMakeFiles/CMakeDirectoryInformation.cmake"
)

Expand Down
1 change: 0 additions & 1 deletion build/CMakeFiles/PongWithGravity.dir/build.make
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ PongWithGravity: CMakeFiles/PongWithGravity.dir/src/game.c.o
PongWithGravity: CMakeFiles/PongWithGravity.dir/src/graphics.c.o
PongWithGravity: CMakeFiles/PongWithGravity.dir/src/input.c.o
PongWithGravity: CMakeFiles/PongWithGravity.dir/build.make
PongWithGravity: /usr/lib/x86_64-linux-gnu/libSDL2.so
PongWithGravity: CMakeFiles/PongWithGravity.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --bold --progress-dir=/home/felix/gravity-pong/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Linking C executable PongWithGravity"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/PongWithGravity.dir/link.txt --verbose=$(VERBOSE)
Expand Down
Loading

0 comments on commit 14654d6

Please sign in to comment.