Skip to content

Commit

Permalink
refactor: upgrade to Godot 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Jul 23, 2023
1 parent 8e90a03 commit 9877059
Show file tree
Hide file tree
Showing 246 changed files with 3,409 additions and 6,033 deletions.
3 changes: 0 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

AccessModifierOffset: -1
AlignAfterOpenBracket: AlwaysBreak
Expand Down
3 changes: 0 additions & 3 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

[codespell]
skip = assets/**,addons/**
Expand Down
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf
Expand Down
20 changes: 13 additions & 7 deletions .github/actions/export-game/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: Export Godot game
description: Export Godot game.
inputs:
Expand Down Expand Up @@ -31,12 +27,22 @@ runs:
- name: Setup Godot Templates
shell: bash
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${{ inputs.godot_version }}.stable ~/.local/share/godot/templates/${{ inputs.godot_version }}.stable
mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/export_templates/${{ inputs.godot_version }}.stable ~/.local/share/godot/export_templates/${{ inputs.godot_version }}.stable
- name: Install Addons
shell: bash
run: |
[ -f plug.gd ] && godot --headless -s plug.gd install || true
- name: Import Assets
shell: bash
run: |
godot --editor --quit --headless
- name: Build ${{ inputs.preset }}
shell: bash
run: |
[ -d build ] && rm -r build
mkdir -v -p build/${{ matrix.platform }}
godot --export "${{ inputs.preset }}" --headless ./build/${{ matrix.platform }}/${{ inputs.output }}
godot --export-release "${{ inputs.preset }}" --headless ./build/${{ matrix.platform }}/${{ inputs.output }}
3 changes: 0 additions & 3 deletions .github/actions/upload-artifact/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: Upload artifact
description: Upload artifact.
Expand Down
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

version: 2
updates:
Expand Down
24 changes: 24 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"regexManagers": [
{
"fileMatch": ["^plug\\.gd$"],
"matchStrings": [
"\\s+plug\\(\"(?<gitUrl>.*?)\",\\ \\{\\s*\"commit\":\\ \"(?<currentValue>)(?<currentDigest>.*?)\""
],
"depNameTemplate": "{{{gitUrl}}}",
"packageNameTemplate": "https://github.com/{{{gitUrl}}}",
"versioningTemplate": "git",
"datasourceTemplate": "git-refs"
},
{
"fileMatch": ["^plug\\.gd$"],
"matchStrings": [
"\\s+plug\\(\"(?<gitUrl>.*?)\",\\ \\{\\s*\"tag\":\\ \"(?<currentValue>)(?<currentDigest>.*?)\""
],
"depNameTemplate": "{{{gitUrl}}}",
"packageNameTemplate": "https://github.com/{{{gitUrl}}}",
"versioningTemplate": "git",
"datasourceTemplate": "git-tags"
}
]
}
3 changes: 0 additions & 3 deletions .github/workflows/flatpak-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: Flatpack Build

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: Pre-commit

Expand All @@ -18,6 +15,6 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
- name: Install GDScript Toolkit
run: pip3 install 'gdtoolkit==3.*'
run: pip3 install 'gdtoolkit==4.*'
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
9 changes: 3 additions & 6 deletions .github/workflows/release-packaging.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: Release Packaging

Expand All @@ -10,14 +7,14 @@ on:
workflow_dispatch:

env:
version: 0.1.0
godot_version: 3.5
version: 1.4.0
godot_version: 4.1.1

jobs:
release-packaging:
runs-on: ubuntu-20.04
container:
image: barichello/godot-ci:3.5
image: barichello/godot-ci:4.1.1

strategy:
fail-fast: false
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/reuse.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: REUSE Compliance Check

on:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/snapcraft-build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

name: "Snapcraft build"

Expand Down
21 changes: 8 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

# Godot-specific ignores
.godot/
.import/
export.cfg
gfxrecon_capture_*

# Imported translations (automatically generated from CSV files)
*.translation
Expand All @@ -13,12 +10,10 @@ export.cfg
.mono/
data_*/

# Flatpack-specific ignors
.flatpak-builder/

