feat: small world and interactibles
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m25s

This commit is contained in:
2025-06-28 10:23:35 +02:00
parent 00037d0270
commit e59f0e9e6a
2769 changed files with 52148 additions and 10 deletions

View File

@ -1,10 +1,20 @@
[gd_scene load_steps=21 format=3 uid="uid://4ye80a3tugk6"]
[gd_scene load_steps=29 format=3 uid="uid://4ye80a3tugk6"]
[ext_resource type="Texture2D" uid="uid://d1booebooduen" path="res://scenes/player/assets/dino/sheets/DinoSprites - tard.png" id="1_8afob"]
[ext_resource type="Script" uid="uid://dco5ddglmk1je" path="res://scenes/player/player.gd" id="1_dovo2"]
[ext_resource type="Resource" uid="uid://brqtomhme6lci" path="res://scenes/player/move.tres" id="2_gmlin"]
[ext_resource type="Resource" uid="uid://hduu8jtu7fio" path="res://scenes/player/interact.tres" id="3_lvxji"]
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="5_qek5x"]
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="6_5gtgg"]
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="7_h17s1"]
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="8_je7p5"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_dovo2"]
radius = 5.0
height = 16.0
radius = 6.0
height = 14.0
[sub_resource type="CircleShape2D" id="CircleShape2D_qek5x"]
radius = 16.0
[sub_resource type="AtlasTexture" id="AtlasTexture_gmlin"]
atlas = ExtResource("1_8afob")
@ -149,13 +159,89 @@ animations = [{
}]
[node name="Player" type="CharacterBody2D"]
collision_layer = 3
collision_mask = 5
motion_mode = 1
script = ExtResource("1_dovo2")
move = ExtResource("2_gmlin")
interact = ExtResource("3_lvxji")
walk_speed = null
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 2)
shape = SubResource("CapsuleShape2D_dovo2")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_qek5x")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_8ydkj")
animation = &"idle"
frame_progress = 0.162357
frame_progress = 0.146964
[node name="Camera2D" type="Camera2D" parent="."]
position_smoothing_enabled = true
[node name="StateChart" type="Node" parent="."]
script = ExtResource("5_qek5x")
metadata/_custom_type_script = "uid://couw105c3bde4"
[node name="CompoundState" type="Node" parent="StateChart"]
script = ExtResource("6_5gtgg")
initial_state = NodePath("idle")
metadata/_custom_type_script = "uid://jk2jm1g6q853"
[node name="idle" type="Node" parent="StateChart/CompoundState"]
script = ExtResource("7_h17s1")
[node name="StartRun" type="Node" parent="StateChart/CompoundState/idle"]
script = ExtResource("8_je7p5")
to = NodePath("../../run")
event = &"run"
delay_in_seconds = "0.0"
[node name="idle_sneak" type="Node" parent="StateChart/CompoundState"]
script = ExtResource("7_h17s1")
[node name="StartRun" type="Node" parent="StateChart/CompoundState/idle_sneak"]
script = ExtResource("8_je7p5")
to = NodePath("../../sneak")
event = &"run"
delay_in_seconds = "0.0"
[node name="run" type="Node" parent="StateChart/CompoundState"]
script = ExtResource("7_h17s1")
[node name="StopRun" type="Node" parent="StateChart/CompoundState/run"]
script = ExtResource("8_je7p5")
to = NodePath("../../idle")
event = &"idle"
delay_in_seconds = "0.0"
[node name="ToSneak" type="Node" parent="StateChart/CompoundState/run"]
script = ExtResource("8_je7p5")
to = NodePath("../../sneak")
event = &"sneak"
delay_in_seconds = "0.0"
[node name="sneak" type="Node" parent="StateChart/CompoundState"]
script = ExtResource("7_h17s1")
[node name="ToNormal" type="Node" parent="StateChart/CompoundState/sneak"]
script = ExtResource("8_je7p5")
to = NodePath("../../run")
event = &"run"
delay_in_seconds = "0.0"
[node name="StopRun" type="Node" parent="StateChart/CompoundState/sneak"]
script = ExtResource("8_je7p5")
to = NodePath("../../idle_sneak")
event = &"idle"
delay_in_seconds = "0.0"
[connection signal="area_entered" from="Area2D" to="." method="_on_interactible_found"]
[connection signal="area_exited" from="Area2D" to="." method="_on_area_2d_area_exited"]