Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
8d184d1160
|
|||
| 7ddf47a81a | |||
| 7a1db0305d | |||
| 700a2b0c18 | |||
| 398439886b |
@@ -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
|
||||||
|
|||||||
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# TowerDefense
|
||||||
|
|
||||||
|
Unmaintained multiplayer tower defense game prototype
|
||||||
|
(OpenGL + TCP)
|
||||||
|
|
||||||
|
## Screenshots 🖼
|
||||||
|
|
||||||
|
[[screenshots/game.png]]
|
||||||
|
|
||||||
|
## Build ⚙️
|
||||||
|
```
|
||||||
|
xmake
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run 🏃
|
||||||
|
```
|
||||||
|
xmake run
|
||||||
|
```
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
|
||||||
|
|||||||
@@ -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
BIN
screenshots/game.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user