Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: D-Generation-S/Samory
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.0
Choose a base ref
...
head repository: D-Generation-S/Samory
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 328 changed files with 8,818 additions and 1,382 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Pull Request

on:
pull_request:
branches: [ "main", "develop" ]

jobs:
Check-Build:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- name: linux
file: samory
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Build
id: build
uses: manleydev/build-godot-action@master
with:
name: ${{ matrix.platform.file }}
preset: ${{ matrix.platform.name }}
debugMode: "true"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Samory - ${{ matrix.platform.name }}
path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
126 changes: 126 additions & 0 deletions .github/workflows/create-live-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
name: Live build

on:
release:
types: [released]

env:
REF_CHECKOUT_BRANCH: main
RELEASE_ARTIFACT_FOLDER: artifacts
DEBUG: false

jobs:
build-version:
name: Get version for build
runs-on: ubuntu-latest
outputs:
build-version: ${{ steps.build-version.outputs.build-version }}
steps:
- name: Get release version
id: build-version
run: |
# Found at https://github.com/orgs/community/discussions/25713
# Additional env fix found on https://github.com/actions/runner-images/issues/5251
if [ '${{ GITHUB.REF_TYPE }}' == 'branch' ]
then
echo "Is not running on branch (Check failed)"
echo "build-version=0.0.0" >> $GITHUB_OUTPUT
else
echo "Running on branch (Check successful)"
echo "build-version=${{ GITHUB.REF_NAME }}" >> $GITHUB_OUTPUT
fi
build:
name: Build Samory
runs-on: ubuntu-latest
needs: ["build-version"]
strategy:
matrix:
platform:
- name: linux
file: samory
- name: windows
file: samory.exe
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Build
id: build
uses: manleydev/build-godot-action@master
with:
name: ${{ matrix.platform.file }}
preset: ${{ matrix.platform.name }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Samory_${{ needs.build-version.outputs.build-version }}-${{ matrix.platform.name }}
path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
upload-release:
name: Upload Artifacts to GitHub Release
runs-on: ubuntu-latest
needs: ["build", "build-version"]
permissions:
contents: write
strategy:
matrix:
platform:
- name: linux
file: samory
- name: windows
file: samory.exe
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.REF_CHECKOUT_BRANCH }}
lfs: false
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: Samory_${{ needs.build-version.outputs.build-version }}-${{ matrix.platform.name }}
path: ${{ env.RELEASE_ARTIFACT_FOLDER }}
- name: Display artifacts folder content
if: ${{ env.DEBUG == 'true' }}
run: ls -la $RELEASE_ARTIFACT_FOLDER
- name: Zip Build Files
run: |
cd ./$RELEASE_ARTIFACT_FOLDER/
zip -r Samory_${{ needs.build-version.outputs.build-version }}-${{ matrix.platform.name }}.zip ./*
- name: Display artifacts folder content
if: ${{ env.DEBUG == 'true' }}
run: ls -la $RELEASE_ARTIFACT_FOLDER
- name: Upload artifact
if: ${{ env.DEBUG == 'false' }}
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ GITHUB.REF_NAME }} ${{ env.RELEASE_ARTIFACT_FOLDER }}/*.zip
upload-itch:
name: Upload to itch
runs-on: ubuntu-latest
needs: ["upload-release", "build-version"]
strategy:
matrix:
platform:
- name: linux
file: samory
- name: windows
file: samory.exe
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.REF_CHECKOUT_BRANCH }}
lfs: false
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: Samory_${{ needs.build-version.outputs.build-version }}-${{ matrix.platform.name }}
path: ${{ env.RELEASE_ARTIFACT_FOLDER }}/Samory_${{ needs.build-version.outputs.build-version }}-${{ matrix.platform.name }}
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: ${{ matrix.platform.name }}
ITCH_GAME: samory
ITCH_USER: xanatos
VERSION: ${{ github.ref_name }}
PACKAGE: ${{ env.RELEASE_ARTIFACT_FOLDER }}/Samory_${{ needs.build-version.outputs.build-version }}-${{ matrix.platform.name }}/

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@

# custom area
.vscode/
translation_manager_extra_data.ini
1,649 changes: 1,563 additions & 86 deletions Default.tres

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
# Samory

[![Godot Engine](https://img.shields.io/badge/Godot-%23FFFFFF.svg?logo=godot-engine)](#)
[![Linux](https://img.shields.io/badge/Linux-FCC624?logo=linux&logoColor=black)](#)
[![Windows](https://custom-icon-badges.demolab.com/badge/Windows-0078D6?logo=windows11&logoColor=white)](#)

[![Itch.io](https://img.shields.io/badge/itch.io-%23FF0B34.svg?logo=Itch.io&logoColor=white)](https://xanatos.itch.io/samory)

A memory like game which does allow you to side load custom decks. This game was developed as a hobby, mostly for my son.
But feel free to test it out. The game can be played alone vs the AI or you can play against human players in a local coop mode.

The game is shipped with a build in deck, no need to create a custom one.

If you want to give it a try check it out on [Itch.io][itch-io]. You could also download the latest build on GitHub if you wish.

## Build the project

### Requerements

- [Godot 4.3][godot4_3]

### How to build the project

To build the project clone the repository to yout machine. After cloing start Godot and open the `project.godot` file. Use the
import button inside of the Godot project overview to do so.

Now you should be able to run the game by starting the debug.


## Special Thanks

Special Thank to [Kenney][kenney] for making so manny assets free to use. This game does use sound effects and image assets.
Also a big thank to "Abstraction" for making his awesome [music][music] free to use.


[itch-io]: https://xanatos.itch.io/samory
[godot4_3]: https://godotengine.org/download/archive/4.3-stable/https://godotengine.org/download/archive/4.3-stable/
[kenney]: https://www.kenney.nl/
[music]: https://tallbeard.itch.io/music-loop-bundle
19 changes: 0 additions & 19 deletions assets/audio/button-click-1.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-shuffle.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-1.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-2.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-3.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-4.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-5.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-6.ogg.import

This file was deleted.

19 changes: 0 additions & 19 deletions assets/audio/card-slide-7.ogg.import

This file was deleted.

Loading