20 lines
417 B
GDScript
20 lines
417 B
GDScript
extends Node2D
|
|
|
|
func _ready():
|
|
if not get_tree().root.has_node("Root"):
|
|
return ;
|
|
|
|
$Cat.Init(2, 6);
|
|
$Cat.position = Vector2(1365, 620);
|
|
$Cat.Scale(0.55);
|
|
|
|
var sfxPath = "res://resources/audio/sfx/zvuk-kamina.ogg"
|
|
get_tree().root.get_node("Root").SetSFXforBGM(sfxPath)
|
|
|
|
GallerySingleton.AddBackground("Kamin");
|
|
|
|
|
|
func InitForGallery()->Array:
|
|
scale = Vector2(0.5, 0.5)
|
|
$Cat.visible = false;
|
|
return [];
|