Skip to content

Instantly share code, notes, and snippets.

View CodySelman's full-sized avatar
🙈

Cody Selman CodySelman

🙈
View GitHub Profile
@CodySelman
CodySelman / clickpocalypse-bot.js
Last active August 25, 2025 07:16
Script for Clickpocalypse 2 (https://www.minmaxia.com/c2/). Automatically purchases upgrades, uses scrolls, uses potions, and gets loot.
(function clickPocalypseBot() {
const mouseupEvent = new MouseEvent('mouseup', {
bubbles: true, // Allows the event to bubble up the DOM tree
cancelable: true, // Allows the event to be canceled
view: window, // The window in which the event occurred
clientX: 100, // X-coordinate of the mouse pointer
clientY: 150, // Y-coordinate of the mouse pointer
button: 0, // 0 for left button, 1 for middle, 2 for right
buttons: 0 // Indicates no buttons are currently pressed
});
@CodySelman
CodySelman / SpritesheetSlicer.cs
Created October 21, 2021 00:43
Editor Tool for Unity that allows for easy bulk Spritesheet slicing
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class SpritesheetSlicer : ScriptableWizard
{
public bool mipmapEnabled = false;
public FilterMode filterMode = FilterMode.Point;
public Vector2 spritePivot = Vector2.zero;
public TextureImporterCompression textureImporterCompression = TextureImporterCompression.Uncompressed;