5 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
8 changed files with 42 additions and 28 deletions

View File

@@ -15,12 +15,26 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Prepare Xmake - name: Prepare XMake
uses: xmake-io/github-action-setup-xmake@v1 uses: xmake-io/github-action-setup-xmake@v1
with: with:
xmake-version: latest 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

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2024 Simon Pribylski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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