Skip to content

Commit 4ddf93a

Browse files
committed
- update readme
- update distribution
1 parent 0941afb commit 4ddf93a

File tree

16 files changed

+113
-60
lines changed

16 files changed

+113
-60
lines changed

dist/fox-v1.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/datenight/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<link rel="stylesheet" href="css/main.css">
1717

1818
<!-- your game script(s) -->
19-
<script src="../../dist/main.js"></script>
2019
<script src="js/game.js" type="module"></script>
2120
</head>
2221
<body style="margin: 0; padding: 0;">

examples/datenight/js/objects/platform.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fox from "../../../../src/index.js";
22
import {TimingPlatform} from "../components/timingPlatform.js";
33

44
export class Platform {
5-
constructor({x, y, layer, lightningLayer, type}) {
5+
constructor({x, y, layer, lightingLayer, type}) {
66
this.x = x
77
this.y = y
88

@@ -89,9 +89,9 @@ export class Platform {
8989
y: y-15,
9090
radius: 120,
9191
intensity: 1,
92-
layer: lightningLayer
92+
layer: lightingLayer
9393
})
94-
lightningLayer.addObject({object: this.light})
94+
lightingLayer.addObject({object: this.light})
9595
}
9696
}
9797

examples/datenight/js/objects/player.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fox from "../../../../src/index.js";
22
import {PlayerMovement} from "../components/playerMovement.js";
33

