From f5ef92ce98cf51c96b990b44ede8842fdaa2e85b Mon Sep 17 00:00:00 2001 From: Ruslan Ignatov Date: Tue, 27 Jan 2026 20:51:40 +0300 Subject: [PATCH] Updated for Godot 4.6. Fixed bluring on hight refresh rate --- game/characters/abstract_enemy.tscn | 32 ++++++++++++++--------------- game/characters/player.tscn | 19 +++++++++-------- project.godot | 6 +++++- themes/menu.tres | 2 +- 4 files changed, 32 insertions(+), 27 deletions(-) diff --git a/game/characters/abstract_enemy.tscn b/game/characters/abstract_enemy.tscn index 7f6f5e3..20a91f2 100644 --- a/game/characters/abstract_enemy.tscn +++ b/game/characters/abstract_enemy.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=6 format=3 uid="uid://bx0luh4vdob3q"] +[gd_scene format=3 uid="uid://bx0luh4vdob3q"] [ext_resource type="Script" uid="uid://but5aeh7y1s0f" path="res://game/characters/abstract_enemy.gd" id="1_2wrno"] [ext_resource type="PackedScene" uid="uid://dtxiercm8dsfm" path="res://game/characters/enemy_sprite.tscn" id="2_tjvyk"] @@ -11,60 +11,60 @@ height = 28.0 [sub_resource type="RectangleShape2D" id="RectangleShape2D_vecdo"] size = Vector2(32, 28) -[node name="AbstractEnemy" type="CharacterBody2D"] +[node name="AbstractEnemy" type="CharacterBody2D" unique_id=1676614852] collision_layer = 0 script = ExtResource("1_2wrno") -[node name="AnimatedSprite2D" parent="." instance=ExtResource("2_tjvyk")] +[node name="AnimatedSprite2D" parent="." unique_id=1997264413 instance=ExtResource("2_tjvyk")] -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=185651284] position = Vector2(0, 2) shape = SubResource("CapsuleShape2D_mocsw") -[node name="PlayerKiller" parent="." instance=ExtResource("4_vecdo")] +[node name="PlayerKiller" parent="." unique_id=1874600747 instance=ExtResource("4_vecdo")] -[node name="WallCheck" type="Node2D" parent="."] +[node name="WallCheck" type="Node2D" parent="." unique_id=782156094] position = Vector2(0, 9) -[node name="LeftWallRay" type="RayCast2D" parent="WallCheck"] +[node name="LeftWallRay" type="RayCast2D" parent="WallCheck" unique_id=521416854] unique_name_in_owner = true target_position = Vector2(-16, 0) -[node name="RightWallRay" type="RayCast2D" parent="WallCheck"] +[node name="RightWallRay" type="RayCast2D" parent="WallCheck" unique_id=1457669135] unique_name_in_owner = true target_position = Vector2(16, 0) -[node name="PlayerCloseCheck" type="Node2D" parent="."] +[node name="PlayerCloseCheck" type="Node2D" parent="." unique_id=1593775088] position = Vector2(0, 9) -[node name="LeftPlayerCloseRay" type="RayCast2D" parent="PlayerCloseCheck"] +[node name="LeftPlayerCloseRay" type="RayCast2D" parent="PlayerCloseCheck" unique_id=947570027] unique_name_in_owner = true target_position = Vector2(-48, 0) collision_mask = 0 -[node name="RightPlayerCloseRay" type="RayCast2D" parent="PlayerCloseCheck"] +[node name="RightPlayerCloseRay" type="RayCast2D" parent="PlayerCloseCheck" unique_id=1559118218] unique_name_in_owner = true target_position = Vector2(48, 0) collision_mask = 0 -[node name="PlayerDistantCheck" type="Node2D" parent="."] +[node name="PlayerDistantCheck" type="Node2D" parent="." unique_id=1597489123] position = Vector2(0, 9) -[node name="LeftPlayerDistantRay" type="RayCast2D" parent="PlayerDistantCheck"] +[node name="LeftPlayerDistantRay" type="RayCast2D" parent="PlayerDistantCheck" unique_id=1491085518] unique_name_in_owner = true target_position = Vector2(-320, 0) collision_mask = 0 -[node name="RightPlayerDistantRay" type="RayCast2D" parent="PlayerDistantCheck"] +[node name="RightPlayerDistantRay" type="RayCast2D" parent="PlayerDistantCheck" unique_id=1377654831] unique_name_in_owner = true target_position = Vector2(320, 0) collision_mask = 0 -[node name="PlayerTouchArea" type="Area2D" parent="."] +[node name="PlayerTouchArea" type="Area2D" parent="." unique_id=2147163970] collision_layer = 0 collision_mask = 0 -[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTouchArea"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerTouchArea" unique_id=262478897] position = Vector2(0, 2) shape = SubResource("RectangleShape2D_vecdo") diff --git a/game/characters/player.tscn b/game/characters/player.tscn index 0c2f00b..6898554 100644 --- a/game/characters/player.tscn +++ b/game/characters/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=5 format=3 uid="uid://dtcad8tdx78tg"] +[gd_scene format=3 uid="uid://dtcad8tdx78tg"] [ext_resource type="Script" uid="uid://bb8kc32sggrn2" path="res://game/characters/player.gd" id="1_xln5q"] [ext_resource type="PackedScene" uid="uid://5qlocc0yu8ug" path="res://game/collision_switcher.tscn" id="2_j06tb"] @@ -7,32 +7,33 @@ [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_xln5q"] radius = 4.0 -[node name="Player" type="CharacterBody2D"] +[node name="Player" type="CharacterBody2D" unique_id=508706417] collision_layer = 128 collision_mask = 113 script = ExtResource("1_xln5q") -[node name="AnimatedSprite2D" parent="." instance=ExtResource("2_n6ad3")] +[node name="AnimatedSprite2D" parent="." unique_id=237719081 instance=ExtResource("2_n6ad3")] animation = &"death" -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1101386361] position = Vector2(0, 1) shape = SubResource("CapsuleShape2D_xln5q") -[node name="CollisionSwitcher" parent="." node_paths=PackedStringArray("object") instance=ExtResource("2_j06tb")] +[node name="CollisionSwitcher" parent="." unique_id=601548821 node_paths=PackedStringArray("object") instance=ExtResource("2_j06tb")] object = NodePath("..") -[node name="Camera2D" type="Camera2D" parent="."] +[node name="Camera2D" type="Camera2D" parent="." unique_id=45512317] +process_callback = 0 position_smoothing_enabled = true -[node name="Pickups" type="Node2D" parent="."] +[node name="Pickups" type="Node2D" parent="." unique_id=958829860] position = Vector2(0, -24) -[node name="JumpBufferTimer" type="Timer" parent="."] +[node name="JumpBufferTimer" type="Timer" parent="." unique_id=740877224] wait_time = 0.1 one_shot = true -[node name="CoyoteTimeTimer" type="Timer" parent="."] +[node name="CoyoteTimeTimer" type="Timer" parent="." unique_id=117837002] wait_time = 0.1 one_shot = true diff --git a/project.godot b/project.godot index c04e128..955ba08 100644 --- a/project.godot +++ b/project.godot @@ -8,11 +8,15 @@ config_version=5 +[animation] + +compatibility/default_parent_skeleton_in_mesh_instance_3d=true + [application] config/name="Cult Manor" run/main_scene="uid://c4iica45gnke0" -config/features=PackedStringArray("4.5", "GL Compatibility") +config/features=PackedStringArray("4.6", "GL Compatibility") boot_splash/bg_color=Color(0, 0, 0, 1) boot_splash/show_image=false config/icon="uid://cfhk8xk856i1u" diff --git a/themes/menu.tres b/themes/menu.tres index 123741f..4225782 100644 --- a/themes/menu.tres +++ b/themes/menu.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=31 format=3 uid="uid://bh56my8b2htnr"] +[gd_resource type="Theme" format=3 uid="uid://bh56my8b2htnr"] [ext_resource type="Texture2D" uid="uid://cw83q4jr80n4d" path="res://images/menu/buttons.png" id="1_6tgry"] [ext_resource type="FontFile" uid="uid://b7myfapuyueyy" path="res://images/fonts/font16.png" id="1_xavh1"]