Refactor background and starry sky layer scripts; move to new directory structure

This commit is contained in:
Kirill
2026-08-20 21:19:47 +03:00
parent b2a18c9c41
commit 0db24fec60
6 changed files with 3 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
class_name StarrySkyLayer extends Parallax2D
var Background_Image_Size: Vector2 = Vector2.ZERO
var Stars: Array = []
const BACKGROUND_COLOR: Color = Color.TRANSPARENT
func _draw():
draw_rect(Rect2(Vector2.ZERO, Background_Image_Size), BACKGROUND_COLOR)
for star in Stars:
draw_circle(star.coords, 2, star.color)