Skip to content

KilledByAPixel/newgrounds

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

A JavaScript Wrapper for Newgrounds API 3.0

LIVE DEMO

EXAMPLE GAME - BOUNCE BACK

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);

About

A Small JavaScript Wrapper for Newgrounds API 3.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published