Toolverse
All skills

godot-plugin

by openclaw

Control Godot Editor via OpenClaw Godot Plugin. Use for Godot game development tasks including scene management, node manipulation, input simulation, debugging, and editor control. Triggers on Godot-related requests like inspecting scenes, creating nodes, taking screenshots,

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Testing
Views
5

About this skill

Control Godot Editor via OpenClaw Godot Plugin. Use for Godot game development tasks including scene management, node manipulation, input simulation, debugging, and editor control. Triggers on Godot-related requests like inspecting scenes, creating nodes, taking screenshots, testing gameplay, or controlling the editor.

How to use

  1. Sprawdź dostępność narzędzia godot_execute w swoim środowisku OpenClaw. Jeśli nie jest dostępne, przejdź do katalogu umiejętności i uruchom skrypt instalacyjny: ./scripts/install-extension.sh, następnie zrestartuj bramę poleceniem openclaw gateway restart.

  2. Aby utworzyć nową scenę, użyj narzędzia scene.create z parametrami określającymi typ węzła głównego (np. Node2D) i nazwę sceny. Po utworzeniu sceny dodaj węzły za pomocą node.create, podając typ węzła (np. CharacterBody2D) i jego nazwę.

  3. Znajdź istniejące węzły w scenie za pomocą node.find, podając nazwę węzła, a następnie pobierz jego dane za pomocą node.getData. Możesz wtedy modyfikować transformacje węzła — pozycję, rotację i skalę — używając narzędzi transform.setPosition, transform.setRotation i transform.setScale.

  4. Do testowania gry uruchom edytor poleceniem editor.play. Podczas testowania symuluj wejście gracza za pomocą input.keyPress (dla klawiszy), input.mouseClick (dla myszy) lub input.actionPress (dla akcji zdefiniowanych w projekcie).

  5. Monitoruj działanie gry za pomocą debug.tree (aby zobaczyć hierarchię węzłów), debug.screenshot (aby zrobić zrzut ekranu) i console.getLogs (aby sprawdzić logi konsoli). Po zakończeniu testów zatrzymaj grę poleceniem editor.stop.

  6. Zapisz zmiany w scenie za pomocą scene.save. Możesz także otwierać istniejące sceny poleceniem scene.open, podając ścieżkę do pliku sceny.

Related skills