GrappleTest/Player/BasicCharacter/Character.tscn

53 lines
2.4 KiB
Text
Raw Permalink Normal View History

2024-03-17 21:56:16 -05:00
[gd_scene load_steps=10 format=3 uid="uid://cqcjan67wgkc1"]
2024-02-22 00:10:13 -06:00
[ext_resource type="Script" path="res://Player/BasicCharacter/CharacterController.gd" id="1_c5ycp"]
2024-03-17 21:56:16 -05:00
[ext_resource type="Script" path="res://Player/BasicCharacter/SoundScript.gd" id="3_ursor"]
[ext_resource type="AudioStream" uid="uid://d1rabaeyx578u" path="res://Player/BasicCharacter/Sounds/WallSlide/WallSlide.wav" id="4_s3e0l"]
[ext_resource type="Script" path="res://Player/BasicCharacter/Sounds/WallSlide/WallslideSound.gd" id="5_rp7we"]
[ext_resource type="AudioStream" uid="uid://d2hkg80n611cw" path="res://Player/BasicCharacter/Sounds/Landed.wav" id="6_7h6ch"]
[ext_resource type="AudioStream" uid="uid://ditim46yxen6i" path="res://Player/BasicCharacter/Sounds/SquishSound.wav" id="7_mp1ed"]
[ext_resource type="PackedScene" uid="uid://bl4g0ao3b8b6p" path="res://Player/BasicCharacter/sprite.tscn" id="8_pl8jo"]
2024-02-22 00:10:13 -06:00
2024-03-17 21:56:16 -05:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_67e7r"]
size = Vector2(16, 16)
2024-02-24 12:12:57 -06:00
2024-03-13 16:15:55 -05:00
[sub_resource type="CircleShape2D" id="CircleShape2D_mnfw7"]
radius = 4.0
2024-02-22 00:10:13 -06:00
[node name="Character" type="CharacterBody2D"]
2024-03-13 16:15:55 -05:00
collision_layer = 3
2024-02-26 08:28:11 -06:00
floor_stop_on_slope = false
2024-02-24 12:12:57 -06:00
floor_snap_length = 3.0
2024-03-13 16:15:55 -05:00
platform_on_leave = 2
2024-02-22 00:10:13 -06:00
script = ExtResource("1_c5ycp")
2024-03-13 16:15:55 -05:00
savedInputsPath = "res://Player/Ghosts/GhostData/testGhostRecording.res"
2024-02-22 00:10:13 -06:00
2024-03-13 16:15:55 -05:00
[node name="CircleCollider" type="CollisionShape2D" parent="."]
2024-03-17 21:56:16 -05:00
shape = SubResource("RectangleShape2D_67e7r")
2024-02-24 12:12:57 -06:00
2024-03-13 16:15:55 -05:00
[node name="SquishDetection" type="Area2D" parent="."]
2024-02-26 08:28:11 -06:00
2024-03-13 16:15:55 -05:00
[node name="CircleCollider" type="CollisionShape2D" parent="SquishDetection"]
shape = SubResource("CircleShape2D_mnfw7")
2024-02-26 08:28:11 -06:00
2024-03-17 21:56:16 -05:00
[node name="Sounds" type="Node2D" parent="."]
script = ExtResource("3_ursor")
[node name="WallslideSound" type="AudioStreamPlayer2D" parent="Sounds"]
stream = ExtResource("4_s3e0l")
volume_db = -10.0
script = ExtResource("5_rp7we")
[node name="Landing" type="AudioStreamPlayer2D" parent="Sounds"]
stream = ExtResource("6_7h6ch")
[node name="Squish" type="AudioStreamPlayer2D" parent="Sounds"]
stream = ExtResource("7_mp1ed")
[node name="Sprite" parent="." instance=ExtResource("8_pl8jo")]
self_modulate = Color(1, 0, 0, 1)
[connection signal="Jumped" from="." to="Sounds" method="_on_character_jumped"]
2024-03-13 16:15:55 -05:00
[connection signal="body_shape_entered" from="SquishDetection" to="." method="_on_squish_detection_body_shape_entered"]
[connection signal="body_shape_exited" from="SquishDetection" to="." method="_on_squish_detection_body_shape_exited"]