This commit is contained in:
MarcEricMartel
2023-01-15 14:33:01 -05:00
parent 8efed5d4d6
commit 96303b6434
5 changed files with 26 additions and 35 deletions

View File

@@ -1,24 +1,17 @@
[gd_scene load_steps=5 format=3 uid="uid://xev8p1td1icx"]
[gd_scene load_steps=10 format=3 uid="uid://xev8p1td1icx"]
[ext_resource type="Script" path="res://Player/player.gd" id="1_mbyc2"]
[ext_resource type="Texture2D" uid="uid://wkeakqjvu3gg" path="res://Sprites/placeholder_player.png" id="2_bqbmq"]
[ext_resource type="Texture2D" uid="uid://d2nqjxofehkum" path="res://Images/BladderHollow.png" id="3_nm4h4"]
[ext_resource type="Shader" path="res://hud.gdshader" id="4_4u6cb"]
[ext_resource type="Texture2D" uid="uid://b25de1d0yyuji" path="res://Images/Bladder.png" id="5_pcbeg"]
[ext_resource type="Script" path="res://Bladder.gd" id="6_8x3rf"]
[sub_resource type="SpriteFrames" id="SpriteFrames_mqbrd"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_bqbmq")
}, {
"duration": 1.0,
"texture": null
}],
"loop": true,
"name": &"damage",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_bqbmq")
}],
"loop": true,
"name": &"default",
@@ -28,6 +21,10 @@ animations = [{
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ng5bv"]
size = Vector2(40, 64)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_g8k2d"]
shader = ExtResource("4_4u6cb")
shader_parameter/fill = 0.0
[node name="Player" type="CharacterBody2D"]
collision_layer = 3
collision_mask = 3
@@ -51,4 +48,16 @@ points = PackedVector2Array(0, 0, 2000, 0)
width = 5.0
default_color = Color(1, 0, 0, 0.392157)
[node name="Bladder" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_g8k2d")
position = Vector2(-847, -443)
scale = Vector2(2, 2)
texture = ExtResource("5_pcbeg")
script = ExtResource("6_8x3rf")
[node name="BladderHollow" type="Sprite2D" parent="."]
position = Vector2(-847, -443)
scale = Vector2(2, 2)
texture = ExtResource("3_nm4h4")
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]