Tutorial Gauntlet Personalizado | Geometry Dash Public

C++ Actualizado Mar 30, 2026

Archivos de Código

gauntlet.cpp

Opcional esto, simplemente lo puedes poner en el main.cpp 67 líneas
/// -- EL PRESENTE CÓDIGO ESTA HECHO POR "ItsukyTeam" -- ///
https://www.youtube.com/channel/UC3W_d2MDyQB1imbByTN4WAg/
////////////////////////////////////////////////////////////

#include <Geode/modify/GauntletNode.hpp> 
#include <Geode/modify/Modify.hpp>

class $modify(GauntletNode) {
public:

    bool init(GJMapPack* gauntlet) {
		if (!GauntletNode::init(gauntlet)) return false;

		auto BgColorGauntlet = static_cast<CCScale9Sprite*>(this->getChildByID("background"));
        if (!BgColorGauntlet) return false;

		auto BgColorNameColor = static_cast<CCLabelBMFont*>(this->getChildByID("gauntlet-name-label"));
        if (!BgColorNameColor) return false;

		auto BgColorGauntletNameColor = static_cast<CCLabelBMFont*>(this->getChildByID("gauntlet-label"));
        if (!BgColorGauntletNameColor) return false;

        GauntletType type = getGauntletTypeFromID(gauntlet->m_packID);
        ChangeColorBg(type, BgColorGauntlet, BgColorNameColor, BgColorGauntletNameColor);
        /// ---- NO TOCAR ---- ///
		return true;
	}

    ////// MODIFICACIÓNES /////
    static gd::string nameForType(GauntletType type) {
        switch (type) {
            case GauntletType::Fire:
                return "Otaku"; //Esto define el nombre del Gauntlet, en este caso sería del *Gauntlet Fire*
            default:
                return GauntletNode::nameForType(type);
        }
    }

	
    static gd::string frameForType(GauntletType type) {
        switch (type) {
            case GauntletType::Fire:
                return "island_otaku_001.png"_spr; //Esto define la imagen del Gauntlet
            default:
                return GauntletNode::frameForType(type);
        }
    }
	

	void ChangeColorBg(GauntletType type, CCScale9Sprite* BgColorGauntlet, CCLabelBMFont* BgColorNameColor, CCLabelBMFont* BgColorGauntletNameColor) {
        if (!BgColorGauntlet) return;

        switch (type) {
            case GauntletType::Fire:
			    BgColorGauntlet->setColor({ 98, 51, 218 }); 
			    BgColorNameColor->setColor({ 125, 232, 255 });
			    BgColorGauntletNameColor->setColor({ 189, 199, 255 }); //Estas son cositas extras, pero en si, esto es para cambiar los colores del Gauntlet a tu preferencia, en este caso son colores Azul/Violeta debido a la imagen central
                break;
        }
    }

	GauntletType getGauntletTypeFromID(int packID) {
        switch (packID) {
            case 1: return GauntletType::Fire; //Esto es para que se de los cambios al gauntlet 1 (Gauntlet Fire)
        }
    }
};

Comentarios (1)

edgajuman

Geometry Dash 🗣️