29 lines
700 B
GDScript
29 lines
700 B
GDScript
extends Node3D
|
|
|
|
@onready var die_particles = $dieParticles
|
|
@onready var die_particles_2: GPUParticles3D = $dieParticles2
|
|
@export var audio_explode : Node
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
die_particles.emitting = true
|
|
die_particles_2.emitting = true
|
|
audio_explode.play()
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func save():
|
|
var save_dict = {
|
|
"filename" : get_scene_file_path(),
|
|
"parent" : get_parent().get_path(),
|
|
"pos_x" : position.x,
|
|
"pos_y" : position.y,
|
|
"pos_z" : position.z,
|
|
"rot_x" : rotation.x,
|
|
"rot_y" : rotation.y,
|
|
"rot_z" : rotation.z,
|
|
}
|
|
return save_dict
|