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 44 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
name: Linux arm64 name: Linux arm64
run-name: Build And Test Code run-name: Build And Test
on: [push] on: [push]
@@ -10,26 +10,31 @@ jobs:
- name: Install deps - name: Install deps
run : | run : |
apt update apt update
apt install -y libsdl2-dev libglew-dev apt install -y libsdl2-dev libglew-dev
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Cache Build - name: Prepare XMake
id: cache-build
uses: actions/cache@v4
with:
path: |
'build'
'.xmake'
key: ${{ runner.os }}-td
- name: Prepare Xmake
uses: xmake-io/github-action-setup-xmake@v1 uses: xmake-io/github-action-setup-xmake@v1
with: with:
xmake-version: branch@master xmake-version: latest
actions-cache-folder: '.xmake-cache' 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 - name: XMake config
run: xmake f -p linux -y --root run: xmake f -p linux -y --root
@@ -38,4 +43,4 @@ jobs:
run: xmake --root run: xmake --root
- name: Test - name: Test
run: xmake test --root run: xmake test --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 <cstring>
#include <cassert> #include <cassert>
#include <string> #include <string>
#include <cstdint>
namespace td { namespace td {

View File

@@ -4,6 +4,7 @@
#include <string> #include <string>
#include <iosfwd> #include <iosfwd>
#include <vector> #include <vector>
#include <cstdint>
namespace td { namespace td {
namespace network { 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 <stdio.h>
#include <algorithm>
#include "client/render/Renderer.h" #include "client/render/Renderer.h"
#include "client/render/GL.h" #include "client/render/GL.h"

View File

@@ -1,7 +1,7 @@
add_rules("mode.debug", "mode.release") add_rules("mode.debug", "mode.release")
add_defines("TD_IMPL_OPENGL_LOADER_GLEW") add_defines("TD_IMPL_OPENGL_LOADER_GLEW")
add_requires("libsdl >= 2", "zlib", "glew") add_requires("libsdl2", "zlib", "glew")
set_languages("c++17") set_languages("c++17")
@@ -63,7 +63,7 @@ target("TowerDefenseClient")
add_files("src/ClientMain.cpp", "src/client/**.cpp") add_files("src/ClientMain.cpp", "src/client/**.cpp")
add_includedirs("include") add_includedirs("include")
add_packages("libsdl", "glew", "opengl") add_packages("libsdl2", "glew", "opengl")
-- run windows program with wine on linux -- run windows program with wine on linux
if is_host("linux") and is_os("windows") then if is_host("linux") and is_os("windows") then