Updated for Godot 4.6. Fixed bluring on hight refresh rate
This commit is contained in:
@@ -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="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"]
|
[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"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vecdo"]
|
||||||
size = Vector2(32, 28)
|
size = Vector2(32, 28)
|
||||||
|
|
||||||
[node name="AbstractEnemy" type="CharacterBody2D"]
|
[node name="AbstractEnemy" type="CharacterBody2D" unique_id=1676614852]
|
||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
script = ExtResource("1_2wrno")
|
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)
|
position = Vector2(0, 2)
|
||||||
shape = SubResource("CapsuleShape2D_mocsw")
|
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)
|
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
|
unique_name_in_owner = true
|
||||||
target_position = Vector2(-16, 0)
|
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
|
unique_name_in_owner = true
|
||||||
target_position = Vector2(16, 0)
|
target_position = Vector2(16, 0)
|
||||||
|
|
||||||
[node name="PlayerCloseCheck" type="Node2D" parent="."]
|
[node name="PlayerCloseCheck" type="Node2D" parent="." unique_id=1593775088]
|
||||||
position = Vector2(0, 9)
|
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
|
unique_name_in_owner = true
|
||||||
target_position = Vector2(-48, 0)
|
target_position = Vector2(-48, 0)
|
||||||
collision_mask = 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
|
unique_name_in_owner = true
|
||||||
target_position = Vector2(48, 0)
|
target_position = Vector2(48, 0)
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
|
|
||||||
[node name="PlayerDistantCheck" type="Node2D" parent="."]
|
[node name="PlayerDistantCheck" type="Node2D" parent="." unique_id=1597489123]
|
||||||
position = Vector2(0, 9)
|
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
|
unique_name_in_owner = true
|
||||||
target_position = Vector2(-320, 0)
|
target_position = Vector2(-320, 0)
|
||||||
collision_mask = 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
|
unique_name_in_owner = true
|
||||||
target_position = Vector2(320, 0)
|
target_position = Vector2(320, 0)
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
|
|
||||||
[node name="PlayerTouchArea" type="Area2D" parent="."]
|
[node name="PlayerTouchArea" type="Area2D" parent="." unique_id=2147163970]
|
||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
collision_mask = 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)
|
position = Vector2(0, 2)
|
||||||
shape = SubResource("RectangleShape2D_vecdo")
|
shape = SubResource("RectangleShape2D_vecdo")
|
||||||
|
|
||||||
|
|||||||
@@ -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="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"]
|
[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"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_xln5q"]
|
||||||
radius = 4.0
|
radius = 4.0
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody2D"]
|
[node name="Player" type="CharacterBody2D" unique_id=508706417]
|
||||||
collision_layer = 128
|
collision_layer = 128
|
||||||
collision_mask = 113
|
collision_mask = 113
|
||||||
script = ExtResource("1_xln5q")
|
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"
|
animation = &"death"
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1101386361]
|
||||||
position = Vector2(0, 1)
|
position = Vector2(0, 1)
|
||||||
shape = SubResource("CapsuleShape2D_xln5q")
|
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("..")
|
object = NodePath("..")
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="."]
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=45512317]
|
||||||
|
process_callback = 0
|
||||||
position_smoothing_enabled = true
|
position_smoothing_enabled = true
|
||||||
|
|
||||||
[node name="Pickups" type="Node2D" parent="."]
|
[node name="Pickups" type="Node2D" parent="." unique_id=958829860]
|
||||||
position = Vector2(0, -24)
|
position = Vector2(0, -24)
|
||||||
|
|
||||||
[node name="JumpBufferTimer" type="Timer" parent="."]
|
[node name="JumpBufferTimer" type="Timer" parent="." unique_id=740877224]
|
||||||
wait_time = 0.1
|
wait_time = 0.1
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
[node name="CoyoteTimeTimer" type="Timer" parent="."]
|
[node name="CoyoteTimeTimer" type="Timer" parent="." unique_id=117837002]
|
||||||
wait_time = 0.1
|
wait_time = 0.1
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -8,11 +8,15 @@
|
|||||||
|
|
||||||
config_version=5
|
config_version=5
|
||||||
|
|
||||||
|
[animation]
|
||||||
|
|
||||||
|
compatibility/default_parent_skeleton_in_mesh_instance_3d=true
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Cult Manor"
|
config/name="Cult Manor"
|
||||||
run/main_scene="uid://c4iica45gnke0"
|
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/bg_color=Color(0, 0, 0, 1)
|
||||||
boot_splash/show_image=false
|
boot_splash/show_image=false
|
||||||
config/icon="uid://cfhk8xk856i1u"
|
config/icon="uid://cfhk8xk856i1u"
|
||||||
|
|||||||
+1
-1
@@ -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="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"]
|
[ext_resource type="FontFile" uid="uid://b7myfapuyueyy" path="res://images/fonts/font16.png" id="1_xavh1"]
|
||||||
|
|||||||
Reference in New Issue
Block a user