-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configure cmake * Make it parallel * Update readme
- Loading branch information
Showing
26 changed files
with
55 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
# Project-Wolfenstein | ||
|
||
## Installing dependencies | ||
## Views from the game | ||
|
||
![](images/screenshot1.png) | ||
![](images/screenshot2.png) | ||
![](images/screenshot3.png) | ||
![](images/minimap.png) | ||
|
||
## Install dependencies and build | ||
```batch | ||
bash install_deps.sh | ||
./scripts/install_deps.sh | ||
./scripts/compile.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,6 @@ | ||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${PROJECT_SOURCE_DIR} | ||
${PROJECT_SOURCE_DIR}/include | ||
${SDL2_INCLUDE_DIRS} | ||
) | ||
|
||
link_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${PROJECT_SOURCE_DIR} | ||
${PROJECT_SOURCE_DIR}/include | ||
${SDL2_INCLUDE_DIRS} | ||
) | ||
set(LIBRARIES | ||
${SDL2_LIBRARIES} | ||
SDL2_ttf | ||
SDL2_image | ||
) | ||
|
||
add_executable(${EXECUTABLE} main.cpp) | ||
target_compile_definitions(${EXECUTABLE} PRIVATE DEBUG=1) | ||
target_link_libraries( | ||
${EXECUTABLE} | ||
${LIBRARIES} | ||
game | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* | ||
*/ | ||
|
||
#include <Core/game.h> | ||
#include "Core/game.h" | ||
|
||
int main() { | ||
using namespace wolfenstein; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cmake -S . -B build | ||
cmake --build build | ||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | ||
cmake --build build --config Release --parallel 8 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
link_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
) | ||
|
||
add_library( | ||
animation | ||
STATIC | ||
src/time_based_single_animation.cpp | ||
src/walk_animation.cpp | ||
) | ||
|
||
target_include_directories(animation PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
link_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
) | ||
|
||
add_library( | ||
collision_manager | ||
STATIC | ||
src/collision_manager.cpp | ||
) | ||
|
||
target_include_directories(collision_manager PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
) | ||
|
||
target_link_libraries( | ||
collision_manager | ||
PUBLIC | ||
map | ||
vector | ||
game_object | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
link_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${PROJECT_SOURCE_DIR} | ||
) | ||
|
||
add_library( | ||
game_object | ||
STATIC | ||
src/static_object.cpp | ||
src/dynamic_object.cpp | ||
) | ||
|
||
target_include_directories(game_object PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${PROJECT_SOURCE_DIR} | ||
) | ||
|
||
target_link_libraries( | ||
game_object | ||
PUBLIC | ||
vector | ||
character | ||
uuid_generator | ||
animation | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.