Skip to content

Commit

Permalink
Merge pull request #289 from JernejHabjan/develop
Browse files Browse the repository at this point in the history
#275-sprite-foundation and mobile fixes
  • Loading branch information
JernejHabjan authored Feb 9, 2025
2 parents 75ceef2 + f2f2f93 commit f038522
Show file tree
Hide file tree
Showing 228 changed files with 6,839 additions and 2,031 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main
- develop

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -14,8 +18,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
# with:
# fetch-depth: 0
with:
fetch-depth: 50

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand All @@ -37,9 +41,18 @@ jobs:

- name: Run linter
run: pnpm run lint
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Run tests
run: pnpm run test
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Build Packages
run: pnpm run build-gh-pages
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
17 changes: 15 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ develop ]

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,8 +16,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
# with:
# fetch-depth: 0
with:
fetch-depth: 50

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand All @@ -36,15 +39,25 @@ jobs:

- name: Run linter
run: pnpm run lint
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Run tests
run: pnpm run test
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Build Packages
run: pnpm run build-gh-pages
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ main ]

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,8 +16,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
# with:
# fetch-depth: 0
with:
fetch-depth: 50

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand All @@ -36,12 +39,21 @@ jobs:

- name: Run linter
run: pnpm run lint
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Run tests
run: pnpm run test
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Build Packages
run: pnpm run build-gh-pages
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
1 change: 1 addition & 0 deletions .idea/dictionaries/default_user.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/client/src/app/home/music/music.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
flex-direction: column;
gap: 1rem;
padding: 1rem;
max-width: 800px;
max-width: 80%;
width: 800px;
margin: 0 auto;
overflow: auto;
}

.music-item {
Expand All @@ -33,5 +34,4 @@

.audio-player {
width: 100%;
max-width: 800px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import GameObject = Phaser.GameObjects.GameObject;
import { ActorData, ActorDataKey } from "./actor-data";

export function getActorComponent<T>(actor: GameObject, componentClass: new (...args: any[]) => T): T | undefined {
const component = (actor.getData(ActorDataKey) as ActorData)?.components?.find((c) => c instanceof componentClass);
if (!component) {
return undefined;
}
return component;
const actorData = actor.getData(ActorDataKey) as ActorData;
return actorData?.components.get(componentClass);
}
Loading

0 comments on commit f038522

Please sign in to comment.