Class: BackgroundStar

BackgroundStar(x, y, radius, color)

This class is intended for non interactable stars. Given a coordinate for its absolute location it will draw a star there, and update given the user_x and user_y

Constructor

new BackgroundStar(x, y, radius, color)

Takes x and y coordinates for star, along with radius and color
Parameters:
Name Type Description
x Number
y Number
radius Number
color String
Source:

Classes

BackgroundStar

Methods

draw(user_x, user_y)

Draws the background star given the current user x and y
Parameters:
Name Type Description
user_x Number user view offset x
user_y Number user view offset y
Source:

update(user_x, user_y)

Update function to be called by animation loop, takes user x and y
Parameters:
Name Type Description
user_x Number user view offset x
user_y Number user view offset y
Source: