// ==UserScript==
// @name Diamond Engine
// @namespace http://tampermonkey.net/
// @version 1.0
// @description The Diamond Engine is connected to Drawaria.online's stories and is designed for Decorations. It's made for the Diamond Queen and it serves a critical role in the story to save the game.
// @author YouTubeDrawaria
// @include https://drawaria.online/*
// @include https://.drawaria.online/
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @connect myinstants.com
// @connect ibb.co
// @run-at document-start
// @icon https://i.ibb.co/zV5sXzkz/diamond2.gif
// @license MIT
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
// 1. CONFIGURACIÓN DE URLS Y SONIDOS
const STARTUP_SOUND_URL = 'https://www.myinstants.com/media/sounds/windows-vista-beta-2006-startup.mp3';
const CLICK_SOUND_URL = 'https://www.myinstants.com/media/sounds/pisseim-mund-online-audio-converter.mp3';
const GIF_ICON_URL = 'https://i.ibb.co/zV5sXzkz/diamond2.gif';
function playSound(url) {
GM_xmlhttpRequest({
method: 'GET',
url: url,
responseType: 'arraybuffer',
onload: function(response) {
try {
const context = new (window.AudioContext || window.webkitAudioContext)();
context.decodeAudioData(response.response, function(buffer) {
const source = context.createBufferSource();
source.buffer = buffer;
source.connect(context.destination);
source.start(0);
});
} catch (e) {
console.error('Diamond Engine Error: Error al reproducir sonido:', e);
}
}
});
}
// 2. ESTILOS CSS
GM_addStyle(`
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');
#diamond-gif-container {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 99999;
cursor: pointer;
transition: opacity 0.5s;
}
#diamond-gif {
width: 100px;
height: 100px;
animation: spin 4s linear infinite, float 3s ease-in-out infinite alternate;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0% { transform: translateY(0px); } 100% { transform: translateY(-15px); } }
#diamond-engine-container, #options-container, #game-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99998;
background-color: rgba(0, 0, 0, 0.95);
display: none;
overflow: auto;
justify-content: center;
align-items: center;
}
#diamond-engine-svg { display: block; margin: 50px auto; max-width: 900px; height: auto; }
#options-svg { display: block; margin: 50px auto; max-width: 800px; height: auto; }
#game-iframe { width: 100%; height: 100%; border: none; display: block; }
.game-back-btn {
position: absolute;
top: 10px; right: 10px;
padding: 10px 20px;
background: #008B8B; color: #E0FFFF;
border: 2px solid #00CED1;
box-shadow: 0 0 5px #00CED1;
cursor: pointer;
font-family: 'Orbitron', sans-serif;
font-size: 14px;
z-index: 100001;
transition: background 0.3s;
}
.game-back-btn:hover { background: #00CED1; }
`);
// 3. CONTENIDO SVG PRINCIPAL (MENU DE INICIO)
const DIAMOND_ENGINE_SVG_CONTENT = `
`;
// 4. CONTENIDO SVG OPCIONES (HOLOGRÁFICO)
const OPTIONS_SVG_CONTENT = `
CLICK PRISMS TO ROTATE // CONNECT THE BEAM
COLLISION DETECTED