Compare commits
6 Commits
doc-action
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
8d184d1160
|
|||
| 7ddf47a81a | |||
| 7a1db0305d | |||
| 700a2b0c18 | |||
| 398439886b | |||
| 7c4ed3910f |
@@ -15,12 +15,26 @@ jobs:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare Xmake
|
||||
- name: Prepare XMake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: branch@master
|
||||
xmake-version: latest
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'ubuntu'
|
||||
actions-cache-key: 'xmake-ubuntu'
|
||||
|
||||
- name: Calc deps hash
|
||||
uses: seepine/hash-files@v1
|
||||
id: get-hash
|
||||
with:
|
||||
patterns: |
|
||||
**/xmake.lua
|
||||
**/xmake/*.lua
|
||||
|
||||
- name: Packages cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.xmake
|
||||
key: ${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: XMake config
|
||||
run: xmake f -p linux -y --root
|
||||
|
||||
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# TowerDefense
|
||||
|
||||
Unmaintained multiplayer tower defense game prototype
|
||||
(OpenGL + TCP)
|
||||
|
||||
## Screenshots 🖼
|
||||
|
||||
[[screenshots/game.png]]
|
||||
|
||||
## Build ⚙️
|
||||
```
|
||||
xmake
|
||||
```
|
||||
|
||||
## Run 🏃
|
||||
```
|
||||
xmake run
|
||||
```
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
namespace td {
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <string>
|
||||
#include <iosfwd>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
namespace td {
|
||||
namespace network {
|
||||
|
||||
BIN
screenshots/game.png
Normal file
BIN
screenshots/game.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include "client/render/Renderer.h"
|
||||
#include "client/render/GL.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
add_rules("mode.debug", "mode.release")
|
||||
|
||||
add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
|
||||
add_requires("libsdl >= 2", "zlib", "glew")
|
||||
add_requires("libsdl2", "zlib", "glew")
|
||||
|
||||
set_languages("c++17")
|
||||
|
||||
@@ -63,7 +63,7 @@ target("TowerDefenseClient")
|
||||
add_files("src/ClientMain.cpp", "src/client/**.cpp")
|
||||
add_includedirs("include")
|
||||
|
||||
add_packages("libsdl", "glew", "opengl")
|
||||
add_packages("libsdl2", "glew", "opengl")
|
||||
|
||||
-- run windows program with wine on linux
|
||||
if is_host("linux") and is_os("windows") then
|
||||
|
||||
Reference in New Issue
Block a user