6 Commits

Author SHA1 Message Date
8d184d1160 update xmake.lua
All checks were successful
Linux arm64 / Build (push) Successful in 3m7s
2025-08-29 10:37:54 +02:00
7ddf47a81a Update README.md
All checks were successful
Linux arm64 / Build (push) Successful in 1m18s
2025-03-23 11:47:36 +00:00
7a1db0305d fix build
All checks were successful
Linux arm64 / Build (push) Successful in 1m27s
2025-03-19 19:04:38 +01:00
700a2b0c18 add readme
Some checks failed
Linux arm64 / Build (push) Failing after 1m31s
2025-03-19 18:52:56 +01:00
398439886b Update .gitea/workflows/linux.yaml
All checks were successful
Linux arm64 / Build (push) Successful in 13m32s
2024-05-27 22:33:24 +02:00
7c4ed3910f action: xmake latest
All checks were successful
Linux arm64 / Build (push) Successful in 1m4s
2024-02-24 13:06:56 +01:00
7 changed files with 43 additions and 8 deletions

View File

@@ -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
View File

@@ -0,0 +1,18 @@
# TowerDefense
Unmaintained multiplayer tower defense game prototype
(OpenGL + TCP)
## Screenshots 🖼
[[screenshots/game.png]]
## Build ⚙️
```
xmake
```
## Run 🏃
```
xmake run
```

View File

@@ -5,6 +5,7 @@
#include <cstring>
#include <cassert>
#include <string>
#include <cstdint>
namespace td {

View File

@@ -4,6 +4,7 @@
#include <string>
#include <iosfwd>
#include <vector>
#include <cstdint>
namespace td {
namespace network {

BIN
screenshots/game.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View File

@@ -6,6 +6,7 @@
*/
#include <stdio.h>
#include <algorithm>
#include "client/render/Renderer.h"
#include "client/render/GL.h"

View File

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