LittleJS Medal System
- Tracks and displays medals
- Saves medals to local storage
- Newgrounds integration
- Source
Members
(static, constant) medals :Array
List of all medals
Type:
- Array
- Source
Methods
(static) medalsInit(saveName)
Initialize medals with a save name used for storage
- Call this after creating all medals
- Checks if medals are unlocked
Parameters:
Name | Type | Description |
---|---|---|
saveName | String |
- Source
(static) newgroundsInit(app_id, cipheropt)
This can used to enable Newgrounds functionality
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
app_id | Number | The newgrounds App ID | |
cipher | String | <optional> | The encryption Key (AES-128/Base64) |
- Source