Class: Bottle

Bottle(x, y)

Bottle A collectible salsa bottle that can be picked up by the player. Extends the CollectibleObject class and uses salsa bottle images.

Constructor

new Bottle(x, y)

Creates a new Bottle instance at the specified position.
Parameters:
Name Type Description
x number The horizontal position of the bottle.
y number The vertical position of the bottle.
Source:

Members

IMAGES :Array.<string>

Paths to the images used for the salsa bottle.
Type:
  • Array.<string>
Source:

height :number

The height of the bottle in pixels.
Type:
  • number
Source:

offset :Object

Defines the offset for the bottle's hitbox.
Type:
  • Object
Source:

width :number

The width of the bottle in pixels.
Type:
  • number
Source: