This commit is contained in:
2025-01-20 20:08:42 +00:00
parent feea16ef0c
commit 851c5e2aed
9 changed files with 40 additions and 2 deletions

20
CMakeLists.txt Normal file
View File

@@ -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)

View File

@@ -1,2 +0,0 @@
# OnLineTerminalGame

8
ReadMe.md Normal file
View File

@@ -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!!

1
libs/CMakeLists.txt Normal file
View File

@@ -0,0 +1 @@
add_subdirectory(TerRend)

View File

@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.28.0)
project(terrend)
add_library(${CMAKE_PROJECT_NAME} SHARED "src/terrend.cpp")

View File

View File

4
src/CMakeLists.txt Normal file
View File

@@ -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)

4
src/main.cpp Normal file
View File

@@ -0,0 +1,4 @@
int int main (int argc, char *argv[]) {
return 0;
}