mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 21:43:47 +00:00
Crosshair
This commit is contained in:
parent
e5a60a6ccd
commit
fe552608ee
13 changed files with 264 additions and 33 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=49 format=3 uid="uid://rimplblbptcd"]
|
||||
[gd_scene load_steps=63 format=3 uid="uid://rimplblbptcd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://88smibkin17p" path="res://Scripts/Components/FSM/3DPlayer/IsoPlayerFSMProxy.cs" id="1_cc7e7"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddwhrlrgj6i00" path="res://Sprites/Actors/Cirno.png" id="1_vex34"]
|
||||
|
|
@ -28,6 +28,12 @@
|
|||
[ext_resource type="Script" uid="uid://hdw15b6fi7de" path="res://Scripts/Components/Actors/3D/PlayerDamageReceiver3D.cs" id="26_ok6gd"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="27_5v3dv"]
|
||||
[ext_resource type="Script" uid="uid://cqwvssstkrdmw" path="res://Scripts/Components/Actors/ActorResourceProvider.cs" id="28_b3jpo"]
|
||||
[ext_resource type="Script" uid="uid://b2cqsoywem26t" path="res://Scripts/Components/Actors/3D/PlayerHitboxSpriteProvider3D.cs" id="29_tmq7e"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwjrdlnysft15" path="res://Sprites/Actors/Focus_Circle.png" id="30_rikg1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bc4tp44e00g0d" path="res://Sprites/Actors/Focus_Square.png" id="31_iw7um"]
|
||||
[ext_resource type="Texture2D" uid="uid://bf37ce6jskdel" path="res://Sprites/SmallHitbox.png" id="32_chmen"]
|
||||
[ext_resource type="Script" uid="uid://byiv30s1ahdyh" path="res://Scripts/Components/Actors/3D/PlayerCrosshairModule3D.cs" id="33_iw7um"]
|
||||
[ext_resource type="Texture2D" uid="uid://cf2855sd3hqty" path="res://Sprites/Actors/Aiming_Reticule_Small.png" id="34_chmen"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_fg04g"]
|
||||
radius = 0.349554
|
||||
|
|
@ -132,6 +138,66 @@ metadata/_custom_type_script = "uid://ddsqqfx1usc3j"
|
|||
[sub_resource type="SphereShape3D" id="SphereShape3D_p313o"]
|
||||
radius = 0.0913725
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n5ijo"]
|
||||
atlas = ExtResource("30_rikg1")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_h1heu"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n5ijo")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vwjki"]
|
||||
atlas = ExtResource("31_iw7um")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_nwocn"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vwjki")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_igu66"]
|
||||
atlas = ExtResource("32_chmen")
|
||||
region = Rect2(0, 0, 4, 4)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_nk07c"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_igu66")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_12erk"]
|
||||
atlas = ExtResource("34_chmen")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_gndug"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_12erk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="IsoPlayerFsm" type="CharacterBody3D" node_paths=PackedStringArray("PlayerFSM")]
|
||||
collision_layer = 2
|
||||
collision_mask = 17
|
||||
|
|
@ -150,7 +216,7 @@ _inputProvider = NodePath("../../InputProvider")
|
|||
AnimationProvider = NodePath("../../AnimationProvider")
|
||||
Storage = NodePath("../../Storage")
|
||||
DamageReceiver = NodePath("../../DamageReceiver")
|
||||
_moduleNodes = [NodePath("../../InputProvider"), NodePath("../../MovementModule"), NodePath("../../ShadowModule"), NodePath("../../InteractionController"), NodePath("../../ActivationProvider"), NodePath("../../WeaponModule"), NodePath("../../AcidDeathModule")]
|
||||
_moduleNodes = [NodePath("../../InputProvider"), NodePath("../../MovementModule"), NodePath("../../ShadowModule"), NodePath("../../InteractionController"), NodePath("../../ActivationProvider"), NodePath("../../WeaponModule"), NodePath("../../AcidDeathModule"), NodePath("../../CrosshairModule")]
|
||||
|
||||
[node name="Dead" type="Node" parent="StateMachine"]
|
||||
script = ExtResource("5_ok250")
|
||||
|
|
@ -167,12 +233,12 @@ pixel_size = 0.05
|
|||
texture_filter = 0
|
||||
sprite_frames = ExtResource("6_yq7h2")
|
||||
animation = &"idle"
|
||||
frame_progress = 0.1756
|
||||
frame_progress = 0.755868
|
||||
script = ExtResource("9_yarib")
|
||||
|
||||
[node name="Legs" type="AnimatedSprite3D" parent="AnimationProvider"]
|
||||
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 0, 0)
|
||||
pixel_size = 0.05
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
sprite_frames = ExtResource("7_l4f8l")
|
||||
animation = &"idle"
|
||||
|
|
@ -192,14 +258,15 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.101789, 0)
|
|||
visible = false
|
||||
shape = SubResource("CapsuleShape3D_fg04g")
|
||||
|
||||
[node name="MovementModule" type="Node" parent="." node_paths=PackedStringArray("PlayerStorage", "_inputProvider")]
|
||||
[node name="MovementModule" type="Node" parent="." node_paths=PackedStringArray("PlayerStorage", "_inputProvider", "HitboxSpriteProvider")]
|
||||
script = ExtResource("5_fg04g")
|
||||
PlayerStorage = NodePath("../Storage")
|
||||
_inputProvider = NodePath("../InputProvider")
|
||||
Speed = 6
|
||||
StrafeSpeed = 4
|
||||
HitboxSpriteProvider = NodePath("../StrafeSpriteProvider")
|
||||
Speed = 5
|
||||
StrafeSpeed = 2
|
||||
Acceleration = 150.0
|
||||
Deceleration = 25.0
|
||||
Deceleration = 20.0
|
||||
Gravity = -50.0
|
||||
FallSpeed = 100.0
|
||||
|
||||
|
|
@ -309,7 +376,52 @@ ResourceName = "Shield"
|
|||
_maxResource = 32.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape3D" parent="DamageReceiver"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00122255, -0.00129807, 0.000553966)
|
||||
shape = SubResource("SphereShape3D_p313o")
|
||||
|
||||
[node name="StrafeSpriteProvider" type="Node3D" parent="." node_paths=PackedStringArray("Hitbox", "Circle", "Square")]
|
||||
script = ExtResource("29_tmq7e")
|
||||
Hitbox = NodePath("Hitbox")
|
||||
Circle = NodePath("MagicCircle")
|
||||
Square = NodePath("MagicSquare")
|
||||
RotationSpeed = 1.0
|
||||
|
||||
[node name="MagicCircle" type="AnimatedSprite3D" parent="StrafeSpriteProvider"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.3, 0)
|
||||
modulate = Color(1, 1, 1, 0.501961)
|
||||
pixel_size = 0.05
|
||||
texture_filter = 0
|
||||
render_priority = -1
|
||||
sprite_frames = SubResource("SpriteFrames_h1heu")
|
||||
|
||||
[node name="MagicSquare" type="AnimatedSprite3D" parent="StrafeSpriteProvider"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.3, 0)
|
||||
modulate = Color(1, 1, 1, 0.501961)
|
||||
pixel_size = 0.05
|
||||
texture_filter = 0
|
||||
render_priority = -1
|
||||
sprite_frames = SubResource("SpriteFrames_nwocn")
|
||||
|
||||
[node name="Hitbox" type="AnimatedSprite3D" parent="StrafeSpriteProvider"]
|
||||
pixel_size = 0.05
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
render_priority = 1
|
||||
sprite_frames = SubResource("SpriteFrames_nk07c")
|
||||
|
||||
[node name="CrosshairModule" type="Node3D" parent="." node_paths=PackedStringArray("Storage", "AnimatedSprite")]
|
||||
script = ExtResource("33_iw7um")
|
||||
Storage = NodePath("../Storage")
|
||||
AnimatedSprite = NodePath("Crosshair")
|
||||
CrosshairDistance = 2.0
|
||||
|
||||
[node name="Crosshair" type="AnimatedSprite3D" parent="CrosshairModule"]
|
||||
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 0, 0)
|
||||
pixel_size = 0.05
|
||||
no_depth_test = true
|
||||
texture_filter = 0
|
||||
render_priority = 1
|
||||
sprite_frames = SubResource("SpriteFrames_gndug")
|
||||
|
||||
[connection signal="area_entered" from="AcidDetector" to="AcidDeathModule" method="OnAcidCollision"]
|
||||
[connection signal="area_entered" from="DamageReceiver" to="DamageReceiver" method="_on_damage_hitbox_area_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue