Change targetting line to dashed

This commit is contained in:
Peter Stockings
2026-01-20 23:05:18 +11:00
parent 1a91aa5274
commit 327b6aa0eb
4 changed files with 89 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ export class EventBridge {
commitActionFn: (action: any) => void,
emitUIUpdateFn: () => void,
restartGameFn: () => void,
executeThrowFn: (x: number, y: number) => void
executeThrowFn: () => void
): void {
// Menu state listeners (from UI)
this.scene.events.on("menu-toggled", (isOpen: boolean) => {
@@ -115,7 +115,7 @@ export class EventBridge {
if (targetingSystem.isActive && targetingSystem.itemId === item.id) {
// Already targeting - execute throw
if (targetingSystem.cursorPos) {
executeThrowFn(targetingSystem.cursorPos.x, targetingSystem.cursorPos.y);
executeThrowFn();
}
return;
}
@@ -124,6 +124,8 @@ export class EventBridge {
item.id,
player.pos,
(this.scene as any).world,
(this.scene as any).entityManager,
(this.scene as any).playerId,
dungeonRenderer.seenArray,
(this.scene as any).world.width
);