1
0
This repository has been archived on 2026-07-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-07-26 18:54:03 +02:00

176 lines
5.8 KiB
Plaintext

[gd_scene format=3 uid="uid://bwlwbahelcq52"]
[ext_resource type="Script" uid="uid://dbofvk7fso8po" path="res://assets/scripts/player.gd" id="1_rwm0n"]
[ext_resource type="Texture2D" uid="uid://cs35h4es4e6p" path="res://assets/images/gun1.png" id="2_s027a"]
[ext_resource type="Texture2D" uid="uid://c3o7a2w3qyl4o" path="res://assets/images/tile.png" id="3_14505"]
[ext_resource type="AudioStream" uid="uid://de4sr2qpjr1w2" path="res://assets/sounds/shoot.wav" id="4_4wcc8"]
[ext_resource type="AudioStream" uid="uid://5b7eonllfufp" path="res://assets/sounds/hitHurt.wav" id="5_8sknh"]
[ext_resource type="Script" uid="uid://ca8an62xpl0e4" path="res://assets/scripts/disposableParticles.gd" id="6_0gfpk"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_0gfpk"]
light_mode = 1
[sub_resource type="BoxMesh" id="BoxMesh_xyegg"]
size = Vector3(31, 31, 1)
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_14505"]
light_mode = 1
[sub_resource type="Animation" id="Animation_s027a"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gun:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_14505"]
resource_name = "shoot"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gun:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.4),
"transitions": PackedFloat32Array(0.13869628, 2.0000021, 0.7320437),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.2, 0.5), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_4wcc8"]
resource_name = "shoot_flip"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gun:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.4),
"transitions": PackedFloat32Array(0.13869628, 2.0000021, 0.7320437),
"update": 0,
"values": [Vector2(1, -1), Vector2(1.2, -0.5), Vector2(1, -1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4wcc8"]
_data = {
&"RESET": SubResource("Animation_s027a"),
&"shoot": SubResource("Animation_14505"),
&"shoot_flip": SubResource("Animation_4wcc8")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xyegg"]
size = Vector2(31, 31)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pymst"]
size = Vector2(24, 24)
[sub_resource type="Curve" id="Curve_14505"]
_data = [Vector2(0.66548043, 0.9809523), 0.0, 0.0, 0, 0, Vector2(1, 0.009523869), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Gradient" id="Gradient_4wcc8"]
offsets = PackedFloat32Array(0.8745098, 1)
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
[node name="Player" type="CharacterBody2D" unique_id=1190467346]
script = ExtResource("1_rwm0n")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1343075480]
visible = false
offset_left = -16.0
offset_top = -16.0
offset_right = 15.0
offset_bottom = 15.0
color = Color(1, 0, 0, 1)
[node name="Polygon2D" type="Polygon2D" parent="." unique_id=982630085]
material = SubResource("CanvasItemMaterial_0gfpk")
position = Vector2(-0.5, -0.5)
color = Color(1, 0, 0, 1)
polygon = PackedVector2Array(-15, -15, 16, -15, 16, 16, -15, 16)
[node name="MeshInstance2D" type="MeshInstance2D" parent="." unique_id=1817854395]
modulate = Color(0, 0, 0, 0.2509804)
mesh = SubResource("BoxMesh_xyegg")
[node name="Camera2D" type="Camera2D" parent="." unique_id=641690279]
position_smoothing_enabled = true
[node name="gun" type="Node2D" parent="." unique_id=1991256638]
[node name="sprite" type="Sprite2D" parent="gun" unique_id=404962107]
material = SubResource("CanvasItemMaterial_14505")
scale = Vector2(2, 2)
texture = ExtResource("2_s027a")
region_enabled = true
region_rect = Rect2(64, 80, 32, 16)
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=993544515]
libraries/ = SubResource("AnimationLibrary_4wcc8")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=266552910]
visible = false
shape = SubResource("RectangleShape2D_xyegg")
[node name="hitbox" type="Area2D" parent="." unique_id=1769955622 groups=["playerHitbox"]]
visible = false
collision_layer = 2
collision_mask = 2
metadata/playerHitbox = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox" unique_id=929455950]
shape = SubResource("RectangleShape2D_pymst")
debug_color = Color(0.37601954, 0.6145431, 0, 0.41960785)
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=1388686543]
scale = Vector2(50, 50)
shadow_enabled = true
shadow_color = Color(0, 0, 0, 1)
texture = ExtResource("3_14505")
[node name="Timer" type="Timer" parent="." unique_id=1120887048]
wait_time = 0.05
autostart = true
ignore_time_scale = true
[node name="explode" type="CPUParticles2D" parent="." unique_id=1217002006]
z_index = -3
emitting = false
amount = 20
lifetime = 10.0
one_shot = true
explosiveness = 1.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 20.0
initial_velocity_max = 50.0
linear_accel_min = -25.0
linear_accel_max = -25.0
scale_amount_min = 8.0
scale_amount_max = 16.0
scale_amount_curve = SubResource("Curve_14505")
color = Color(1, 0, 0, 1)
color_ramp = SubResource("Gradient_4wcc8")
script = ExtResource("6_0gfpk")
[node name="shootsfx" type="AudioStreamPlayer2D" parent="." unique_id=853884099]
stream = ExtResource("4_4wcc8")
[node name="hitsfx" type="AudioStreamPlayer2D" parent="." unique_id=640571283]
stream = ExtResource("5_8sknh")
[connection signal="area_entered" from="hitbox" to="." method="_on_hitbox_area_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_framesave_timeout"]