Skip to content

Instantly share code, notes, and snippets.

class GameObj {
constructor (x, y, wW, wH) {
this.x = x;
this.y = y;
this.w = 0;
this.h = 0;
this.wW = wW;
this.wH = wH;
this.enabled = true;
this.color = "#ffffff";
@Hri7566
Hri7566 / hi
Created January 15, 2021 23:49
// Hri7566 and Karl Marx's Chat Box
// http://codeshare.io/aV433O
// 1.07
// Chat bot for MPP
// Copyright Hri7566 and Karl Marx of 2019
// To be used on http://www.multiplayerpiano.com/*
// Requires http://www.multiplayerpiano.com/Client.js
const MPPClient = require("./client.js");
@Hri7566
Hri7566 / bot that is smart as dicks.user.js
Last active January 19, 2021 22:35
fucking amazing thing i did
// ==UserScript==
// @name bot that is smart as dicks
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author Hri7566
// @match https://www.multiplayerpiano.com/*
// @grant none
// ==/UserScript==
@Hri7566
Hri7566 / Client.js
Created January 25, 2021 06:34
MPP Transpiled TypeScript Client
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
@Hri7566
Hri7566 / rproom.md
Last active February 15, 2021 18:13

RP Room

Rules

  1. Don't evade bans by using a VPN service or via proxies. (If caught doing so, you'll be disallowed from the room until further notice.)
  2. Piano spam is okay! Just don't overplay people. It's not nice and you could be banned. If you're being overplayed on purpose or by accident, "Mute Notes" exists. Click on the persons name to access this.
  3. Chat Spam. This is never allowed and bans will be 60 or 30 minutes. Don't think you can get away with it if you're a friend. It applies to everyone.
  4. DJDan is easily detectable, if you think he's around. @ an admin.
  5. Hacking is an instant ban. If you're caught doing so, adios to your access to this server and the RP Room on MPP.
  6. Any racial slurs are an easy ban.
  7. Impersonation is not allowed and bans will occur for you if you're caught doing any type of it!
@Hri7566
Hri7566 / Client.ts
Last active March 22, 2021 02:49
MPP TypeScript Client for Deno
import { WebSocketClient, StandardWebSocketClient } from "https://deno.land/x/websocket@v0.1.0/mod.ts";
import { EventEmitter } from "https://deno.land/std@0.84.0/node/events.ts";
export default class Client extends EventEmitter {
uri: string;
ws: WebSocketClient | any;
serverTimeOffset: number;
user: any;
participantId: any;
channel: any;
@Hri7566
Hri7566 / EventEmitter.js
Created July 26, 2021 08:20 — forked from brandon-lockaby/EventEmitter.js
Let's make a new EventEmitter
var EventEmitter = function() {
this._events = {};
};
EventEmitter.prototype.on = function(evtn, fn) {
if(!this._events.hasOwnProperty(evtn)) this._events[evtn] = [];
this._events[evtn].push(fn);
};
EventEmitter.prototype.off = function(evtn, fn) {
if(!this._events.hasOwnProperty(evtn)) return;
var idx = this._events[evtn].indexOf(fn);
@Hri7566
Hri7566 / draw-1.7.user.js
Last active August 3, 2021 19:23
mppclone drawing
// ==UserScript==
// @name Draw
// @namespace http://tampermonkey.net/
// @version 1.7
// @description Drawing addon for mppclone
// @author Hri7566
// @match https://mppclone.com/*
// @match https://multiplayerpiano.com/*
// @icon https://www.google.com/s2/favicons?domain=mppclone.com
// @grant none
@Hri7566
Hri7566 / template.user.js
Last active August 24, 2021 03:04
template.user.js
// ==UserScript==
// @name Template Bot
// @namespace http://tampermonkey.net/
// @version 0.1
// @description MPP Bot template
// @author Hri7566
// @match https://mppclone.com/*
// @icon https://www.google.com/s2/favicons?domain=mppclone.com
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Voice Chat for MPPClone
// @namespace https://multiplayerpiano.org
// @version 1.0.0
// @description Voice Chat for MPPClone
// @author Foonix, Hri7566
// @match https://mppclone.com/*
// @icon https://www.google.com/s2/favicons?domain=mppclone.com
// @grant none
// ==/UserScript==