Compare commits
2 Commits
a60d309a66
...
cc6a1a4c6a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc6a1a4c6a | ||
|
|
0338188e94 |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
8
.github/workflows/coverage.yaml
vendored
@@ -56,6 +56,14 @@ jobs:
|
|||||||
just coverage
|
just coverage
|
||||||
working-directory: pacman
|
working-directory: pacman
|
||||||
|
|
||||||
|
- name: Check Coveralls Token
|
||||||
|
run: |
|
||||||
|
if [ -z "${{ secrets.COVERALLS_REPO_TOKEN }}" ]; then
|
||||||
|
echo "::warning::COVERALLS_REPO_TOKEN not available - coverage upload skipped (common for Dependabot PRs)"
|
||||||
|
else
|
||||||
|
echo "COVERALLS_REPO_TOKEN is available - will upload coverage"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Coveralls upload
|
- name: Coveralls upload
|
||||||
if: ${{ secrets.COVERALLS_REPO_TOKEN != '' }}
|
if: ${{ secrets.COVERALLS_REPO_TOKEN != '' }}
|
||||||
uses: coverallsapp/github-action@v2
|
uses: coverallsapp/github-action@v2
|
||||||
|
|||||||
9
.github/workflows/deploy.yaml
vendored
@@ -132,8 +132,17 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check Railway Token
|
||||||
|
run: |
|
||||||
|
if [ -z "$RAILWAY_TOKEN" ]; then
|
||||||
|
echo "::warning::RAILWAY_TOKEN not available - deployment skipped (common for Dependabot PRs)"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Generate proxy Dockerfile
|
- name: Generate proxy Dockerfile
|
||||||
|
if: env.RAILWAY_TOKEN != ''
|
||||||
run: echo "FROM ghcr.io/xevion/pac-man@${{ needs.build-and-deploy.outputs.digest }}" > Dockerfile
|
run: echo "FROM ghcr.io/xevion/pac-man@${{ needs.build-and-deploy.outputs.digest }}" > Dockerfile
|
||||||
|
|
||||||
- name: Deploy to Railway
|
- name: Deploy to Railway
|
||||||
|
if: env.RAILWAY_TOKEN != ''
|
||||||
run: railway up --service pac-man
|
run: railway up --service pac-man
|
||||||
|
|||||||
2
Justfile
@@ -52,7 +52,7 @@ push:
|
|||||||
|
|
||||||
# Create a postgres container for the server
|
# Create a postgres container for the server
|
||||||
server-postgres:
|
server-postgres:
|
||||||
bun run .scripts/postgres.ts
|
bun run pacman-server/scripts/postgres.ts
|
||||||
|
|
||||||
# Build the server image
|
# Build the server image
|
||||||
server-image:
|
server-image:
|
||||||
|
|||||||
10
README.md
@@ -2,7 +2,7 @@
|
|||||||
<!-- markdownlint-disable MD041 -->
|
<!-- markdownlint-disable MD041 -->
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="assets/banner.png" alt="Pac-Man Banner Screenshot">
|
<img src=".github/assets/banner.png" alt="Pac-Man Banner Screenshot">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
# Pac-Man
|
# Pac-Man
|
||||||
@@ -49,16 +49,16 @@ However, every commit has build artifacts, so you can grab the [latest build art
|
|||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="assets/screenshots/0.png" alt="Screenshot 0 - Starting Game">
|
<img src=".github/assets/screenshots/0.png" alt="Screenshot 0 - Starting Game">
|
||||||
<p><em>Starting a new game</em></p>
|
<p><em>Starting a new game</em></p>
|
||||||
|
|
||||||
<img src="assets/screenshots/1.png" alt="Screenshot 1 - Eating Dots">
|
<img src=".github/assets/screenshots/1.png" alt="Screenshot 1 - Eating Dots">
|
||||||
<p><em>Pac-Man collecting dots and avoiding ghosts</em></p>
|
<p><em>Pac-Man collecting dots and avoiding ghosts</em></p>
|
||||||
|
|
||||||
<img src="assets/screenshots/2.png" alt="Screenshot 2 - Game Over">
|
<img src=".github/assets/screenshots/2.png" alt="Screenshot 2 - Game Over">
|
||||||
<p><em>Game over screen after losing all lives</em></p>
|
<p><em>Game over screen after losing all lives</em></p>
|
||||||
|
|
||||||
<img src="assets/screenshots/3.png" alt="Screenshot 3 - Debug Mode">
|
<img src=".github/assets/screenshots/3.png" alt="Screenshot 3 - Debug Mode">
|
||||||
<p><em>Debug mode showing hitboxes, node graph, and performance details.</em></p>
|
<p><em>Debug mode showing hitboxes, node graph, and performance details.</em></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||