Dodano w miare sensowne poruszanie sie tla i muzyke, do zrobienia lepsze tlo

This commit is contained in:
2024-11-20 19:32:35 +01:00
parent a69dc434a9
commit e38bb6e5d0
68 changed files with 6390 additions and 9 deletions

View File

@@ -11,7 +11,12 @@ add_executable(LotoStatek main.cpp
sources/Player.cpp
headers/Player.h
headers/Bullet.h
sources/Bullet.cpp)
sources/Bullet.cpp
headers/Background.h
sources/Background.cpp
headers/AudioManager.h
sources/AudioManager.cpp
)
if(WIN32)
set(SFML_ROOT "${CMAKE_SOURCE_DIR}/SFML")
@@ -20,7 +25,7 @@ if(WIN32)
file(COPY ${BINARY_DEP_DLLS} DESTINATION ${CMAKE_BINARY_DIR})
include_directories("${CMAKE_SOURCE_DIR}/SFML/bin" "${CMAKE_SOURCE_DIR}/SFML/include" "${CMAKE_SOURCE_DIR}/SFML/lib/cmake/SFML") # dodane
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules") # dodane
find_package(SFML 2.5.1 COMPONENTS graphics window system REQUIRED)
find_package(SFML 2.5.1 COMPONENTS graphics window system audio REQUIRED)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(LotoStatek ${SFML_LIBRARIES})