Cleaned slate.
29
.github/workflows/build-poker.yml
vendored
@ -1,29 +0,0 @@
|
||||
name: test
|
||||
on:
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2.3.1
|
||||
|
||||
- name: Setup cmake
|
||||
uses: jwlawson/actions-setup-cmake@v1.9
|
||||
with:
|
||||
cmake-version: '3.13.x'
|
||||
|
||||
- name: Get Libraries
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
sudo apt install xorg-dev libglu1-mesa-dev
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cmake -B build -DTARGET_TYPE=game -DTARGET_GAME=poker
|
||||
cmake --build ./build
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
./build/test/tests
|
29
.github/workflows/test-pr.yml
vendored
@ -1,29 +0,0 @@
|
||||
name: test
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2.3.1
|
||||
|
||||
- name: Setup cmake
|
||||
uses: jwlawson/actions-setup-cmake@v1.9
|
||||
with:
|
||||
cmake-version: '3.13.x'
|
||||
|
||||
- name: Get Libraries
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
sudo apt install xorg-dev libglu1-mesa-dev
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cmake -B build -DTARGET_TYPE=test
|
||||
cmake --build ./build
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
./build/test/tests
|
12
.gitmodules
vendored
@ -1,12 +0,0 @@
|
||||
[submodule "lib/Unity"]
|
||||
path = lib/Unity
|
||||
url = https://github.com/ThrowTheSwitch/Unity.git
|
||||
[submodule "lib/stb"]
|
||||
path = lib/stb
|
||||
url = https://github.com/nothings/stb
|
||||
[submodule "lib/cglm"]
|
||||
path = lib/cglm
|
||||
url = https://github.com/recp/cglm
|
||||
[submodule "lib/glfw"]
|
||||
path = lib/glfw
|
||||
url = https://github.com/glfw/glfw
|
@ -1,86 +0,0 @@
|
||||
# Copyright (c) 2021 Dominic Msters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Set up the base CMake stuff.
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
# Set some global flags
|
||||
add_compile_definitions(
|
||||
_CRT_SECURE_NO_WARNINGS=1
|
||||
ASSET_PREFIX="../assets/"
|
||||
)
|
||||
|
||||
# Do initial set up depending on the build target type.
|
||||
if(TARGET_TYPE STREQUAL test)
|
||||
set(TARGET_NAME test)
|
||||
elseif(TARGET_TYPE STREQUAL game)
|
||||
set(TARGET_NAME ${TARGET_GAME})
|
||||
else()
|
||||
message(FATAL_ERROR "Missing or invalid definition of TARGET_TYPE")
|
||||
endif()
|
||||
|
||||
# Check game has been defined
|
||||
if(NOT DEFINED TARGET_GAME)
|
||||
message(FATAL_ERROR "Missing or invalid definition of TARGET_GAME")
|
||||
endif()
|
||||
|
||||
# Set up the project
|
||||
project(${TARGET_NAME} C)
|
||||
add_executable(${PROJECT_NAME})
|
||||
|
||||
# Variables
|
||||
set(ROOT_DIR "${CMAKE_SOURCE_DIR}")
|
||||
set(BUILD_DIR "${CMAKE_BINARY_DIR}")
|
||||
set(TOOLS_DIR "${ROOT_DIR}/tools")
|
||||
set(ASSETS_SOURCE_DIR "${ROOT_DIR}/assets")
|
||||
set(ASSETS_BUILD_DIR "${BUILD_DIR}/assets")
|
||||
set(TEMP_DIR "${BUILD_DIR}/temp")
|
||||
|
||||
# Add global sources.
|
||||
add_subdirectory(lib)
|
||||
|
||||
# Setup Platform specific libraries
|
||||
set(LIBS_PLATFORM "")
|
||||
if(NOT WIN32)
|
||||
list(APPEND LIBS_PLATFORM m)
|
||||
endif()
|
||||
|
||||
# Include tools
|
||||
add_subdirectory(tools)
|
||||
|
||||
# Include the client or the test tools
|
||||
if(TARGET_TYPE STREQUAL test)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
# Set up shared assets
|
||||
tool_copy(shader_textured
|
||||
${ASSETS_SOURCE_DIR}/shared/shaders/textured.vert shaders/textured.vert
|
||||
${ASSETS_SOURCE_DIR}/shared/shaders/textured.frag shaders/textured.frag
|
||||
)
|
||||
tool_copy(shader_singlerenderlist
|
||||
${ASSETS_SOURCE_DIR}/shared/shaders/singlerenderlist.vert shaders/singlerenderlist.vert
|
||||
${ASSETS_SOURCE_DIR}/shared/shaders/singlerenderlist.frag shaders/singlerenderlist.frag
|
||||
)
|
||||
|
||||
tool_copy(font_opensans
|
||||
${ASSETS_SOURCE_DIR}/shared/fonts/opensans/OpenSans-Regular.ttf fonts/opensans/OpenSans-Regular.ttf
|
||||
${ASSETS_SOURCE_DIR}/shared/fonts/opensans/OpenSans-Bold.ttf fonts/opensans/OpenSans-Bold.ttf
|
||||
)
|
||||
|
||||
tool_texture(texture_test
|
||||
${ASSETS_SOURCE_DIR}/shared/textures/test_texture.png textures/test_texture
|
||||
)
|
||||
|
||||
tool_copy(locale_en
|
||||
${ASSETS_SOURCE_DIR}/locale/language/en-US.csv locale/language/en-US.csv
|
||||
)
|
||||
|
||||
# Add actual game sources
|
||||
add_subdirectory(src)
|
6
IDEA.md
@ -1,6 +0,0 @@
|
||||
- Create a better buffer means for the CSV variables.
|
||||
- Determine what's using all the memory.
|
||||
- Start writing the language, storyboard if I need to.
|
||||
- UI time
|
||||
- AI Poker
|
||||
- Begin considering audio.
|
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Dominic Msters
|
||||
Copyright (c) 2022 Dominic Msters
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 747 B |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 747 B |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 7.0 MiB After Width: | Height: | Size: 7.0 MiB |
Before Width: | Height: | Size: 528 KiB After Width: | Height: | Size: 528 KiB |
Before Width: | Height: | Size: 4.6 MiB After Width: | Height: | Size: 4.6 MiB |
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 34 MiB After Width: | Height: | Size: 34 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 3.4 MiB |
Before Width: | Height: | Size: 273 KiB After Width: | Height: | Size: 273 KiB |
Before Width: | Height: | Size: 18 MiB After Width: | Height: | Size: 18 MiB |
Before Width: | Height: | Size: 3.0 MiB After Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 908 KiB After Width: | Height: | Size: 908 KiB |
Before Width: | Height: | Size: 866 KiB After Width: | Height: | Size: 866 KiB |
Before Width: | Height: | Size: 719 KiB After Width: | Height: | Size: 719 KiB |
Before Width: | Height: | Size: 694 KiB After Width: | Height: | Size: 694 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 746 KiB After Width: | Height: | Size: 746 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 906 KiB After Width: | Height: | Size: 906 KiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 455 KiB After Width: | Height: | Size: 455 KiB |
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 257 KiB |
Before Width: | Height: | Size: 279 KiB After Width: | Height: | Size: 279 KiB |
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |