File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
games/running-ball-babylonjs/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 88jobs :
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
Original file line number Diff line number Diff line change 11import {
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
You can’t perform that action at this time.
0 commit comments