Skip to content

Instantly share code, notes, and snippets.

View salvamomo's full-sized avatar

Salvador Molina Moreno salvamomo

View GitHub Profile
@salvamomo
salvamomo / Console.gd
Created June 12, 2020 06:50 — forked from xdl/Console.gd
Godot debug/interpreter console
extends Control
# Mostly inspired off https://www.youtube.com/watch?v=80cwYGvKB9U
# and https://github.com/godotengine/godot/issues/8003
onready var input_node: LineEdit = $Input
onready var output_node: TextEdit = $Output
# Dump some commands in here for convenience
var history = ["get_tree().get_root().get_node('Main')"]