Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_acceleration: Vector2 = ...
_animatedSpriteName: string
_direction: Vector2
_end: Vector2
_hitSpriteName: string
_isAlive: boolean = true
_maxVelocityX: number
_maxVelocityY: number
_owner: undefined | Entity
_playerCollisionComponent: string
_projectileCollisionComponent: string
_sprite: undefined | AnimatedSpriteComponent
_start: Vector2
_velocity: Vector2 = ...
name: string

Methods

  • apply(userData: any): void
  • changeSprite(materialName: string, frameSequence: number[]): void
  • Changes the sprtie of the owner based on the material and frameSequence. NOTE: This can only change to animated sprite materials.

    Parameters

    • materialName: string
    • frameSequence: number[]

    Returns void

    void

  • destroy(): void
  • die(): void
  • getOwner(): undefined | Entity
  • setFromJson(json: any): void
  • update(delta: number): void
  • updateReady(): void

Generated using TypeDoc