优化 portal 表现: opened 效果,default 左右朝向
This commit is contained in:
parent
c0f7ba4915
commit
c3ca239518
BIN
asset/art/ui/action_mark/UI场景切换_right.png
Normal file
BIN
asset/art/ui/action_mark/UI场景切换_right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
34
asset/art/ui/action_mark/UI场景切换_right.png.import
Normal file
34
asset/art/ui/action_mark/UI场景切换_right.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cwbh3j84ctxvp"
|
||||
path="res://.godot/imported/UI场景切换_right.png-9e9e1c726ef09fb205638364f6110067.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/ui/action_mark/UI场景切换_right.png"
|
||||
dest_files=["res://.godot/imported/UI场景切换_right.png-9e9e1c726ef09fb205638364f6110067.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
Binary file not shown.
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 2.1 KiB |
@ -49,6 +49,7 @@ var target_portal := "none":
|
||||
@export var opened_texture: Texture2D
|
||||
@export var unrevealed_sign_texture: Texture2D
|
||||
@export var default_sign_texture: Texture2D
|
||||
@export var default_sign_texture_r: Texture2D
|
||||
@export var opened_sign_texture: Texture2D
|
||||
@export var matched_sign_texture: Texture2D
|
||||
@export var locked_sign_texture: Texture2D
|
||||
@ -136,7 +137,10 @@ func _check_sign_mark_and_texture():
|
||||
texture = default_texture
|
||||
# 切换 sign_mark texture, 同时设置 sign_snapper 的 action
|
||||
if status == "default":
|
||||
sign_mark.sprite2d.texture = default_sign_texture
|
||||
if portal_name == "left":
|
||||
sign_mark.sprite2d.texture = default_sign_texture
|
||||
else:
|
||||
sign_mark.sprite2d.texture = default_sign_texture_r
|
||||
sign_snapper.action_on_arrived = 3
|
||||
else:
|
||||
sign_snapper.action_on_arrived = 4
|
||||
|
@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://61pis75a8fdq"]
|
||||
[gd_scene load_steps=15 format=3 uid="uid://61pis75a8fdq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2dvvhawm820r" path="res://scene/entity/portal.gd" id="1_jyh6v"]
|
||||
[ext_resource type="Texture2D" uid="uid://bc4lpa8aao60n" path="res://asset/art/ui/action_mark/传送.png" id="2_ay30q"]
|
||||
[ext_resource type="Texture2D" uid="uid://r0n7qy4kr3w2" path="res://asset/art/ui/action_mark/UI场景切换.png" id="2_bxihn"]
|
||||
[ext_resource type="Texture2D" uid="uid://dtyg0nugb2tnf" path="res://asset/art/ui/action_mark/UI探索.png" id="2_fr7ak"]
|
||||
[ext_resource type="Texture2D" uid="uid://bc8sn2v4t1yta" path="res://asset/art/ui/action_mark/UI开锁.png" id="3_fr7ak"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwbh3j84ctxvp" path="res://asset/art/ui/action_mark/UI场景切换_right.png" id="4_fr7ak"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4tipnj1cr1j3" path="res://scene/entity/ux/sign.tscn" id="4_ty1ds"]
|
||||
[ext_resource type="AudioStream" uid="uid://ccng5y2fip6mc" path="res://asset/audio/sfx/UI/开锁声.ogg" id="5_l48hy"]
|
||||
[ext_resource type="AudioStream" uid="uid://dqdjxy04ge0r5" path="res://asset/audio/sfx/旧版/c02/场景转场.ogg" id="6_1sj6c"]
|
||||
@ -23,7 +24,8 @@ sign_mark_offset = Vector2(0, -50)
|
||||
collision_width_and_x = Vector2(30, 0)
|
||||
unrevealed_sign_texture = ExtResource("2_fr7ak")
|
||||
default_sign_texture = ExtResource("2_bxihn")
|
||||
opened_sign_texture = ExtResource("2_bxihn")
|
||||
default_sign_texture_r = ExtResource("4_fr7ak")
|
||||
opened_sign_texture = ExtResource("2_ay30q")
|
||||
matched_sign_texture = ExtResource("3_fr7ak")
|
||||
locked_sign_texture = ExtResource("3_fr7ak")
|
||||
prop_key = ""
|
||||
|
@ -979,12 +979,6 @@ facing_direction = Vector2(1, 0)
|
||||
[node name="AudioListener2D" type="AudioListener2D" parent="Ground/MainPlayer" index="6"]
|
||||
current = true
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 564
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
position = Vector2(21, 39)
|
||||
texture = ExtResource("3_vmr0f")
|
||||
|
@ -672,10 +672,7 @@ character = "小小蝶"
|
||||
player_movement_rect = Rect2(37, -158, 3963, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 5234
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="院长凳子" type="Sprite2D" parent="Ground/ParallaxForeground/BGParallaxLayer" index="0"]
|
||||
position = Vector2(34, 3)
|
||||
|
@ -275,10 +275,7 @@ character = "小小蝶"
|
||||
player_movement_rect = Rect2(37, -158, 2203, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 2270
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(37, 150, 2240, 150)
|
||||
|
@ -359,7 +359,6 @@ character = "小小蝶"
|
||||
player_movement_rect = Rect2(37, -158, 3423, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -165
|
||||
limit_right = 3500
|
||||
limit_bottom = 165
|
||||
|
@ -58,10 +58,7 @@ character = "小小蝶"
|
||||
player_movement_rect = Rect2(18, -158, 653, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 701
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(18, 150, 671, 150)
|
||||
|
@ -614,7 +614,6 @@ character = "小小蝶"
|
||||
player_movement_rect = Rect2(37, -158, 11313, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6" node_paths=PackedStringArray("focusing_node")]
|
||||
limit_left = 0
|
||||
limit_top = -384
|
||||
limit_right = 11377
|
||||
limit_bottom = 384
|
||||
|
@ -323,10 +323,7 @@ character = "小小蝶"
|
||||
player_movement_rect = Rect2(37, -158, 3013, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 3070
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(37, 150, 3050, 150)
|
||||
|
@ -112,10 +112,7 @@ position = Vector2(78, 98)
|
||||
player_movement_rect = Rect2(37, -158, 683, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 755
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(37, 150, 720, 150)
|
||||
|
@ -219,10 +219,7 @@ player_movement_rect = Rect2(37, -158, 2213, 316)
|
||||
facing_direction = Vector2(1, 0)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 2380
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGParallaxLayer" parent="Ground/ParallaxForeground" index="1"]
|
||||
visible = false
|
||||
|
@ -63,10 +63,6 @@ player_movement_rect = Rect2(37, -158, 363, 316)
|
||||
facing_direction = Vector2(1, 0)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 564
|
||||
limit_bottom = 158
|
||||
force_offset = Vector2(-20, 0)
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
|
@ -120,10 +120,7 @@ character = "盒子猫"
|
||||
player_movement_rect = Rect2(37, -158, 833, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 903
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
position = Vector2(-1, -16)
|
||||
|
@ -61,10 +61,7 @@ character = "盒子猫"
|
||||
player_movement_rect = Rect2(101, -158, 559, 316)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 696
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="PlayerLine2D" parent="Ground/ParallaxForeground" index="2"]
|
||||
points = PackedVector2Array(101, 150, 660, 150)
|
||||
|
@ -55,10 +55,7 @@ player_movement_rect = Rect2(125, -158, 535, 316)
|
||||
facing_direction = Vector2(1, 0)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 696
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
position = Vector2(-1, -15)
|
||||
|
@ -67,10 +67,7 @@ player_movement_rect = Rect2(37, -158, 618, 316)
|
||||
facing_direction = Vector2(1, 0)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 696
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
position = Vector2(3584, -7)
|
||||
|
@ -70,10 +70,7 @@ player_movement_rect = Rect2(26, -158, 842, 316)
|
||||
facing_direction = Vector2(1, 0)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 903
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
position = Vector2(3584, -7)
|
||||
|
@ -84,10 +84,7 @@ player_movement_rect = Rect2(37, -158, 823, 316)
|
||||
facing_direction = Vector2(1, 0)
|
||||
|
||||
[node name="CameraFocusMarker" parent="Ground" index="6"]
|
||||
limit_left = 0
|
||||
limit_top = -158
|
||||
limit_right = 903
|
||||
limit_bottom = 158
|
||||
|
||||
[node name="FGSprite2D" parent="Ground/ParallaxForeground/FGParallaxLayer" index="0"]
|
||||
position = Vector2(3584, -7)
|
||||
|
Loading…
Reference in New Issue
Block a user