excalibur 0.32.0-alpha.1572 → 0.32.0-alpha.1574

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/CHANGELOG.md CHANGED
@@ -84,6 +84,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
84
84
  - Fixed issue where not(tags) and not(component) queries weren't updating in the querymanager
85
85
  - Fixed Tilemap/Isometric map pointer performance on moderate to large maps, we changed the strategy to only consider tiles under the pointer instead of try to do sorted dispatch on NxM tiles.
86
86
  - Fixed issue that caused coroutines to not automatically discover the engine scheduler when inside an async lifecycle sometimes. This is because of the stack replacement issue of async/await the context reverts too soon.
87
+ - Fixed issue actor kill event was triggered twice
87
88
 
88
89
  ### Updates
89
90
 
@@ -1,5 +1,5 @@
1
1
  import type { PostCollisionEvent, PreCollisionEvent, CollisionStartEvent, CollisionEndEvent, EnterViewPortEvent, ExitViewPortEvent, PreDrawEvent, PostDrawEvent, PreDebugDrawEvent, PostDebugDrawEvent, ActionStartEvent, ActionCompleteEvent } from './Events';
2
- import { KillEvent, PostKillEvent, PreKillEvent } from './Events';
2
+ import { type KillEvent, PostKillEvent, PreKillEvent } from './Events';
3
3
  import type { Engine } from './Engine';
4
4
  import type { Color } from './Color';
5
5
  import type { CanInitialize, CanUpdate, CanBeKilled } from './Interfaces/LifecycleEvents';
@@ -3,6 +3,7 @@ import type { ExcaliburGraphicsContext } from './Context/ExcaliburGraphicsContex
3
3
  import type { FontRenderer } from './FontCommon';
4
4
  import type { GraphicOptions } from './Graphic';
5
5
  import { Graphic } from './Graphic';
6
+ import type { Sprite } from './Sprite';
6
7
  import type { SpriteSheet } from './SpriteSheet';
7
8
  import { BoundingBox } from '../Collision/BoundingBox';
8
9
  export interface SpriteFontOptions {
@@ -46,7 +47,7 @@ export declare class SpriteFont extends Graphic implements FontRenderer {
46
47
  lineHeight: number | undefined;
47
48
  private _logger;
48
49
  constructor(options: SpriteFontOptions & GraphicOptions);
49
- private _getCharacterSprites;
50
+ protected _getCharacterSprites(text: string): Sprite[];
50
51
  measureText(text: string, maxWidth?: number): BoundingBox;
51
52
  protected _drawImage(ex: ExcaliburGraphicsContext, x: number, y: number, maxWidth?: number): void;
52
53
  render(ex: ExcaliburGraphicsContext, text: string, _color: any, x: number, y: number, maxWidth?: number): void;
@@ -59,5 +60,5 @@ export declare class SpriteFont extends Graphic implements FontRenderer {
59
60
  private _cachedText?;
60
61
  private _cachedLines?;
61
62
  private _cachedRenderWidth?;
62
- private _getLinesFromText;
63
+ protected _getLinesFromText(text: string, maxWidth?: number): string[];
63
64
  }
@@ -1,4 +1,4 @@
1
- /*! excalibur - 0.32.0-alpha.1572+72a3430 - 2025-11-28
1
+ /*! excalibur - 0.32.0-alpha.1574+e3aa0be - 2025-11-28
2
2
  https://github.com/excaliburjs/Excalibur
3
3
  Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
4
4
  Licensed BSD-2-Clause
@@ -20165,7 +20165,6 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
20165
20165
  kill() {
20166
20166
  if (this.scene) {
20167
20167
  this._prekill(this.scene);
20168
- this.events.emit("kill", new KillEvent(this));
20169
20168
  super.kill();
20170
20169
  this._postkill(this.scene);
20171
20170
  } else {
@@ -33442,7 +33441,7 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
33442
33441
  this._count += count;
33443
33442
  }
33444
33443
  }
33445
- const EX_VERSION = "0.32.0-alpha.1572+72a3430";
33444
+ const EX_VERSION = "0.32.0-alpha.1574+e3aa0be";
33446
33445
  polyfill();
33447
33446
  exports2.ActionCompleteEvent = ActionCompleteEvent;
33448
33447
  exports2.ActionContext = ActionContext;
@@ -1,4 +1,4 @@
1
- /*! excalibur - 0.32.0-alpha.1572+72a3430 - 2025-11-28
1
+ /*! excalibur - 0.32.0-alpha.1574+e3aa0be - 2025-11-28
2
2
  https://github.com/excaliburjs/Excalibur
3
3
  Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
4
4
  Licensed BSD-2-Clause
@@ -20165,7 +20165,6 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
20165
20165
  kill() {
20166
20166
  if (this.scene) {
20167
20167
  this._prekill(this.scene);
20168
- this.events.emit("kill", new KillEvent(this));
20169
20168
  super.kill();
20170
20169
  this._postkill(this.scene);
20171
20170
  } else {
@@ -33442,7 +33441,7 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
33442
33441
  this._count += count;
33443
33442
  }
33444
33443
  }
33445
- const EX_VERSION = "0.32.0-alpha.1572+72a3430";
33444
+ const EX_VERSION = "0.32.0-alpha.1574+e3aa0be";
33446
33445
  polyfill();
33447
33446
  exports2.ActionCompleteEvent = ActionCompleteEvent;
33448
33447
  exports2.ActionContext = ActionContext;