Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Gun

Describes a laser gun which is just a special Bar

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

fillStyle

fillStyle: string = "green"

maxValue

maxValue: number

position

position: Vector

size

size: Vector = new Vector(100, 10)

strokeStyle

strokeStyle: string = "white"

Static Private size

size: Vector = new Vector(-15, 6)

Methods

draw

  • draw(_charge: number, _strokeStyle?: string): void
  • Parameters

    • _charge: number
    • Default value _strokeStyle: string = "white"

    Returns void

Generated using TypeDoc