Compare commits
22 Commits
master
...
3defa497b6
| Author | SHA1 | Date | |
|---|---|---|---|
| 3defa497b6 | |||
| a241589025 | |||
| 911fe7cc10 | |||
| a6a71cb487 | |||
| 3e8cf5e290 | |||
| c62f114087 | |||
| 237c6d9981 | |||
| ece20e0e1f | |||
| 3eecfa7df1 | |||
| 80bdf130dc | |||
| 4338fd3895 | |||
| 3a334b3227 | |||
| 186ca76345 | |||
| da3439cc03 | |||
| 5a1f71e5c0 | |||
| 93d587d463 | |||
| bad65f89d0 | |||
| 3c04810496 | |||
| ec538c1783 | |||
| 01bd4621b3 | |||
| 2ef4f091f1 | |||
| bc4e1f1f35 |
@@ -5,36 +5,31 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-test
|
||||
steps:
|
||||
- name: Install deps
|
||||
run : |
|
||||
apt update
|
||||
apt install -y libsdl2-dev libglew-dev
|
||||
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare XMake
|
||||
- name: Install opengl
|
||||
run: |
|
||||
apt update
|
||||
apt install libgl1-mesa-dev -y
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.xmake
|
||||
./build
|
||||
./.xmake
|
||||
key: 'ubuntu'
|
||||
|
||||
- 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
|
||||
|
||||
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