Class: BottleBar

BottleBar(percentage)

BottleBar A status bar that displays the current amount of bottles (ammo). Extends the StatusBar class and uses orange bottle images.

Constructor

new BottleBar(percentage)

Creates a new BottleBar instance and sets the initial percentage.
Parameters:
Name Type Description
percentage number The initial percentage to be displayed (0–100).
Source:

Members

IMAGES :Array.<string>

Paths to the images representing different bottle levels.
Type:
  • Array.<string>
Source:

y :number

The vertical position of the bottle bar on the screen.
Type:
  • number
Source: