Skip to content

Commit

Permalink
Add PONG example
Browse files Browse the repository at this point in the history
  • Loading branch information
a-n-t-h-o-n-y committed Feb 14, 2024
1 parent e2420eb commit ffa5e67
Show file tree
Hide file tree
Showing 10 changed files with 1,046 additions and 181 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ if (NOT TARGET Catch2)
add_subdirectory(external/Catch2)
endif()

add_subdirectory(examples)
add_subdirectory(tests)
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,20 @@ presentation and behavior.

- [ICU Library](https://icu.unicode.org/): For Unicode support.

## Build Instructions

git clone https://github.com/a-n-t-h-o-n-y/Escape.git
git submodule update --init --recursive # Pull in Dependencies
mkdir Escape/build && cd Escape/build
cmake ..
make escape # Build Library
make escape.tests.unit # Build Unit Tests (Optional)
make escape.examples.pong # Build PONG Game (Optional)

## Example Code

- [tools/termcaps.cpp](./tools/termcaps.cpp)
- [examples/pong.cpp](./examples/pong.cpp)
- [tests/glyph.test.cpp](./tests/glyph.test.cpp)

## Planned Enhancements
Expand Down
17 changes: 17 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
add_executable(escape.examples.pong EXCLUDE_FROM_ALL
pong.cpp
)

target_compile_options(
escape.examples.pong
PRIVATE
-Wall
-Wextra
-Wpedantic
)

target_link_libraries(
escape.examples.pong
PRIVATE
escape
)
Loading

0 comments on commit ffa5e67

Please sign in to comment.