Compare commits

...

3 Commits

Author SHA1 Message Date
e541b77052 player 如果 flip_h, 则 offset.x 取镜像 2025-08-09 20:41:54 +08:00
367fefba08 下蹲身体朝向优化 2025-08-09 20:36:46 +08:00
bed448e49b 黄包车相机调整 2025-08-08 19:58:43 +08:00
3 changed files with 10 additions and 8 deletions

View File

@ -261,6 +261,9 @@ func player_action(action_code: int, auto_quit: bool):
animation_l = config[3] animation_l = config[3]
animation_r = config[4] animation_r = config[4]
var playing_animation = _sprite_play_with_auto_flip_h(animation_l, animation_r) var playing_animation = _sprite_play_with_auto_flip_h(animation_l, animation_r)
# 如果 flip_h, 则 offset.x 取镜像
if sprite.flip_h:
sprite.offset.x = -sprite.offset.x
# reset animation after one play # reset animation after one play
if sprite.sprite_frames.get_animation_loop(playing_animation): if sprite.sprite_frames.get_animation_loop(playing_animation):
if auto_quit and not sprite.animation_looped.is_connected(_play_animation): if auto_quit and not sprite.animation_looped.is_connected(_play_animation):

View File

@ -42,11 +42,11 @@ var ANIMATION_CONFIG = {
10: [&"c02_吕萍_蹲下来查看", Vector2.ONE, Vector2(1, -54.5)], 10: [&"c02_吕萍_蹲下来查看", Vector2.ONE, Vector2(1, -54.5)],
11: [&"c02_吕萍_被吓到后退", Vector2.ONE, Vector2(-32, -54.5)], 11: [&"c02_吕萍_被吓到后退", Vector2.ONE, Vector2(-32, -54.5)],
# 12 c00_吕萍_蹲下 13 c00_吕萍_蹲下呼吸 14 c00_吕萍_起立 # 12 c00_吕萍_蹲下 13 c00_吕萍_蹲下呼吸 14 c00_吕萍_起立
12: [&"c00_吕萍_蹲下", Vector2.ONE, Vector2(20, -94.0)], 12: [&"", Vector2.ONE, Vector2(20, -94.0), &"", &"c00_吕萍_蹲下"],
13: [&"c00_吕萍_蹲下呼吸", Vector2.ONE, Vector2(20, -94.0)], 13: [&"", Vector2.ONE, Vector2(20, -94.0), &"", &"c00_吕萍_蹲下呼吸"],
14: [&"c00_吕萍_起立", Vector2.ONE, Vector2(20, -94.0)], 14: [&"", Vector2.ONE, Vector2(20, -94.0), &"", &"c00_吕萍_起立"],
# 吕萍低头看小猫 # 吕萍低头看小猫
15: [&"c00_吕萍_起立", Vector2.ONE, Vector2(20, -94.0)], 15: [&"", Vector2.ONE, Vector2(20, -94.0), &"", &"c00_吕萍_起立"],
# c00_吕萍_记笔记_right # c00_吕萍_记笔记_right
16: [&"", Vector2.ONE, Vector2(0, -50.0), &"", &"c00_吕萍_记笔记_right"], 16: [&"", Vector2.ONE, Vector2(0, -50.0), &"", &"c00_吕萍_记笔记_right"],
17: [&"", Vector2.ONE, Vector2(0, -50.0), &"c02_吕萍_头痛蹲下_左", &"c02_吕萍_头痛蹲下_右"], 17: [&"", Vector2.ONE, Vector2(0, -50.0), &"c02_吕萍_头痛蹲下_左", &"c02_吕萍_头痛蹲下_右"],

View File

@ -27,11 +27,10 @@ func _ready() -> void:
func _on_ground_ready() -> void: func _on_ground_ready() -> void:
var camera = SceneManager.get_camera_marker() var camera = SceneManager.get_camera_marker()
camera.limit_top = -1000 camera.default_camera_rect.position.y = -camera.default_camera_rect.size.y + 158
camera.limit_bottom = 158
await SceneManager.ground_start
# 相机抖动 # 相机抖动
camera.shake_camera(6.0, 2.5) camera.shake_camera(7.0, 2.5)
await SceneManager.ground_start
# 不显示玩家,锁定玩家移动 # 不显示玩家,锁定玩家移动
SceneManager.lock_player() SceneManager.lock_player()
main_character = $"../DeployLayer/车夫与吕萍" main_character = $"../DeployLayer/车夫与吕萍"