@adatechnology/game-urban 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +9 -3
- package/dist/index.global.js.map +1 -1
- package/package.json +3 -3
package/dist/index.global.js
CHANGED
|
@@ -99,6 +99,7 @@ var GameUrban = (() => {
|
|
|
99
99
|
var createLightBudget = createLightAllowance;
|
|
100
100
|
|
|
101
101
|
// ../game-contracts/dist/index.js
|
|
102
|
+
var DEFAULT_BLAST_IMPULSE = { bodyArea: 0.7, lift: 0.15, minSpeed: 0.3, tntPerJoule: 0.24 / 2e5 };
|
|
102
103
|
var DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024;
|
|
103
104
|
var DEFERRED_QUEUE_ID = {
|
|
104
105
|
DESTRUCTION_EVENTS: "destruction.events",
|
|
@@ -10259,7 +10260,9 @@ var GameUrban = (() => {
|
|
|
10259
10260
|
function fogLamp(c, s, r) {
|
|
10260
10261
|
onSurf(c.cylinder(r * 1.4, r * 1.4, 0.014, LH, 0, 0, 0), s, 6e-3).castShadow = false;
|
|
10261
10262
|
onSurf(c.cylinder(r, r, 0.012, REFL, 0, 0, 0), s, 0.012).castShadow = false;
|
|
10262
|
-
onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016)
|
|
10263
|
+
const bulb = onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016);
|
|
10264
|
+
bulb.castShadow = false;
|
|
10265
|
+
(c.fogBulbs ?? (c.fogBulbs = [])).push(bulb);
|
|
10263
10266
|
}
|
|
10264
10267
|
function crease(c, I, sd, pts, o) {
|
|
10265
10268
|
o = o || {};
|
|
@@ -19261,7 +19264,9 @@ var GameUrban = (() => {
|
|
|
19261
19264
|
function fogLamp(c, s, r) {
|
|
19262
19265
|
onSurf(c.cylinder(r * 1.4, r * 1.4, 0.014, LH, 0, 0, 0), s, 6e-3).castShadow = false;
|
|
19263
19266
|
onSurf(c.cylinder(r, r, 0.012, REFL, 0, 0, 0), s, 0.012).castShadow = false;
|
|
19264
|
-
onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016)
|
|
19267
|
+
const bulb = onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016);
|
|
19268
|
+
bulb.castShadow = false;
|
|
19269
|
+
(c.fogBulbs ?? (c.fogBulbs = [])).push(bulb);
|
|
19265
19270
|
}
|
|
19266
19271
|
function crease(c, I, sd, pts, o) {
|
|
19267
19272
|
o = o || {};
|
|
@@ -26470,7 +26475,7 @@ var GameUrban = (() => {
|
|
|
26470
26475
|
const x = kit.profX(s.lower, s.bottomY + 0.14, true) + 0.09;
|
|
26471
26476
|
[1, -1].forEach(function(sd) {
|
|
26472
26477
|
c.roundBox(0.04, r * 2.6, r * 3.2, 0.015, MT.housing, x, y, sd * z);
|
|
26473
|
-
kit.headlight(c, {
|
|
26478
|
+
const lamp = kit.headlight(c, {
|
|
26474
26479
|
style: "round",
|
|
26475
26480
|
x: x + 0.01,
|
|
26476
26481
|
y,
|
|
@@ -26482,6 +26487,7 @@ var GameUrban = (() => {
|
|
|
26482
26487
|
label: sd > 0 ? trl("labels.right_fog_light") : trl("labels.left_fog_light"),
|
|
26483
26488
|
reach: 0.5
|
|
26484
26489
|
});
|
|
26490
|
+
lamp.fog = true;
|
|
26485
26491
|
});
|
|
26486
26492
|
}
|
|
26487
26493
|
function roofBars(c, z, h, r) {
|