mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:55:35 +00:00
246 lines
7.6 KiB
Text
246 lines
7.6 KiB
Text
[gd_scene load_steps=34 format=3 uid="uid://bghghp5ep4w2j"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/PlayerMovement.cs" id="1_m27vu"]
|
|
[ext_resource type="Texture2D" uid="uid://la06powu57hu" path="res://Sprites/Cirno_Big.png" id="2_bwf6x"]
|
|
[ext_resource type="PackedScene" uid="uid://b1qnfiuokpvsr" path="res://Scenes/Weapons/bullet.tscn" id="2_ov36d"]
|
|
[ext_resource type="PackedScene" uid="uid://chkpk7erlqajg" path="res://Scenes/Selector.tscn" id="3_8wt6s"]
|
|
[ext_resource type="Texture2D" uid="uid://b2v6j7lsyltrc" path="res://Sprites/Actors/CirnoWings.png" id="3_ul15q"]
|
|
[ext_resource type="Script" path="res://addons/smoothing/smoothing_2d.gd" id="4_j4xhu"]
|
|
[ext_resource type="Texture2D" uid="uid://ddwhrlrgj6i00" path="res://Sprites/Actors/Cirno.png" id="5_hq878"]
|
|
[ext_resource type="PackedScene" uid="uid://cfb3nsay84xdb" path="res://Scenes/Weapons/crosshair.tscn" id="6_l43rf"]
|
|
[ext_resource type="Texture2D" uid="uid://bf37ce6jskdel" path="res://Sprites/SmallHitbox.png" id="7_msn8i"]
|
|
[ext_resource type="Script" path="res://Scenes/InteractionController.cs" id="7_uvgjg"]
|
|
[ext_resource type="Texture2D" uid="uid://bwjrdlnysft15" path="res://Sprites/Actors/Focus_Circle.png" id="8_1og8b"]
|
|
[ext_resource type="Resource" uid="uid://b8apu0l5fm4k" path="res://Resources/Weapons/IcicleGun.tres" id="9_84o8f"]
|
|
[ext_resource type="PackedScene" uid="uid://crry0rgk7a8sm" path="res://Scenes/Weapons/BaseWeapon.tscn" id="9_wblq0"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ai4rh"]
|
|
size = Vector2(6, 6)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_omx2u"]
|
|
atlas = ExtResource("2_bwf6x")
|
|
region = Rect2(0, 0, 8, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6tpxx"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wp7gh"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ke1tg"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t8hpb"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(32, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qarhr"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(16, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3cgoj"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(0, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3o5ec"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(32, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mcevb"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(16, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6voax"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(0, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_s2loq"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(32, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a8lgq"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(16, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_sv6wb"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(0, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_taqav"]
|
|
atlas = ExtResource("5_hq878")
|
|
region = Rect2(32, 16, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_q0rt3"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6tpxx")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wp7gh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ke1tg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t8hpb")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_down",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qarhr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3cgoj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_3o5ec")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_left",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mcevb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6voax")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_s2loq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_right",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_a8lgq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_sv6wb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_taqav")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_up",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lsyrf"]
|
|
atlas = ExtResource("8_1og8b")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_27k5e"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lsyrf")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_oevaq"]
|
|
radius = 17.2627
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_e6woi"]
|
|
radius = 1.0
|
|
|
|
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle", "HitboxSprite") groups=["Destroyable", "player"]]
|
|
y_sort_enabled = true
|
|
collision_layer = 2
|
|
collision_mask = 99
|
|
script = ExtResource("1_m27vu")
|
|
Speed = 45
|
|
StrafeSpeed = 35
|
|
CrosshairDistance = 35.0
|
|
SelectorScene = ExtResource("3_8wt6s")
|
|
GameOverScene = "res://Scenes/GameOver.tscn"
|
|
WingsSprite = ExtResource("3_ul15q")
|
|
Muzzle = NodePath("Muzzle")
|
|
HitboxSprite = NodePath("Smoothing2D/HitboxSprite")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 1)
|
|
shape = SubResource("RectangleShape2D_ai4rh")
|
|
|
|
[node name="Muzzle" type="Marker2D" parent="."]
|
|
position = Vector2(-1, 0)
|
|
|
|
[node name="Node2D" type="Node2D" parent="."]
|
|
|
|
[node name="Smoothing2D" type="Node2D" parent="."]
|
|
script = ExtResource("4_j4xhu")
|
|
flags = 55
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Smoothing2D"]
|
|
visible = false
|
|
scale = Vector2(2.5, 1.75)
|
|
texture = SubResource("AtlasTexture_omx2u")
|
|
hframes = 3
|
|
vframes = 4
|
|
frame = 1
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Smoothing2D" groups=["player_sprite"]]
|
|
y_sort_enabled = true
|
|
sprite_frames = SubResource("SpriteFrames_q0rt3")
|
|
animation = &"walk_up"
|
|
frame = 1
|
|
frame_progress = 0.984651
|
|
|
|
[node name="Crosshair" parent="Smoothing2D" instance=ExtResource("6_l43rf")]
|
|
z_index = 100
|
|
|
|
[node name="HitboxSprite" type="Sprite2D" parent="Smoothing2D"]
|
|
z_index = 2
|
|
texture = ExtResource("7_msn8i")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Smoothing2D/HitboxSprite"]
|
|
self_modulate = Color(1, 1, 1, 0.423529)
|
|
show_behind_parent = true
|
|
sprite_frames = SubResource("SpriteFrames_27k5e")
|
|
|
|
[node name="InteractionController" type="Area2D" parent="."]
|
|
visible = false
|
|
collision_layer = 2
|
|
collision_mask = 4
|
|
script = ExtResource("7_uvgjg")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionController"]
|
|
shape = SubResource("CircleShape2D_oevaq")
|
|
|
|
[node name="ShootTimer" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[node name="DamageHitBox" type="Area2D" parent="."]
|
|
collision_layer = 2
|
|
collision_mask = 128
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="DamageHitBox"]
|
|
shape = SubResource("CircleShape2D_e6woi")
|
|
debug_color = Color(1, 0.00817797, 0.0443347, 0.42)
|
|
|
|
[node name="Weapon" parent="." node_paths=PackedStringArray("Muzzle") instance=ExtResource("9_wblq0")]
|
|
WeaponData = ExtResource("9_84o8f")
|
|
BulletScene = ExtResource("2_ov36d")
|
|
Muzzle = NodePath("../Muzzle")
|
|
|
|
[connection signal="area_entered" from="InteractionController" to="." method="_on_interaction_controller_area_entered"]
|
|
[connection signal="area_exited" from="InteractionController" to="." method="_on_interaction_controller_area_exited"]
|
|
[connection signal="area_entered" from="DamageHitBox" to="." method="_on_damage_hit_box_area_entered"]
|