Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 800 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 800 Bytes

A JavaScript Wrapper for Newgrounds API 3.0

Features

  • Small self contained wrapper for Newgrounds API 3.0 calls
  • Functions provided for medals and soreboards
  • Medal popup display rendering with icons
  • Escaped emojis can be used in medal names and descriptions
  • Encryption is set up for AES-128 Base64 encryption
  • Uses CryptoJS for encryption

Example Usage

Newgrounds.Init(appID, encryptionCipher);
Newgrounds.UnlockMedal(0);
Newgrounds.PostScore(0, 12345);

Optional Update/Render for Medal Popups

Newgrouinds.Update(timeDelta);
Newgrounds.Render(canvasContext, drawSize);