Skip to content

Commit e9fcfac

Browse files
feat: save; try CI
1 parent 68b41d7 commit e9fcfac

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/game-ball-babylonjs-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./games/running-ball-babylonjs
14+
1115
steps:
1216
- name: Repository Checkout
1317
uses: actions/checkout@v5

games/running-ball-babylonjs/src/Game.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {
22
Engine,
3+
Mesh,
34
Scene,
45
type Camera,
56
Vector3,
67
Color4,
78
PointLight,
89
MeshBuilder,
910
StandardMaterial,
10-
type Mesh,
1111
Texture,
1212
ShadowGenerator,
1313
PhysicsImpostor,
@@ -47,7 +47,7 @@ export class Game {
4747
private readonly platforms: Mesh[];
4848
private readonly walls: Mesh[];
4949
private readonly ball: Mesh;
50-
private coinModel: Mesh;
50+
private coinModel: Mesh = {} as Mesh;
5151
private readonly shadowGenerator: ShadowGenerator;
5252

5353

@@ -76,6 +76,7 @@ export class Game {
7676
//this.walls.forEach(w => w.showBoundingBox = true);
7777

7878
this.loadCoinModel();
79+
void this.coinModel;
7980

8081
this.scene.registerBeforeRender(this.checkSphereBoxCollision.bind(this));
8182

0 commit comments

Comments
 (0)