Giter VIP home page Giter VIP logo

gmrpc-legacy's Introduction

GMRPC-legacy

Make your GameMaker game stand out with Rich Presence! DOCUMENTATION HERE: click

Make sure to check out the 'sigma' branch. New features are tested there. Up-to-date builds can be found in bin/Debug

Features

  • Show your game's name on the player's discord profile
  • Set custom text and images to show
  • Set timestamps
  • Get the local discord user's (public) information

Setup

Get the Thing

Download the latest release here.

Import the gmz in GameMaker

Extensions -> Import (Drag and Drop onto the GMS window may work too)

Use it in code

  • The first function you want to call is gmrpc_init(AppID).
    • The AppID is obtained on the discord developer page.
    • I assume you already have your Game / App set up on Discord's side.
  • After that, you can set the presence with gmrpc_setPresence(...)
    • Snytax: gmrpc_setPresence(state, details, largeImage, smallImage) Where:
parameter description
State is the state text displayed on the user's profile
Details are the details displayed on the user's profile
largeImage is the large image displayed on the user's profile
smallImage is the small image in the bottom right corner of the large image

Free the DLL

Make sure to exit Discord if you don't need it anymore.

  • To do this, call gmrpc_exit()

    This will unload the "discord-rpc.dll" from memory.

gmrpc-legacy's People

Contributors

sam-k0 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.