incanto 0.2.0 → 0.3.0

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/editor/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Incanto Scene Editor</title>
7
7
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect width='16' height='16' rx='3' fill='%236ee7dc'/><text x='8' y='12' text-anchor='middle' font-size='11' font-family='monospace' fill='%230e1018'>i</text></svg>" />
8
- <script type="module" crossorigin src="./assets/index-CxJ6dZLb.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-DJZWJVbh.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="./assets/GameServer-C56iOUgF.js">
10
10
  <link rel="stylesheet" crossorigin href="./assets/index-DF3tMeKJ.css">
11
11
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incanto",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Vibe-coding-first web game engine SDK — JSON-driven scenes on three.js",
5
5
  "keywords": [
6
6
  "game-engine",
@@ -566,6 +566,10 @@
566
566
  "type": "number",
567
567
  "default": 0.5
568
568
  },
569
+ "castShadow": {
570
+ "type": "boolean",
571
+ "default": false
572
+ },
569
573
  "sheet": {
570
574
  "type": "string",
571
575
  "default": ""
@@ -3643,6 +3647,10 @@
3643
3647
  "alphaTest": {
3644
3648
  "type": "number",
3645
3649
  "default": 0.5
3650
+ },
3651
+ "castShadow": {
3652
+ "type": "boolean",
3653
+ "default": false
3646
3654
  }
3647
3655
  },
3648
3656
  "additionalProperties": false
@@ -82,6 +82,7 @@ billboard spin. `Sprite3D`:
82
82
  | `flipX` | `false` | mirror horizontally (face left vs right) |
83
83
  | `pixelArt` | `true` | nearest-filter for crisp pixels (`false` = smooth linear) |
84
84
  | `alphaTest` | `0.5` | discard texels below this alpha — a crisp cutout that depth-sorts against 3D geometry (a tree occludes it; it occludes the ground). Use `0` + `opacity < 1` for soft/feathered sprites (smoke, glow) |
85
+ | `castShadow` | `false` | cast a **sprite-shaped** (alpha-tested) shadow — the shadow follows the texture's cutout + current animation frame, not the whole quad. Needs a shadow-casting light + a `receiveShadow` ground |
85
86
 
86
87
  `AnimatedSprite3D` adds spritesheet animation (ALL Sprite3D props, plus):
87
88
 
@@ -54,6 +54,7 @@ Signals: `animationFinished(name)`
54
54
  | `flipX` | `false` | boolean |
55
55
  | `pixelArt` | `true` | boolean |
56
56
  | `alphaTest` | `0.5` | number |
57
+ | `castShadow` | `false` | boolean |
57
58
  | `sheet` | `""` | string |
58
59
  | `frameWidth` | `0` | number |
59
60
  | `frameHeight` | `0` | number |
@@ -524,6 +525,7 @@ Signals: `triggerEnter(other)` · `triggerExit(other)`
524
525
  | `flipX` | `false` | boolean |
525
526
  | `pixelArt` | `true` | boolean |
526
527
  | `alphaTest` | `0.5` | number |
528
+ | `castShadow` | `false` | boolean |
527
529
 
528
530
  ## `StaticBody2D` — `incanto/2d`
529
531