Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0efbd480ac |
@@ -10,31 +10,17 @@ jobs:
|
||||
- name: Install deps
|
||||
run : |
|
||||
apt update
|
||||
apt install -y libsdl2-dev libglew-dev
|
||||
|
||||
apt install -y libsdl2-dev libglew-dev
|
||||
|
||||
- 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: latest
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
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 }}
|
||||
actions-cache-key: 'ubuntu'
|
||||
|
||||
- name: XMake config
|
||||
run: xmake f -p linux -y --root
|
||||
@@ -43,4 +29,4 @@ jobs:
|
||||
run: xmake --root
|
||||
|
||||
- name: Test
|
||||
run: xmake test --root
|
||||
run: xmake test --root
|
||||
21
LICENSE.txt
Normal file
21
LICENSE.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
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
18
README.md
@@ -1,18 +0,0 @@
|
||||
# TowerDefense
|
||||
|
||||
Unmaintained multiplayer tower defense game prototype
|
||||
(OpenGL + TCP)
|
||||
|
||||
## Screenshots 🖼
|
||||
|
||||
[[screenshots/game.png]]
|
||||
|
||||
## Build ⚙️
|
||||
```
|
||||
xmake
|
||||
```
|
||||
|
||||
## Run 🏃
|
||||
```
|
||||
xmake run
|
||||
```
|
||||
@@ -5,7 +5,6 @@
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
namespace td {
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <string>
|
||||
#include <iosfwd>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
namespace td {
|
||||
namespace network {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 165 KiB |
@@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
#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("libsdl2", "zlib", "glew")
|
||||
add_requires("libsdl >= 2", "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("libsdl2", "glew", "opengl")
|
||||
add_packages("libsdl", "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