Newgrounds. NewgroundsMedal

Newgrounds medal auto unlocks in newgrounds API

Constructor

new NewgroundsMedal(id, name, descriptionopt, iconopt, srcopt)

Create a newgrounds medal object and adds it to the list of medals

Parameters:
NameTypeAttributesDescription
idnumber

The unique identifier of the medal

namestring

Name of the medal

descriptionstring<optional>

Description of the medal

iconstring<optional>

Icon for the medal

srcstring<optional>

Image location for the medal

Extends

  • Medal

Methods

unlock()

Unlocks a medal if not already unlocked