Skip to main content

TopDownShooterCoordinator

@zylem/game-lib


@zylem/game-lib / behavior / TopDownShooterCoordinator

Class: TopDownShooterCoordinator

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/coordinators/top-down-shooter.d.ts:20

Coordinator that fans a single input snapshot out to the top-down movement behavior (move + face axes) and the Shooter2D behavior (fire requests).

Constructors​

Constructor​

new TopDownShooterCoordinator(entity, shooter, stage): TopDownShooterCoordinator

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/coordinators/top-down-shooter.d.ts:24

Parameters​

entity​

TopDownShooterEntity

shooter​

Shooter2DHandle

stage​

Shooter2DStageLike

Returns​

TopDownShooterCoordinator

Methods​

update()​

update(input): void

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/coordinators/top-down-shooter.d.ts:25

Parameters​

input​

TopDownShooterInput

Returns​

void