From 063f4d31558b3f34d5ce2eddc8a6c4b440030f3a Mon Sep 17 00:00:00 2001 From: Tom Lawrence Date: Sun, 5 Nov 2023 20:38:54 +0100 Subject: [PATCH] minor quality improvement --- .../game-vanishing-floors.tscn | 49 ++++++++++++------ .../game-vanishing-floors/thumbnail.png | Bin 60656 -> 60666 bytes 2 files changed, 32 insertions(+), 17 deletions(-) diff --git a/prototypes/game-vanishing-floors/game-vanishing-floors.tscn b/prototypes/game-vanishing-floors/game-vanishing-floors.tscn index 327b04be..554a78a5 100644 --- a/prototypes/game-vanishing-floors/game-vanishing-floors.tscn +++ b/prototypes/game-vanishing-floors/game-vanishing-floors.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=90 format=3 uid="uid://qwuo4bynnqhj"] +[gd_scene load_steps=92 format=3 uid="uid://qwuo4bynnqhj"] [ext_resource type="Script" path="res://addons/pronto/behaviors/ExportBehavior.gd" id="1"] [ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="2_ads68"] @@ -14,7 +14,7 @@ [ext_resource type="Script" path="res://addons/pronto/behaviors/MoveBehavior.gd" id="11_dagxm"] [ext_resource type="Texture2D" uid="uid://bhos8bn4u0qp8" path="res://addons/pronto/icons/MissingTexture.svg" id="12_wngs5"] -[sub_resource type="Image" id="Image_278xm"] +[sub_resource type="Image" id="Image_07ntu"] data = { "data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0), "format": "RGBA8", @@ -24,7 +24,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_c1vcs"] -image = SubResource("Image_278xm") +image = SubResource("Image_07ntu") [sub_resource type="GDScript" id="GDScript_yljtb"] script/source = "@tool @@ -334,7 +334,7 @@ only_if = SubResource("Resource_qamp0") deferred = false enabled = true -[sub_resource type="Image" id="Image_6srno"] +[sub_resource type="Image" id="Image_lb1g0"] data = { "data": PackedByteArray(249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 255, 249, 250, 251, 0, 249, 250, 251, 0, 249, 250, 251, 0), "format": "RGBA8", @@ -344,13 +344,27 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_lnpfb"] -image = SubResource("Image_6srno") +image = SubResource("Image_lb1g0") + +[sub_resource type="GDScript" id="GDScript_drckk"] +script/source = "@tool +extends U +@warning_ignore(\"unused_parameter\") +func run(other, direction, from: Node2D, to: RigidBody2D): + return 1 +" + +[sub_resource type="Resource" id="Resource_aimk2"] +script = ExtResource("5_2wjh1") +nested_script = SubResource("GDScript_drckk") +argument_names = ["other", "direction", "from", "to"] +return_value = true [sub_resource type="GDScript" id="GDScript_lo5cs"] script/source = "@tool extends U @warning_ignore(\"unused_parameter\") -func run(other, direction, from: Node2D, to: StaticBody2D): +func run(other, direction, from: Node2D, to: RigidBody2D): return true " @@ -365,8 +379,8 @@ script = ExtResource("6_wsgmy") signal_name = "collided" to = NodePath("../../../Floor1") more_references = [] -invoke = "queue_free" -arguments = [] +invoke = "set_gravity_scale" +arguments = [SubResource("Resource_aimk2")] only_if = SubResource("Resource_3posv") deferred = false enabled = true @@ -620,7 +634,7 @@ position = Vector2(50, 50) script = ExtResource("4_ryq1i") float_min = 0.0 float_max = 1000.0 -float_value = 1000.0 +float_value = 699.0 float_step_size = 1.0 metadata/pronto_connections = [SubResource("Resource_gdog8")] @@ -721,14 +735,6 @@ script = ExtResource("2_ads68") sprite_texture = ExtResource("12_wngs5") placeholder_size = Vector2(305, 59) -[node name="Floor1" type="StaticBody2D" parent="jumpnrun_template" groups=["floor1"]] -position = Vector2(576, 604) - -[node name="PlaceholderBehavior" type="Node2D" parent="jumpnrun_template/Floor1"] -script = ExtResource("2_ads68") -sprite_texture = ExtResource("12_wngs5") -placeholder_size = Vector2(1093, 50) - [node name="Floor3" type="RigidBody2D" parent="jumpnrun_template" groups=["floor3"]] position = Vector2(732, 298) gravity_scale = 1.66533e-16 @@ -737,3 +743,12 @@ gravity_scale = 1.66533e-16 script = ExtResource("2_ads68") sprite_texture = ExtResource("12_wngs5") placeholder_size = Vector2(305, 59) + +[node name="Floor1" type="RigidBody2D" parent="jumpnrun_template" groups=["floor1"]] +position = Vector2(576, 604) +gravity_scale = 1.66533e-16 + +[node name="PlaceholderBehavior" type="Node2D" parent="jumpnrun_template/Floor1"] +script = ExtResource("2_ads68") +sprite_texture = ExtResource("12_wngs5") +placeholder_size = Vector2(1093, 50) diff --git a/prototypes/game-vanishing-floors/thumbnail.png b/prototypes/game-vanishing-floors/thumbnail.png index 2262376cb73e48fa3041b1f20890b1d132b37a54..d4f01c563bb07e3fc8d1c754375bc8a2a1baea4a 100644 GIT binary patch delta 1185 zcmexxllj+8<_&Xhgg^fm`9(|Eg2!Gse(r>Xj-SCD*;~80lhPHJZJlC%;*7{ou`(yC z-MYGeSiTtttF(Fue3ZVS6RomIuSscEZ)1XypmDTn#ETZ+v`=>?$Ao_`vUvXIT=adL z%@eo9Fv@k`WM%+@hV<*_&YgS1DKp{f)vGs!!9vbwI42iwl&p_DBM0I$e7J01H_J9L zesA%oxgUR?pWknIY)8SjLl(ae-Te5n-d^^4UcB`Cc~#|m%HC`({Q2u?;oEOpPkMj9 zKC?SL%^z&SJR!dVRuJok`uaT|PW^cDetysQ|DXOzB=;1npX)X6+i$pU=jXFKe!Mzb z`0mKgjb&-MHKp~hR~LS~+CBL?6G&$XXAC2V{&w>0{k%T@e}4~J>?$hhF+4U~f1l;L zJ3EZ@;`iH#X?K78*17%obo2c(@qhjtjaZ{|?Dg@u`FkWlS{Hae-~!Pb{PX^nW&f%8 zew=-OznrC2*}JzubACL%r~mjz@$utxtIOs7*nPWGzfsc~Y~?GKbs%jF>`#8Jzkb~N z{C<;T5|6Juy7D9M`R>A^!cPa^OYgro!;&AQMj_j<8bmW3xcur=ulD1``|C{ZRefAr z`1RY>k2ibIA3I+EyJAk<9J%oPc-i>-KdZjEfK)fAG-`u&+3hla*USI^^FxW`+@AdM zeX`>JN)zYQ{rmFc;XD519>aUTpI1MADjp|y|Nh^)M_ypP+onD(+G$hhsZ{P3pelsZ_j{s=h6WnnR15RsFY>tFf)*soht zzJm=p^N3~g!>y%?Vbe}OefLHXtc!Ja^zF^+Hj{e4ZiS>AhHq1aCl~H`t+;6h#KH#~ zZbZc2{`~9NwQr3!zYFJagY*?hSRS1Ga6^gQl%sFJ;mgo|6sTa{b@OZ2`QF?F8+~3# zeRAQp3=NorKB(m8<^F%U6=)T6^|!+|=XT3~yLbGr9!PP6`dN_cOO5IrEg9;tP)V={dggs)ZF23~iSO6mdOiEtjo-WF%Jf015AcB9 zs0d3%b+;not*4y7cN!Q%$#?Cu&B2Nm7d1_Oxc#*qa%_O@D!8BYtznh-biK3lzgU-b57}%Dy;Ops^?+SljG6B8!^Lz@ur-Ba))O4 zg;v9Zl}pSM1{ z@87JrGn27?rmrmn1VqgF`}glk^$iNz+S0_Urq8W zPX4RL`|Hx~{CIe5N9Fft7WUTmadzK7{U~{V`QyoZ>W}}t`BU-oj`!nV|Gs{___lx9 zyk8e=e=b*FJ`ZThh624EOd!+h85q=0WxrnEYp%D)a9&hpR*&Jasms^*Y&Fh)yw`r8 zx!$@sneci0jP(AzI#ltT|9wyQYH{^AZU%+}g*zT_LEJM(-Xj3-`1PP*?fQW<57OR&mIW|hKBmzPn)zM z#uO~t^ZR;v{jcx0KHb{!`SD!CV-nlz_LyEvfBpa0&v$D-9(mL0X$ExkhXj^&5FH0P zOP@bD7h%2G?3hII+cUR*JbPzu|M$<2Hy;aszk93s92j^7K1|^d#Sf1B`fG~SWk3m3feaV@2^X2_) z!9fg+$R6~Vo$(ZEd?4781N(&`(E;X7Fq&NjwR?lbKj~^9+fNC5QaEwr-p#phc5gQ` zSNoj@RQGQ(_vFHjrAj(ypMO5Q(j96_f8X1=cUP+4*}nE{?@D!`piNNBqg@;X(A8t=q znR4?AkOu+{ms6|Lzn^#>JzJXl_nVdbzB}4U14ZW-ADsMfLkY6N$?4VU<&)muy>(~C zlj{1Df%W~b(ts+B#3vW-C^d|nb^dvKa6ib%a}n+73=BMBo-U3dKyK8w^0MXgKE&q& z-TM3PPWSO5S3