mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-15 15:55:18 +00:00
11 lines
198 B
GDScript
11 lines
198 B
GDScript
extends Node2D
|
|
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
if event is InputEventMouse or event is InputEventKey:
|
|
queue_redraw()
|
|
|
|
|
|
func _draw() -> void:
|
|
if Global.can_draw:
|
|
Tools.draw_preview()
|