diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..30a167e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.28.0) +#------------------------------------- +# oltg is a OnLineTerminalGame +# what this project should do +# is build a game that runs in +# the teraminal. +# +# -Note- +# The Server should be built with +# the clinent. +#------------------------------------- + +project(OnLineTerminalGame) + +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +#add_subdirectory(tests) +add_subdirectory(libs) +add_subdirectory(src) diff --git a/README.md b/README.md deleted file mode 100644 index 64eda81..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# OnLineTerminalGame - diff --git a/ReadMe.md b/ReadMe.md new file mode 100644 index 0000000..67162b0 --- /dev/null +++ b/ReadMe.md @@ -0,0 +1,8 @@ +# OnLineTerminalGame +This is a game that can be run in the terminal and would allow you play with your +frends. + +## Game Loop + - The game loop is there are 2 _or more_ '@'. each '@' has its own color and the + gole is to shoot each other. you can only shoot in the cardnal directions. + - When you are the last man standing you win!! diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt new file mode 100644 index 0000000..1c172c2 --- /dev/null +++ b/libs/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(TerRend) diff --git a/libs/TerRend/CMakeLists.txt b/libs/TerRend/CMakeLists.txt new file mode 100644 index 0000000..1d4e377 --- /dev/null +++ b/libs/TerRend/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.28.0) +project(terrend) +add_library(${CMAKE_PROJECT_NAME} SHARED "src/terrend.cpp") diff --git a/libs/TerRend/includes/terrend.h b/libs/TerRend/includes/terrend.h new file mode 100644 index 0000000..e69de29 diff --git a/libs/TerRend/src/terrend.cpp b/libs/TerRend/src/terrend.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..c73f57a --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,4 @@ +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +project(cliant VERSION 0.1) +add_executable( ${CMAKE_PROJECT_NAME} main.cpp) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..7befb21 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,4 @@ +int int main (int argc, char *argv[]) { + + return 0; +}