Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
26
scripts/backround_scenes_scripts/Death_Car.gd
Normal file
26
scripts/backround_scenes_scripts/Death_Car.gd
Normal file
|
@ -0,0 +1,26 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
func _ready():
|
||||
if not get_tree().root.has_node("Root"):
|
||||
return ;
|
||||
|
||||
GallerySingleton.AddImage("Death_Car");
|
||||
|
||||
var sfxPath = "res://resources/audio/sfx/Rain Loop.ogg"
|
||||
get_tree().root.get_node("Root").SetSFXforBGM(sfxPath)
|
||||
|
||||
var dialogicNode = get_parent().get_parent().get_node("Game").get_child(0).get_child(0)
|
||||
dialogicNode.connect("dialogic_signal", self, "_car_listener")
|
||||
|
||||
func _car_listener(string):
|
||||
match string:
|
||||
"headlights_off":
|
||||
$lights.visible = false
|
||||
|
||||
func InitForGallery()->Array:
|
||||
scale = Vector2(0.5, 0.5)
|
||||
return [];
|
||||
|
||||
func SetSettings(_setting):
|
||||
pass;
|
Loading…
Add table
Add a link
Reference in a new issue