Constructor
new NewgroundsMedal(id, name, descriptionopt, iconopt, srcopt)
Create a newgrounds medal object and adds it to the list of medals
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id | number | The unique identifier of the medal | |
name | string | Name of the medal | |
description | string | <optional> | Description of the medal |
icon | string | <optional> | Icon for the medal |
src | string | <optional> | Image location for the medal |
- Source
Extends
- Medal
Methods
unlock()
Unlocks a medal if not already unlocked
- Source