Added some structuring.
The game runs but only a black window is shown.
This commit is contained in:
parent
f132916a0f
commit
d0893cba3a
16 changed files with 296 additions and 88 deletions
|
@ -8,8 +8,13 @@ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -Wall -Wextra
|
|||
include(FindPkgConfig)
|
||||
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
||||
|
||||
find_package(PNG REQUIRED)
|
||||
|
||||
add_definitions(${PNG_DEFINITIONS})
|
||||
|
||||
include_directories(SYSTEM
|
||||
${SDL2_INCLUDE_DIR}
|
||||
${PNG_INCLUDE_DIRS}
|
||||
)
|
||||
include_directories(
|
||||
src
|
||||
|
@ -30,14 +35,19 @@ add_executable(${PROJECT_NAME}
|
|||
src/texture.cpp
|
||||
src/sdlerror.cpp
|
||||
src/sdlmain.cpp
|
||||
src/game.cpp
|
||||
src/gamebase.cpp
|
||||
src/character.cpp
|
||||
src/placeable.cpp
|
||||
src/physicsfswrapper.cpp
|
||||
src/gameplayscene.cpp
|
||||
src/mover.cpp
|
||||
src/moveroneshot.cpp
|
||||
src/moversine.cpp
|
||||
src/gameplaysceneclassic.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
${SDL2_LIBRARIES}
|
||||
physfs
|
||||
${PNG_LIBRARIES}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue