RhythmGame/scripts/NotePainter.gd

9 lines
250 B
GDScript

extends Control
export var viewportPath := @'../NoteHandler/Viewport'
onready var viewport := get_node(viewportPath)
func _draw():
draw_texture_rect(viewport.get_texture(), Rect2(Vector2.ZERO, rect_size), false)
# texture = viewport.get_texture()