Added intro video
This commit is contained in:
@ -59,6 +59,7 @@ set(TETRIS_SOURCES
|
||||
src/audio/Audio.cpp
|
||||
src/gameplay/effects/LineEffect.cpp
|
||||
src/audio/SoundEffect.cpp
|
||||
src/video/VideoPlayer.cpp
|
||||
src/ui/MenuLayout.cpp
|
||||
src/ui/BottomMenu.cpp
|
||||
src/app/BackgroundManager.cpp
|
||||
@ -68,6 +69,7 @@ set(TETRIS_SOURCES
|
||||
src/states/LoadingManager.cpp
|
||||
# State implementations (new)
|
||||
src/states/LoadingState.cpp
|
||||
src/states/VideoState.cpp
|
||||
src/states/MenuState.cpp
|
||||
src/states/OptionsState.cpp
|
||||
src/states/LevelSelectorState.cpp
|
||||
@ -164,6 +166,13 @@ endif()
|
||||
|
||||
target_link_libraries(spacetris PRIVATE SDL3::SDL3 SDL3_ttf::SDL3_ttf SDL3_image::SDL3_image cpr::cpr nlohmann_json::nlohmann_json unofficial::enet::enet)
|
||||
|
||||
find_package(FFMPEG REQUIRED)
|
||||
if(FFMPEG_FOUND)
|
||||
target_include_directories(spacetris PRIVATE ${FFMPEG_INCLUDE_DIRS})
|
||||
target_link_directories(spacetris PRIVATE ${FFMPEG_LIBRARY_DIRS})
|
||||
target_link_libraries(spacetris PRIVATE ${FFMPEG_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(spacetris PRIVATE mfplat mfreadwrite mfuuid ws2_32 winmm)
|
||||
endif()
|
||||
@ -196,6 +205,7 @@ endif()
|
||||
target_include_directories(spacetris PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/audio
|
||||
${CMAKE_SOURCE_DIR}/src/video
|
||||
${CMAKE_SOURCE_DIR}/src/gameplay
|
||||
${CMAKE_SOURCE_DIR}/src/graphics
|
||||
${CMAKE_SOURCE_DIR}/src/persistence
|
||||
|
||||
Reference in New Issue
Block a user