mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 03:55:53 +00:00
health station
This commit is contained in:
parent
cc1fa2cdc6
commit
f7cbd7d171
8 changed files with 268 additions and 11 deletions
81
Scenes/Actors/HealthStation.tscn
Normal file
81
Scenes/Actors/HealthStation.tscn
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://c8lgk4wnyi1e6"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/HealthStation.cs" id="1_bvrbs"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://w4jlaryen3we" path="res://Resources/Sprites/teleporter.tres" id="2_vd40s"]
|
||||
[ext_resource type="Texture2D" uid="uid://doy352j5hb51l" path="res://Sprites/Actors/HealthStation.png" id="3_761ef"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_kwj8m"]
|
||||
radius = 4.12311
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dsfb4"]
|
||||
atlas = ExtResource("3_761ef")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mwkkm"]
|
||||
atlas = ExtResource("3_761ef")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bu57s"]
|
||||
atlas = ExtResource("3_761ef")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_nmfjk"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dsfb4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mwkkm")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Active",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bu57s")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_we5sc"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 2
|
||||
emission_sphere_radius = 8.85
|
||||
orbit_velocity_min = -0.2
|
||||
orbit_velocity_max = 0.2
|
||||
gravity = Vector3(0, -98, 0)
|
||||
color = Color(0.819608, 0, 0, 1)
|
||||
|
||||
[node name="HealthStation" type="Area2D"]
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_bvrbs")
|
||||
IsEnabled = true
|
||||
HealthPerSecond = 5.0
|
||||
ShieldPerSecond = 5.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_kwj8m")
|
||||
|
||||
[node name="ParticleSprite" type="AnimatedSprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0, -9)
|
||||
sprite_frames = ExtResource("2_vd40s")
|
||||
animation = &"Teleporting"
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_nmfjk")
|
||||
animation = &"Default"
|
||||
|
||||
[node name="Particles" type="GPUParticles2D" parent="."]
|
||||
z_index = 2
|
||||
emitting = false
|
||||
amount = 50
|
||||
process_material = SubResource("ParticleProcessMaterial_we5sc")
|
||||
lifetime = 0.8
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
|
|
@ -29,15 +29,16 @@ position = Vector2(0, -9)
|
|||
sprite_frames = ExtResource("2_k58t7")
|
||||
animation = &"Teleporting"
|
||||
|
||||
[node name="Particles" type="GPUParticles2D" parent="."]
|
||||
emitting = false
|
||||
amount = 50
|
||||
process_material = SubResource("ParticleProcessMaterial_we5sc")
|
||||
lifetime = 0.8
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = ExtResource("2_k58t7")
|
||||
animation = &"Default"
|
||||
frame_progress = 0.462812
|
||||
|
||||
[node name="Particles" type="GPUParticles2D" parent="."]
|
||||
z_index = 2
|
||||
emitting = false
|
||||
amount = 50
|
||||
process_material = SubResource("ParticleProcessMaterial_we5sc")
|
||||
lifetime = 0.8
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue