Class: GameObject

GameObject(storage, x, y, type)

Parent class of all interactable objects such as Planet and Rocket.

Constructor

new GameObject(storage, x, y, type)

Parameters:
Name Type Description
storage object Array of GameObject to store itself in
x number x coordinate
y number y coordinate
type string Descriptor of object. i.e. "planet" or "rocket"
Source:

Extends

Members

type :string

Descriptor of object i.e. "planet" or "rocket"
Type:
  • string
Source:

x :Number

x coordinate
Type:
  • Number
Overrides:
Source:

y :Number

y coordinate
Type:
  • Number
Overrides:
Source: