48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://dhhnr3xkxbxlu"]
|
|
|
|
[ext_resource type="Script" uid="uid://b6lfgkrbmr8ee" path="res://player.gd" id="1_4flbx"]
|
|
[ext_resource type="AudioStream" uid="uid://b4g7622b8mxeg" path="res://assets/sfx/damage_taken.wav" id="2_i3pqv"]
|
|
[ext_resource type="Texture2D" uid="uid://dcvpult8xfit6" path="res://assets/icons/Nortoff_logo.png" id="2_onrkg"]
|
|
[ext_resource type="Texture2D" uid="uid://c45wkn2k85clo" path="res://assets/animations/Shield_animations/Shield up.png" id="4_hqtel"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_onrkg"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_onrkg")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_i3pqv"]
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_layer = 31
|
|
collision_mask = 28
|
|
motion_mode = 1
|
|
script = ExtResource("1_4flbx")
|
|
metadata/_edit_group_ = true
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="HitSFX" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("2_i3pqv")
|
|
|
|
[node name="PlayerSprite" type="AnimatedSprite2D" parent="."]
|
|
unique_name_in_owner = true
|
|
scale = Vector2(0.1, 0.1)
|
|
sprite_frames = SubResource("SpriteFrames_onrkg")
|
|
|
|
[node name="Shield" type="Sprite2D" parent="."]
|
|
scale = Vector2(0.3, 0.3)
|
|
texture = ExtResource("4_hqtel")
|
|
|
|
[node name="Hurtbox" type="CollisionShape2D" parent="."]
|
|
scale = Vector2(2.5, 2.5)
|
|
shape = SubResource("CircleShape2D_i3pqv")
|
|
|
|
[node name="PlayerCamera" type="Camera2D" parent="."]
|
|
unique_name_in_owner = true
|
|
position_smoothing_enabled = true
|