44
export class Player {
5-
constructor({x, y, texture, layer, lightningLayer, scene, movement}) {
5+
constructor({x, y, texture, layer, lightingLayer, scene, movement}) {
66
this.x = x
77
this.y = y
88

@@ -74,12 +74,12 @@ export class Player {
7474
this.light = new fox.GameObjects.Lights.PointLight({
7575
radius: 85,
7676
intensity: 1,
77-
layer: lightningLayer
77+
layer: lightingLayer
7878
})
7979
this.light.followObject({
8080
object : this.player
8181
})
8282

83-
lightningLayer.addObject({name: "light"+texture, object: this.light})
83+
lightingLayer.addObject({name: "light"+texture, object: this.light})
8484
}
8585
}

examples/datenight/js/scenes/level01.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ scene.onInit({
1818
height: 260,
1919
renderer: new fox.Renderers.WebGL(),
2020
})
21-
let lightning = new fox.Layers.Lightning({
21+
let lighting = new fox.Layers.Lighting({
2222
width: 360,
2323
height: 360,
2424
globalLight: 0.5
2525
})
2626

2727
scene.addLayer({layer: layer})
28-
scene.addLayer({layer: lightning})
28+
scene.addLayer({layer: lighting})
2929
scene.addCamera({camera: camera})
3030

3131
// create background
@@ -45,7 +45,7 @@ scene.onInit({
4545
y: 170 - 16,
4646
texture: "Blue",
4747
layer: layer,
48-
lightningLayer: lightning,
48+
lightingLayer: lighting,
4949
scene: scene,
5050
movement: {
5151
keyLeft: "ArrowLeft",
@@ -59,7 +59,7 @@ scene.onInit({
5959
y: 170 - 16,
6060
texture: "Pink",
6161
layer: layer,
62-
lightningLayer: lightning,
62+
lightingLayer: lighting,
6363
scene: scene,
6464
movement: {
6565
keyLeft: "a",
@@ -86,7 +86,7 @@ scene.onInit({
8686
y: platform.coordinates[1],
8787
type: platform.type,
8888
layer: layer,
89-
lightningLayer: lightning,
89+
lightingLayer: lighting,
9090
})
9191
scene.storeItem({
9292
name: "platform" + counter.toString(),

examples/datenight/js/scenes/level02.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ scene.onInit({
1818
height: 260,
1919
renderer: new fox.Renderers.WebGL(),
2020
})
21-
let lightning = new fox.Layers.Lightning({
21+
let lighting = new fox.Layers.Lighting({
2222
width: 360,
2323
height: 360,
2424
globalLight: 0.5
2525
})
2626

2727
scene.addLayer({layer: layer})
28-
scene.addLayer({layer: lightning})
28+
scene.addLayer({layer: lighting})
2929
scene.addCamera({camera: camera})
3030

3131
// create background
@@ -45,7 +45,7 @@ scene.onInit({
4545
y: 85-16,
4646
texture: "Blue",
4747
layer: layer,
48-
lightningLayer: lightning,
48+
lightingLayer: lighting,
4949
scene: scene,
5050
movement: {
5151
keyLeft: "ArrowLeft",
@@ -59,7 +59,7 @@ scene.onInit({
5959
y: 85-16,
6060
texture: "Pink",
6161
layer: layer,
62-
lightningLayer: lightning,
62+
lightingLayer: lighting,
6363
scene: scene,
6464
movement: {
6565
keyLeft: "a",
@@ -83,7 +83,7 @@ scene.onInit({
8383
y: platform.coordinates[1],
8484
type: platform.type,
8585
layer: layer,
86-
lightningLayer: lightning,
86+
lightingLayer: lighting,
8787
})
8888
scene.storeItem({
8989
name: "platform" + counter.toString(),

examples/datenight/js/scenes/level03.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ scene.onInit({
1818
height: 260,
1919
renderer: new fox.Renderers.WebGL(),
2020
})
21-
let lightning = new fox.Layers.Lightning({
21+
let lighting = new fox.Layers.Lighting({
2222
width: 360,
2323
height: 360,
2424
globalLight: 0.5
2525
})
2626

2727
scene.addLayer({layer: layer})
28-
scene.addLayer({layer: lightning})
28+
scene.addLayer({layer: lighting})
2929
scene.addCamera({camera: camera})
3030

3131
// create background
@@ -45,7 +45,7 @@ scene.onInit({
4545
y: 85-16,
4646
texture: "Blue",
4747
layer: layer,
48-
lightningLayer: lightning,
48+
lightingLayer: lighting,
4949
scene: scene,
5050
movement: {
5151
keyLeft: "ArrowLeft",
@@ -59,7 +59,7 @@ scene.onInit({
5959
y: 85-16,
6060
texture: "Pink",
6161
layer: layer,
62-
lightningLayer: lightning,
62+
lightingLayer: lighting,
6363
scene: scene,
6464
movement: {
6565
keyLeft: "a",
@@ -84,7 +84,7 @@ scene.onInit({
8484
y: platform.coordinates[1],
8585
type: platform.type,
8686
layer: layer,
87-
lightningLayer: lightning,
87+
lightingLayer: lighting,
8888
})
8989
scene.storeItem({
9090
name: "platform" + counter.toString(),

examples/datenight/js/scenes/level04.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ scene.onInit({
1818
height: 260,
1919
renderer: new fox.Renderers.WebGL(),
2020
})
21-
let lightning = new fox.Layers.Lightning({
21+
let lighting = new fox.Layers.Lighting({
2222
width: 360,
2323
height: 360,
2424
globalLight: 0.5
2525
})
2626

2727
scene.addLayer({layer: layer})
28-
scene.addLayer({layer: lightning})
28+
scene.addLayer({layer: lighting})
2929
scene.addCamera({camera: camera})
3030

3131
// create background
@@ -45,7 +45,7 @@ scene.onInit({
4545
y: 220-16,
4646
texture: "Blue",
4747
layer: layer,
48-
lightningLayer: lightning,
48+
lightingLayer: lighting,
4949
scene: scene,
5050
movement: {
5151
keyLeft: "ArrowLeft",
@@ -59,7 +59,7 @@ scene.onInit({
5959
y: 220-16,
6060
texture: "Pink",
6161
layer: layer,
62-
lightningLayer: lightning,
62+
lightingLayer: lighting,
6363
scene: scene,
6464
movement: {
6565
keyLeft: "a",
@@ -88,7 +88,7 @@ scene.onInit({
8888
y: platform.coordinates[1],
8989
type: platform.type,
9090
layer: layer,
91-
lightningLayer: lightning,
91+
lightingLayer: lighting,
9292
})
9393
scene.storeItem({
9494
name: "platform" + counter.toString(),

examples/datenight/js/scenes/level05.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ scene.onInit({
1818
height: 260,
1919
renderer: new fox.Renderers.WebGL(),
2020
})
21-
let lightning = new fox.Layers.Lightning({
21+
let lighting = new fox.Layers.Lighting({
2222
width: 360,
2323
height: 360,
2424
globalLight: 0.5
2525
})
2626

2727
scene.addLayer({layer: layer})
28-
scene.addLayer({layer: lightning})
28+
scene.addLayer({layer: lighting})
2929
scene.addCamera({camera: camera})
3030

3131
// create background
@@ -45,7 +45,7 @@ scene.onInit({
4545
y: 220-16,
4646
texture: "Blue",
4747
layer: layer,
48-
lightningLayer: lightning,
48+
lightingLayer: lighting,
4949
scene: scene,
5050
movement: {
5151
keyLeft: "ArrowLeft",
@@ -59,7 +59,7 @@ scene.onInit({
5959
y: 220-16,
6060
texture: "Pink",
6161
layer: layer,
62-
lightningLayer: lightning,
62+
lightingLayer: lighting,
6363
scene: scene,
6464
movement: {
6565
keyLeft: "a",
@@ -88,7 +88,7 @@ scene.onInit({
8888
y: platform.coordinates[1],
8989
type: platform.type,
9090
layer: layer,
91-
lightningLayer: lightning,
91+
lightingLayer: lighting,
9292
})
9393
scene.storeItem({
9494
name: "platform" + counter.toString(),

examples/datenight/js/scenes/level06.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ scene.onInit({
1818
height: 260,
1919
renderer: new fox.Renderers.WebGL(),
2020
})
21-
let lightning = new fox.Layers.Lightning({
21+
let lighting = new fox.Layers.Lighting({
2222
width: 360,
2323
height: 360,
2424
globalLight: 0.5
2525
})
2626

2727
scene.addLayer({layer: layer})
28-
scene.addLayer({layer: lightning})
28+
scene.addLayer({layer: lighting})
2929
scene.addCamera({camera: camera})
3030

3131
// create background
@@ -45,7 +45,7 @@ scene.onInit({
4545
y: 150-16,
4646
texture: "Blue",
4747
layer: layer,
48-
lightningLayer: lightning,
48+
lightingLayer: lighting,
4949
scene: scene,
5050
movement: {
5151
keyLeft: "ArrowLeft",
@@ -59,7 +59,7 @@ scene.onInit({
5959
y: 150-16,
6060
texture: "Pink",
6161
layer: layer,
62-
lightningLayer: lightning,
62+
lightingLayer: lighting,
6363
scene: scene,
6464
movement: {
6565
keyLeft: "a",
@@ -81,7 +81,7 @@ scene.onInit({
8181
y: platform.coordinates[1],
8282
type: platform.type,
8383
layer: layer,
84-
lightningLayer: lightning,
84+
lightingLayer: lighting,
8585
})
8686
scene.storeItem({
8787
name: "platform" + counter.toString(),

0 commit comments

Comments
 (0)