134 lines
4.2 KiB
Text
134 lines
4.2 KiB
Text
[gd_scene load_steps=12 format=3 uid="uid://snxpqx0ony7s"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_a6lhy"]
|
|
[ext_resource type="Texture2D" uid="uid://bnj38vubchr2w" path="res://textures/Virus-Player-Sheet.png" id="2_183nu"]
|
|
[ext_resource type="Texture2D" uid="uid://bd7y5w6cfi5ly" path="res://textures/Eye Lase.png" id="3_yg3ur"]
|
|
[ext_resource type="AudioStream" uid="uid://cc2cqe8owjaaa" path="res://sound/Jump5.wav" id="4_jit8y"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_31jvr"]
|
|
|
|
[sub_resource type="Animation" id="Animation_ahrep"]
|
|
resource_name = "idle"
|
|
length = 0.6
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 0), Vector2i(1, 0), Vector2i(2, 0), Vector2i(3, 0), Vector2i(4, 0), Vector2i(5, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_g8ois"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_fl3gq"]
|
|
resource_name = "moving_right"
|
|
length = 0.6
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 1), Vector2i(1, 1), Vector2i(2, 1), Vector2i(3, 1), Vector2i(4, 1), Vector2i(5, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_g0oas"]
|
|
resource_name = "moving_left"
|
|
length = 0.6
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 2), Vector2i(1, 2), Vector2i(2, 2), Vector2i(3, 2), Vector2i(4, 2), Vector2i(5, 2)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hrlyn"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_g8ois"),
|
|
"idle": SubResource("Animation_ahrep"),
|
|
"moving_left": SubResource("Animation_g0oas"),
|
|
"moving_right": SubResource("Animation_fl3gq")
|
|
}
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vxfel"]
|
|
radius = 12.0
|
|
|
|
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("sfx", "sfx_large")]
|
|
collision_layer = 4
|
|
collision_mask = 51
|
|
script = ExtResource("1_a6lhy")
|
|
sfx = NodePath("AudioStreamPlayer2D")
|
|
sfx_large = NodePath("AudioStreamPlayer2D2")
|
|
speed = 250
|
|
jump_strength = 600
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_31jvr")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_183nu")
|
|
hframes = 6
|
|
vframes = 3
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_hrlyn")
|
|
}
|
|
|
|
[node name="Hurtbox" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
|
shape = SubResource("CircleShape2D_vxfel")
|
|
|
|
[node name="data_link" type="Line2D" parent="."]
|
|
visible = false
|
|
texture_repeat = 2
|
|
points = PackedVector2Array(0, 0, 0, 0)
|
|
default_color = Color(0.298039, 1, 0.141176, 1)
|
|
texture = ExtResource("3_yg3ur")
|
|
texture_mode = 1
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("4_jit8y")
|
|
volume_db = -12.876
|
|
pitch_scale = 0.92
|
|
|
|
[node name="AudioStreamPlayer2D2" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("4_jit8y")
|
|
volume_db = -12.876
|
|
pitch_scale = 0.51
|
|
|
|
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]
|