This commit is contained in:
pennyrigate 2025-07-19 16:54:36 -04:00
commit 6a269eb236
97 changed files with 2137 additions and 0 deletions

137
objects/player/player.tscn Normal file
View file

@ -0,0 +1,137 @@
[gd_scene load_steps=15 format=3 uid="uid://e2tevu6gn5si"]
[ext_resource type="Script" uid="uid://cgo3kf4b37lx7" path="res://objects/player/player.gd" id="1_4flbx"]
[ext_resource type="AudioStream" uid="uid://bhy8i7yg863n3" path="res://audio/sfx/jetpack.ogg" id="2_g7ett"]
[ext_resource type="Texture2D" uid="uid://bt2xuy2ihej2q" path="res://sprites/Player/clegg_fly.png" id="2_xkryw"]
[ext_resource type="AudioStream" uid="uid://ct82ub5u2uoly" path="res://audio/sfx/se_g2.ogg" id="3_ssrue"]
[ext_resource type="Texture2D" uid="uid://bi6gfgt0b0voa" path="res://sprites/Player/clegg.png" id="4_m4kly"]
[ext_resource type="Texture2D" uid="uid://bce74ak1by42t" path="res://sprites/Player/clegg_walk1.png" id="4_xgwla"]
[ext_resource type="Texture2D" uid="uid://bvb5neqj421p" path="res://sprites/Player/clegg_walk2.png" id="5_bi5m7"]
[ext_resource type="AudioStream" uid="uid://bv6v7v5dtvoii" path="res://audio/sfx/graze.wav" id="6_ow0dq"]
[ext_resource type="PackedScene" uid="uid://dmg28km10q5ja" path="res://objects/player/jet_particles.tscn" id="9_xgwla"]
[sub_resource type="SpriteFrames" id="SpriteFrames_xgwla"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_xkryw")
}],
"loop": true,
"name": &"fly",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_m4kly")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_m4kly")
}],
"loop": true,
"name": &"new_animation",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_xgwla")
}, {
"duration": 1.0,
"texture": ExtResource("4_m4kly")
}, {
"duration": 1.0,
"texture": ExtResource("5_bi5m7")
}],
"loop": true,
"name": &"walk",
"speed": 15.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sh265"]
size = Vector2(28, 34.375)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cqmt1"]
size = Vector2(27.5, 34)
[sub_resource type="CircleShape2D" id="CircleShape2D_xkryw"]
radius = 17.0
[sub_resource type="CircleShape2D" id="CircleShape2D_xgwla"]
radius = 2.06155
[node name="Player" type="CharacterBody2D" groups=["player", "player_hitbox"]]
collision_mask = 2
script = ExtResource("1_4flbx")
[node name="ColorRect" type="ColorRect" parent="."]
visible = false
offset_left = -8.0
offset_top = -16.0
offset_right = 8.0
offset_bottom = 16.0
[node name="Sprite" type="AnimatedSprite2D" parent="."]
unique_name_in_owner = true
sprite_frames = SubResource("SpriteFrames_xgwla")
animation = &"fly"
[node name="CPUParticles2D" parent="Sprite" instance=ExtResource("9_xgwla")]
position = Vector2(-6, 17)
scale = Vector2(0.5, 0.5)
[node name="CPUParticles2D2" parent="Sprite" instance=ExtResource("9_xgwla")]
position = Vector2(2.5, 17)
scale = Vector2(0.5, 0.5)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -0.1875)
shape = SubResource("RectangleShape2D_sh265")
[node name="Collectionbox" type="Area2D" parent="." groups=["player_hitbox"]]
collision_mask = 7
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collectionbox"]
position = Vector2(0.25, 0)
shape = SubResource("RectangleShape2D_cqmt1")
[node name="JetpackSound" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true
stream = ExtResource("2_g7ett")
bus = &"Jetpack"
[node name="GrazeSound" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true
stream = ExtResource("6_ow0dq")
[node name="ShootSound" type="AudioStreamPlayer" parent="."]
unique_name_in_owner = true
stream = ExtResource("3_ssrue")
volume_db = 6.559
bus = &"SFX"
[node name="GrazeHitbox" type="Area2D" parent="."]
position = Vector2(-3, -4)
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="GrazeHitbox"]
position = Vector2(3, 4)
shape = SubResource("CircleShape2D_xkryw")
debug_color = Color(0.797602, 0.0486606, 1, 0.42)
[node name="Hurtbox" type="Area2D" parent="."]
position = Vector2(-1, -10)
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
position = Vector2(2, 11.5)
shape = SubResource("CircleShape2D_xgwla")
debug_color = Color(1, 0, 0.0917967, 0.42)
[connection signal="area_entered" from="Collectionbox" to="." method="_on_area_2d_area_entered"]
[connection signal="body_entered" from="Collectionbox" to="." method="_on_area_2d_body_entered"]
[connection signal="area_entered" from="GrazeHitbox" to="." method="_on_graze_hitbox_area_entered"]
[connection signal="area_entered" from="Hurtbox" to="." method="_on_hurtbox_area_entered"]