|
// ==UserScript== |
|
// @name Splix.io Cheat |
|
// @namespace http://tampermonkey.net/ |
|
// @version 0.1 |
|
// @description try to take over the world! |
|
// @author You |
|
// @match https://splix.io/ |
|
// @icon https://www.google.com/s2/favicons?domain=splix.io |
|
// @grant none |
|
// ==/UserScript== |
|
|
|
function tryOverrides() { |
|
// Additional pallet |
|
colors.grey.minimappable = "#3d3936"; |
|
colors.red.minimappable = "#8b2e1e"; |
|
colors.red2.minimappable = "#C3324B"; |
|
colors.pink.minimappable = "#8A2F67"; |
|
colors.pink2.minimappable = "#6E2DcA"; |
|
colors.purple.minimappable = "#492068"; |
|
colors.blue.minimappable = "#2d4189"; |
|
colors.blue2.minimappable = "#3764b3"; |
|
colors.green.minimappable = "#2Ca636"; |
|
colors.green2.minimappable = "#28662f"; |
|
colors.leaf.minimappable = "#677335"; |
|
colors.yellow.minimappable = "#bfa93b"; |
|
colors.orange.minimappable = "#bb6a25"; |
|
colors.gold.minimappable = "#ffa82B"; |
|
|
|
// This is the function from splix.io plus some modifications to show the minimap drawing blocks |
|
window.drawBlocks = function(e, t, n) { |
|
for (var a, i = 0; i < t.length; i++) { |
|
var o, s, r, l, c, d, m = t[i]; |
|
n && (m.x < camPos[0] - VIEWPORT_RADIUS || m.x > camPos[0] + VIEWPORT_RADIUS || m.y < camPos[1] - VIEWPORT_RADIUS || m.y > camPos[1] + VIEWPORT_RADIUS) || (0 < m.animDelay ? m.animDelay -= deltaTime : m.animProgress += deltaTime * m.animDirection * .003, |
|
1 < m.animProgress && (m.animDirection = 0, |
|
m.animProgress = 1), |
|
m.animProgress < 0 ? (m.currentBlock = m.nextBlock, |
|
m.animDirection = 1, |
|
m.animProgress = 0) : (o = m.animProgress, |
|
0 === m.currentBlock && (e.fillStyle = colors.red.boundsDark, |
|
e.fillRect(10 * m.x, 10 * m.y, 10, 10), |
|
uglyMode || (linesCtx.fillStyle = colors.grey.diagonalLines, |
|
linesCtx.fillRect(10 * m.x, 10 * m.y, 10, 10))), |
|
1 == m.currentBlock && (.8 < o && !uglyMode && (e.fillStyle = colors.grey.darker, |
|
e.fillRect(10 * m.x + 2, 10 * m.y + 2, 7, 7)), |
|
e.fillStyle = colors.grey.brighter, |
|
/* ============================ */ |
|
/* ------- NEW SECTION -------- */ |
|
e.fillStyle = ([0,8,15,22].includes(m.x%30) && [0,8,15,22].includes(m.y%30)) ? "#222222" : colors.grey.brighter, |
|
/* ---------------------------- */ |
|
/* ============================ */ |
|
1 == o || uglyMode ? e.fillRect(10 * m.x + 1, 10 * m.y + 1, 7, 7) : o < .4 ? (a = 2.5 * o, |
|
e.beginPath(), |
|
e.moveTo(10 * m.x + 2, 10 * m.y + lerp(9, 2, a)), |
|
e.lineTo(10 * m.x + 2, 10 * m.y + 9), |
|
e.lineTo(10 * m.x + lerp(2, 9, a), 10 * m.y + 9), |
|
e.fill()) : o < .8 ? (a = 2.5 * o - 1, |
|
e.beginPath(), |
|
e.moveTo(10 * m.x + 2, 10 * m.y + 2), |
|
e.lineTo(10 * m.x + 2, 10 * m.y + 9), |
|
e.lineTo(10 * m.x + 9, 10 * m.y + 9), |
|
e.lineTo(10 * m.x + 9, 10 * m.y + lerp(9, 2, a)), |
|
e.lineTo(10 * m.x + lerp(2, 9, a), 10 * m.y + 2), |
|
e.fill()) : (a = 5 * o - 4, |
|
e.fillRect(10 * m.x + lerp(2, 1, a), 10 * m.y + lerp(2, 1, a), 7, 7))), |
|
2 <= m.currentBlock && (r = getColorForBlockSkinId(s = (m.currentBlock - 2) % SKIN_BLOCK_COUNT), |
|
c = (l = m.currentBlock > SKIN_BLOCK_COUNT + 1) ? r.pattern : r.brighter, |
|
d = l ? r.patternEdge : r.darker, |
|
.8 < o && !uglyMode && (e.fillStyle = d, |
|
e.fillRect(10 * m.x + 1, 10 * m.y + 1, 9, 9)), |
|
e.fillStyle = c, |
|
/* ============================ */ |
|
/* ------- NEW SECTION -------- */ |
|
e.fillStyle = ([0,8,15,22].includes(m.x%30) && [0,8,15,22].includes(m.y%30)) ? r.darker : c, |
|
/* ---------------------------- */ |
|
/* ============================ */ |
|
1 == o || uglyMode ? (e.fillRect(10 * m.x, 10 * m.y, 9, 9), |
|
12 != s || uglyMode || (e.fillStyle = colors.gold.bevelBright, |
|
e.fillRect(10 * m.x + 3, 10 * m.y + .1, 6, .1))) : o < .4 ? (a = 2.5 * o, |
|
e.beginPath(), |
|
e.moveTo(10 * m.x + 1, 10 * m.y + lerp(10, 1, a)), |
|
e.lineTo(10 * m.x + 1, 10 * m.y + 10), |
|
e.lineTo(10 * m.x + lerp(1, 10, a), 10 * m.y + 10), |
|
e.fill()) : o < .8 ? (a = 2.5 * o - 1, |
|
e.beginPath(), |
|
e.moveTo(10 * m.x + 1, 10 * m.y + 1), |
|
e.lineTo(10 * m.x + 1, 10 * m.y + 10), |
|
e.lineTo(10 * m.x + 10, 10 * m.y + 10), |
|
e.lineTo(10 * m.x + 10, 10 * m.y + lerp(10, 1, a)), |
|
e.lineTo(10 * m.x + lerp(1, 10, a), 10 * m.y + 1), |
|
e.fill()) : (a = 5 * o - 4, |
|
e.fillRect(10 * m.x + lerp(1, 0, a), 10 * m.y + lerp(1, 0, a), 9, 9))))) |
|
} |
|
} |
|
} |
|
|
|
var overrideInterval = setInterval(() => { |
|
if (typeof colors == 'undefined') { |
|
console.log("Not ready...."); |
|
} else { |
|
tryOverrides(); |
|
clearInterval(overrideInterval); |
|
console.log("Ready!"); |
|
} |
|
}, 50); |