This commit is contained in:
Ultrablob 2024-05-09 14:23:34 -04:00
parent f4dc1a79fd
commit f92b3a6f75
16 changed files with 217 additions and 39 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=30 format=3 uid="uid://c4ii0wvj20qe4"]
[gd_scene load_steps=31 format=3 uid="uid://c4ii0wvj20qe4"]
[ext_resource type="PackedScene" uid="uid://cgcjicue76wsr" path="res://player.tscn" id="1_l701f"]
[ext_resource type="Script" path="res://player-iamond.gd" id="2_5t06e"]
@ -176,6 +176,9 @@ animations = [{
[sub_resource type="Gradient" id="Gradient_urfxb"]
colors = PackedColorArray(1, 0.9, 0, 1, 1, 0.9, 0, 0)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lcrvh"]
height = 52.0
[node name="Player" instance=ExtResource("1_l701f")]
linear_damp = 2.0
script = ExtResource("2_5t06e")
@ -183,17 +186,19 @@ script = ExtResource("2_5t06e")
[node name="Sprite" type="AnimatedSprite2D" parent="." index="1"]
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_7i6wq")
animation = &"idle"
animation = &"jump"
autoplay = "idle"
speed_scale = -1.0
[node name="Hitbox" type="CollisionPolygon2D" parent="." index="2"]
position = Vector2(12, 0)
polygon = PackedVector2Array(33, 0, 5, -14, -21, 0, 5, 14)
[node name="CPUParticles2D" type="CPUParticles2D" parent="." index="3"]
position = Vector2(-23, 0)
[node name="CPUParticles2D" type="CPUParticles2D" parent="." index="2"]
z_index = -2
position = Vector2(-9, 0)
amount = 80
texture = ExtResource("5_fmfr6")
gravity = Vector2(2.08165e-12, 2.08165e-12)
color_ramp = SubResource("Gradient_urfxb")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"]
position = Vector2(19, 0)
rotation = -1.5708
shape = SubResource("CapsuleShape2D_lcrvh")