# Snap-specific ignores
build-dir/
*.snap
# gd-plug
.plugged/
addons/*
!addons/gd-plug/

.vscode/
build/
# Python-specific ignores
venv/
50 changes: 42 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
#
# SPDX-License-Identifier: MIT

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: fix-byte-order-marker # Prevents weird UTF-8 encoding edge cases
- id: check-case-conflict # Check if case-insensitive filesystems would bork
Expand All @@ -18,21 +14,55 @@ repos:
- id: mixed-line-ending # Consistent LF or CRLF
- id: trailing-whitespace # No trailing whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.5
hooks:
- id: codespell
- repo: https://github.com/fsfe/reuse-tool
rev: v2.0.0
hooks:
- id: reuse
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
- repo: local
hooks:
- id: lower-case-only
name: lower case only
entry: filenames must be lower-case or lower_case only
language: fail
files: '[^a-z0-9._/-]'
exclude: |
(?x)^(
LICENSES/|
public/|
CONTRIBUTING.md|
CREDITS.md|
LICENSE.md|
README.md
)
- id: check-gdscript
name: check gdscript
entry: gdformat
language: system
files: \.gd$
exclude: ^addons/
exclude: |
(?x)^(
addons/|
plug.gd
)
- id: check-shaders
name: check shaders
entry: clang-format
Expand All @@ -47,4 +77,8 @@ repos:
entry: gdlint
language: system
files: \.gd$
exclude: ^addons/
exclude: |
(?x)^(
addons/|
plug.gd
)
56 changes: 51 additions & 5 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,54 @@ Upstream-Name: Marble
Upstream-Contact: Florian Vazelle <[email protected]>
Source: https://github.com/MechanicalFlower/Marble

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
Files: *
Copyright: 2022-present Florian Vazelle
License: MIT

# Addons

Files: addons/flexible_toon_shader/*
Copyright: 2021 John Wigg
License: MIT
Source: https://github.com/CaptainProton42/FlexibleToonShaderGD

Files: addons/fps_graph_overlay/*
Copyright: 2023 Sander Vanhove
License: MIT
Source: https://github.com/SanderVanhove/godot-fps-graph-overlay

Files: addons/kanban_tasks/*
Copyright: 2022-2023 HolonProduction
License: MIT
Source: https://github.com/HolonProduction/godot_kanban_tasks

Files: addons/lod/*
Copyright: 2020 Hugo Locurcio and contributors
License: MIT
Source: https://github.com/godot-extended-libraries/godot-lod

# Models

Files: assets/blocks/*
Copyright: 2019 Zylann
License: MIT
Source: https://github.com/Zylann/marbles

# Textures

Files: assets/icons/*
Copyright: 2023 Icons8
License: LicenseRef-linksware
Source: https://icons8.com/

Files: assets/marble/*
Copyright: 2017-2023 Lennart Demes
License: CC0-1.0
Source: https://ambientcg.com/view?id=Ground037

# Fonts

Files: assets/fonts/box_pixies.ttf
Copyright: 2020 Heaven Castro
License: CC0-1.0
Source: https://www.fontspace.com/boxpixies-font-f27657
5 changes: 0 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<!--
SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
SPDX-License-Identifier: MIT
-->

# Contributing

Expand Down
13 changes: 13 additions & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Credits

## Addons
- "[addons/flexible_toon_shader/*](https://github.com/CaptainProton42/FlexibleToonShaderGD)" by **John Wigg** licensed under [MIT](https://spdx.org/licenses/MIT.html)
- "[addons/fps_graph_overlay/*](https://github.com/SanderVanhove/godot-fps-graph-overlay)" by **Sander Vanhove** licensed under [MIT](https://spdx.org/licenses/MIT.html)
- "[addons/kanban_tasks/*](https://github.com/HolonProduction/godot_kanban_tasks)" by **HolonProduction** licensed under [MIT](https://spdx.org/licenses/MIT.html)
- "[addons/lod/*](https://github.com/godot-extended-libraries/godot-lod)" by **Hugo Locurcio and contributors** licensed under [MIT](https://spdx.org/licenses/MIT.html)
- "[assets/blocks/*](https://github.com/Zylann/marbles)" by **Zylann** licensed under [MIT](https://spdx.org/licenses/MIT.html)
## Assets
### Textures
- "[assets/icons/*](https://icons8.com/)" by **Icons8** licensed under [LicenseRef-linksware](https://spdx.org/licenses/LicenseRef-linksware.html)
### Fonts
- "[assets/fonts/box_pixies.ttf](https://www.fontspace.com/boxpixies-font-f27657)" by **Heaven Castro** licensed under [CC0-1.0](https://spdx.org/licenses/CC0-1.0.html)
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2022 Florian Vazelle
Copyright © 2022-present Florian Vazelle

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:

Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<!--
SPDX-FileCopyrightText: 2023 Florian Vazelle <[email protected]>
SPDX-License-Identifier: MIT
-->

<div align="center">

# ⚽ Marble

![Godot Badge](https://img.shields.io/badge/godot-3.5-blue?logo=Godot-Engine&logoColor=white) ![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white) ![license](https://img.shields.io/badge/license-MIT-green?logo=open-source-initiative&logoColor=white)
![Godot Badge](https://img.shields.io/badge/godot-4.1-blue?logo=Godot-Engine&logoColor=white) ![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white) ![license](https://img.shields.io/badge/license-MIT-green?logo=open-source-initiative&logoColor=white)

A marble race minigame, made with [Godot Engine](https://godotengine.org/).

Expand Down
Loading

0 comments on commit 9877059

Please sign in to comment.