小猫游戏更新;九宫格调整
This commit is contained in:
parent
469acec5a9
commit
5fba7b21d5
BIN
asset/art/scene/c04/s01_父母房间/九宫格/盒子背景.png
Normal file
BIN
asset/art/scene/c04/s01_父母房间/九宫格/盒子背景.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 798 KiB |
34
asset/art/scene/c04/s01_父母房间/九宫格/盒子背景.png.import
Normal file
34
asset/art/scene/c04/s01_父母房间/九宫格/盒子背景.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bo0tutqg85r7p"
|
||||
path="res://.godot/imported/盒子背景.png-7d6d9b274f481777aab02769227e0bc5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s01_父母房间/九宫格/盒子背景.png"
|
||||
dest_files=["res://.godot/imported/盒子背景.png-7d6d9b274f481777aab02769227e0bc5.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
|
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/c03_项圈铃铛_无绳子.png.import
Normal file
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/c03_项圈铃铛_无绳子.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://0xl3f4nrrr5n"
|
||||
path="res://.godot/imported/c03_项圈铃铛_无绳子.png-4bbc8c136218c6de25be4881f8e349f5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/c03_项圈铃铛_无绳子.png"
|
||||
dest_files=["res://.godot/imported/c03_项圈铃铛_无绳子.png-4bbc8c136218c6de25be4881f8e349f5.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
|
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/一撮猫毛_调整.png
Normal file
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/一撮猫毛_调整.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/一撮猫毛_调整.png.import
Normal file
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/一撮猫毛_调整.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b7xuyy58r2t4r"
|
||||
path="res://.godot/imported/一撮猫毛_调整.png-43da8f3a4bb4a91eaa077f80726fd41c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/一撮猫毛_调整.png"
|
||||
dest_files=["res://.godot/imported/一撮猫毛_调整.png-43da8f3a4bb4a91eaa077f80726fd41c.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
|
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/用一半的肥皂_调整.png
Normal file
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/用一半的肥皂_调整.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/用一半的肥皂_调整.png.import
Normal file
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/用一半的肥皂_调整.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b1qxcqfcpe6n1"
|
||||
path="res://.godot/imported/用一半的肥皂_调整.png-f9454ecc02c05bef92d6de09e6a9b93e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/用一半的肥皂_调整.png"
|
||||
dest_files=["res://.godot/imported/用一半的肥皂_调整.png-f9454ecc02c05bef92d6de09e6a9b93e.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
|
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/臭鱼肉_调整.png
Normal file
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/臭鱼肉_调整.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/臭鱼肉_调整.png.import
Normal file
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/臭鱼肉_调整.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bd1hxo3aygny0"
|
||||
path="res://.godot/imported/臭鱼肉_调整.png-b5842eb49e18fd1dcdfa6fce6faaf6e5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/臭鱼肉_调整.png"
|
||||
dest_files=["res://.godot/imported/臭鱼肉_调整.png-b5842eb49e18fd1dcdfa6fce6faaf6e5.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
|
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/金豆子_调整.png
Normal file
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/金豆子_调整.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/金豆子_调整.png.import
Normal file
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/金豆子_调整.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://431ty0lh23fr"
|
||||
path="res://.godot/imported/金豆子_调整.png-dcb883c8228ce2239ae6b88af2708cee.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/金豆子_调整.png"
|
||||
dest_files=["res://.godot/imported/金豆子_调整.png-dcb883c8228ce2239ae6b88af2708cee.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
|
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/项圈铃铛_调整.png
Normal file
BIN
asset/art/scene/c04/s07_佛堂/灵牌游戏/项圈铃铛_调整.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/项圈铃铛_调整.png.import
Normal file
34
asset/art/scene/c04/s07_佛堂/灵牌游戏/项圈铃铛_调整.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dhfog1xo5py3w"
|
||||
path="res://.godot/imported/项圈铃铛_调整.png-3a281b9221c7bfd52337bd9d3ea1d02d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/项圈铃铛_调整.png"
|
||||
dest_files=["res://.godot/imported/项圈铃铛_调整.png-3a281b9221c7bfd52337bd9d3ea1d02d.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
|
@ -19,7 +19,7 @@
|
||||
metadata/_edit_horizontal_guides_ = [-627.0]
|
||||
|
||||
[node name="Ground" parent="." instance=ExtResource("1_36j8f")]
|
||||
scene_name = "c03_s09"
|
||||
scene_name = "c04_s01"
|
||||
player_y = 60
|
||||
|
||||
[node name="AnimationPlayer" parent="Ground" index="0"]
|
||||
|
@ -115,6 +115,7 @@ metadata/_custom_type_script = "uid://0wjaho6qkg6s"
|
||||
|
||||
[node name="Pickable九宫格块" parent="Ground/DeployLayer" index="6" instance=ExtResource("12_bfpg0")]
|
||||
position = Vector2(399, 48)
|
||||
prop_key = "prop_九宫格块"
|
||||
|
||||
[node name="EventBinder" type="Node" parent="Ground/DeployLayer/Pickable九宫格块"]
|
||||
script = ExtResource("6_sprhu")
|
||||
@ -241,6 +242,7 @@ offset = Vector2(0, 50)
|
||||
points = PackedVector2Array(20, 150, 533, 151)
|
||||
|
||||
[node name="DirectionalLight2D" parent="Ground" index="8"]
|
||||
visible = false
|
||||
energy = 0.8
|
||||
blend_mode = 1
|
||||
|
||||
|
@ -3,29 +3,63 @@ extends CanvasLayer
|
||||
@warning_ignore("unused_signal")
|
||||
signal exit(arg)
|
||||
|
||||
@onready var hover_center_block = $"Hover中心方块" as HoverLightClickArea
|
||||
@onready var grid = %GridContainer as GridContainer
|
||||
@onready var block_arr: Array[TextureButton] = [%B0, %B1, %B2, %B3, %B4, %B5, %B6, %B7, %B8]
|
||||
# 留出一个空缺
|
||||
var empty_id := 4
|
||||
|
||||
# 0:B3
|
||||
# 1:B0
|
||||
# 2:B7
|
||||
# 3:B2
|
||||
# 4:B4
|
||||
# 5:B5
|
||||
# 6:B6
|
||||
# 7:B1
|
||||
# 8:B8
|
||||
# 保障有解
|
||||
var quiz := [3, 0, 7, 2, 4, 5, 6, 1, 8]
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
# TODO 1、保存操作状态 2、成功后锁定操作
|
||||
|
||||
|
||||
layer = GlobalConfig.CANVAS_LAYER_LITTLE_GAME
|
||||
# 游戏是否已经成功
|
||||
if ArchiveManager.get_global_value("c04_s09_nine_patch_puzzle_finished"):
|
||||
game_success = true
|
||||
hover_center_block.hide()
|
||||
return
|
||||
|
||||
block_arr[empty_id].modulate.a = 0.0
|
||||
|
||||
for id in range(block_arr.size()):
|
||||
var btn := block_arr[id]
|
||||
btn.pressed.connect(_on_button_pressed.bind(btn))
|
||||
if id != empty_id:
|
||||
btn.mouse_entered.connect(_toggle_hightlight.bind(btn, true))
|
||||
btn.mouse_exited.connect(_toggle_hightlight.bind(btn, false))
|
||||
# suffle
|
||||
suffling = true
|
||||
for i in 200:
|
||||
_on_button_pressed(block_arr.pick_random())
|
||||
suffling = false
|
||||
# # suffle
|
||||
# suffling = true
|
||||
# for i in 200:
|
||||
# _on_button_pressed(block_arr.pick_random())
|
||||
# suffling = false
|
||||
|
||||
# 加载操作状态
|
||||
var state = ArchiveManager.get_global_value("c04_s09_nine_patch_puzzle", quiz)
|
||||
if len(state) == 9:
|
||||
quiz = state
|
||||
_init_quiz()
|
||||
# 成功时锁定
|
||||
_check_success()
|
||||
|
||||
# 玩家手中是否有 block
|
||||
hover_center_block.visible = SceneManager.has_prop("prop_九宫格块")
|
||||
hover_center_block.interacted.connect(_on_hover_block_interacted)
|
||||
|
||||
|
||||
func _init_quiz() -> void:
|
||||
for i in 9:
|
||||
grid.move_child(block_arr[quiz[i]], i)
|
||||
|
||||
|
||||
var suffling = false
|
||||
@ -57,6 +91,16 @@ func _on_button_pressed(btn: TextureButton) -> void:
|
||||
elif not suffling:
|
||||
$SfxInvalid.play()
|
||||
|
||||
# # print order
|
||||
# for i in grid.get_children().size():
|
||||
# print(i, ":", grid.get_child(i).name)
|
||||
|
||||
# 保存操作状态
|
||||
var current_state = []
|
||||
for i in 9:
|
||||
current_state.append(block_arr.find(grid.get_child(i)))
|
||||
ArchiveManager.set_global_entry("c04_s09_nine_patch_puzzle", current_state)
|
||||
|
||||
|
||||
func _check_success() -> void:
|
||||
if suffling:
|
||||
@ -72,12 +116,32 @@ func _check_success() -> void:
|
||||
$SfxValid.play()
|
||||
print("success")
|
||||
game_success = true
|
||||
var block = block_arr[empty_id]
|
||||
var tween = create_tween()
|
||||
tween.tween_property(block, "modulate:a", 1.0, 1.0)
|
||||
# 所有 highlight 都取消
|
||||
for btn in block_arr:
|
||||
btn.get_node("PointLight2D").enabled = false
|
||||
# 允许点击
|
||||
hover_center_block.freezing = false
|
||||
|
||||
|
||||
func _toggle_hightlight(btn: TextureButton, highlight: bool) -> void:
|
||||
if game_success:
|
||||
highlight = false
|
||||
return
|
||||
btn.get_node("PointLight2D").enabled = highlight
|
||||
|
||||
|
||||
func _on_hover_block_interacted() -> void:
|
||||
if not game_success:
|
||||
printerr("九宫格游戏未成功,不能放置方块")
|
||||
return
|
||||
hover_center_block.freezing = true
|
||||
# TODO
|
||||
$"Sfx放置方块".play()
|
||||
SceneManager.pop_debug_dialog_info("音效", "放置方块音效")
|
||||
# 显示 block
|
||||
var block = block_arr[empty_id]
|
||||
var tween = create_tween()
|
||||
tween.tween_property(block, "modulate:a", 1.0, 0.5)
|
||||
tween.parallel().tween_property(hover_center_block, "modulate:a", 0.0, 0.5)
|
||||
# 游戏成功
|
||||
SceneManager.disable_prop_item("prop_九宫格块")
|
||||
ArchiveManager.set_global_entry("c04_s09_nine_patch_puzzle_finished", true)
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=22 format=3 uid="uid://8chvwh72yan1"]
|
||||
[gd_scene load_steps=25 format=3 uid="uid://8chvwh72yan1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://csf5gkqbbbo64" path="res://scene/ground/script/c03/s09_closeup九宫格游戏.gd" id="1_5lbo3"]
|
||||
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="2_5sy22"]
|
||||
@ -10,11 +10,14 @@
|
||||
[ext_resource type="Texture2D" uid="uid://co871pglp2v1" path="res://asset/art/scene/c04/s01_父母房间/九宫格/上3.png" id="4_lltok"]
|
||||
[ext_resource type="AudioStream" uid="uid://btuggs64kaooa" path="res://asset/audio/sfx/UI/箱子上锁.ogg" id="5_0ctky"]
|
||||
[ext_resource type="Texture2D" uid="uid://pflcc77pmpea" path="res://asset/art/scene/c04/s01_父母房间/九宫格/中1.png" id="5_sx2di"]
|
||||
[ext_resource type="Texture2D" uid="uid://bo0tutqg85r7p" path="res://asset/art/scene/c04/s01_父母房间/九宫格/盒子背景.png" id="6_jn5e2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bd1cnf0xdjdnu" path="res://asset/art/scene/c04/s01_父母房间/九宫格/中2.png" id="6_jsoro"]
|
||||
[ext_resource type="Texture2D" uid="uid://bq3aj6dlcsv07" path="res://asset/art/scene/c04/s01_父母房间/九宫格/中3.png" id="7_jn5e2"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckss7hc1jak4d" path="res://asset/art/scene/c04/s01_父母房间/九宫格/下1.png" id="8_0ctky"]
|
||||
[ext_resource type="Texture2D" uid="uid://dy0rwsc541as7" path="res://asset/art/scene/c04/s01_父母房间/九宫格/下2.png" id="9_wct6u"]
|
||||
[ext_resource type="Texture2D" uid="uid://07ga4lxht8ik" path="res://asset/art/scene/c04/s01_父母房间/九宫格/下3.png" id="10_dmkx6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkk1rxx36ghrl" path="res://scene/entity/ux/hover_light_click_area.tscn" id="17_wct6u"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfve25dlubjr0" path="res://asset/art/scene/c04/s01_父母房间/九宫格/蝴蝶宫格.png" id="18_dmkx6"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_ins28"]
|
||||
offsets = PackedFloat32Array(1)
|
||||
@ -54,6 +57,12 @@ bus = &"game_sfx"
|
||||
script = ExtResource("2_5sy22")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="Sfx放置方块" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_jsoro")
|
||||
bus = &"game_sfx"
|
||||
script = ExtResource("2_5sy22")
|
||||
metadata/_custom_type_script = "uid://rq6w1vuhuq1m"
|
||||
|
||||
[node name="SfxValid" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("4_jn5e2")
|
||||
bus = &"game_sfx"
|
||||
@ -72,6 +81,9 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("6_jn5e2")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
@ -80,12 +92,13 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -117.5
|
||||
offset_top = -111.0
|
||||
offset_right = 117.5
|
||||
offset_bottom = 111.0
|
||||
offset_left = -134.5
|
||||
offset_top = -97.0
|
||||
offset_right = 100.5
|
||||
offset_bottom = 125.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(0.85, 0.85)
|
||||
theme_override_constants/h_separation = 1
|
||||
theme_override_constants/v_separation = 1
|
||||
columns = 3
|
||||
@ -215,3 +228,19 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("2_v1yto")
|
||||
|
||||
[node name="Hover中心方块" parent="." instance=ExtResource("17_wct6u")]
|
||||
position = Vector2(71, 157)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
freezing = true
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover中心方块"]
|
||||
polygon = PackedVector2Array(-68.5, -65.5, -68.5, 65.5, 68.5, 65.5, 68.5, -65.5)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hover中心方块"]
|
||||
texture = ExtResource("18_dmkx6")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="Hover中心方块"]
|
||||
energy = 0.3
|
||||
range_layer_max = 10
|
||||
texture = ExtResource("18_dmkx6")
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://b03v4u8m55leh"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://b03v4u8m55leh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dsr4gd8cu0yu4" path="res://scene/ground/script/c04/s07_closeup小猫灵牌.gd" id="1_pl6vt"]
|
||||
[ext_resource type="Texture2D" uid="uid://bq4jcgvj3qkjj" path="res://asset/art/scene/c04/s07_佛堂/小猫灵堂/背景.png" id="2_4x10w"]
|
||||
@ -8,6 +8,21 @@
|
||||
[ext_resource type="Texture2D" uid="uid://f186lvt5y2ql" path="res://asset/art/ui/遮罩/inspect背景遮罩.png" id="5_42tbg"]
|
||||
[ext_resource type="Script" uid="uid://dpocj5al0rvai" path="res://ui/text_helper.gd" id="6_hj263"]
|
||||
[ext_resource type="Texture2D" uid="uid://c36atvx8eraun" path="res://asset/art/scene/c04/s07_佛堂/小猫灵堂/灵堂.jpg" id="8_hj263"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkk1rxx36ghrl" path="res://scene/entity/ux/hover_light_click_area.tscn" id="9_p4b5m"]
|
||||
[ext_resource type="Texture2D" uid="uid://bd1hxo3aygny0" path="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/臭鱼肉_调整.png" id="10_p4b5m"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1qxcqfcpe6n1" path="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/用一半的肥皂_调整.png" id="11_mdjsk"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhfog1xo5py3w" path="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/项圈铃铛_调整.png" id="12_j2toh"]
|
||||
[ext_resource type="Texture2D" uid="uid://431ty0lh23fr" path="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/金豆子_调整.png" id="13_k23o4"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7xuyy58r2t4r" path="res://asset/art/scene/c04/s07_佛堂/灵牌游戏/一撮猫毛_调整.png" id="14_b1bk4"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_fujsr"]
|
||||
offsets = PackedFloat32Array(1)
|
||||
colors = PackedColorArray(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_coit2"]
|
||||
gradient = SubResource("Gradient_fujsr")
|
||||
width = 150
|
||||
height = 128
|
||||
|
||||
[node name="Closeup小猫灵牌" type="CanvasLayer"]
|
||||
script = ExtResource("1_pl6vt")
|
||||
@ -85,3 +100,78 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("8_hj263")
|
||||
stretch_mode = 3
|
||||
|
||||
[node name="Hover1" parent="." instance=ExtResource("9_p4b5m")]
|
||||
position = Vector2(65, 179)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover1"]
|
||||
polygon = PackedVector2Array(29.3, -13, -28, -13, -44.8, -6, -45.5, -6, -45.5, 7.1, -37.5, 10.3, -37.5, 11.9, -22, 13, 38.4, 13, 45, 9, 45.5, -8.1, 36.5, -10.5, 36.5, -11.7)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hover1"]
|
||||
light_mask = 1025
|
||||
texture = ExtResource("10_p4b5m")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="Hover1"]
|
||||
range_layer_max = 10
|
||||
range_item_cull_mask = 1024
|
||||
texture = SubResource("GradientTexture2D_coit2")
|
||||
|
||||
[node name="Hover2" parent="." instance=ExtResource("9_p4b5m")]
|
||||
position = Vector2(156, 177)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover2"]
|
||||
polygon = PackedVector2Array(-12, -22.5, -12, -21, -19.8, -21, -32.8, -8, -34.2, -8, -36, -4.5, -36, 1.8, -28, 9.8, -28, 11.2, -19, 16.1, -19, 17.6, -5, 20.6, -5, 22, 35.1, 22, 37.1, 19, 39, 19, 39, 10.2, 32, 3.2, 32, 0.0999985, 21, -9, 21, -11, 14.8, -11, 10, -15.8, 10, -17.6)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hover2"]
|
||||
light_mask = 2049
|
||||
texture = ExtResource("11_mdjsk")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="Hover2"]
|
||||
range_layer_max = 10
|
||||
range_item_cull_mask = 2048
|
||||
texture = SubResource("GradientTexture2D_coit2")
|
||||
|
||||
[node name="Hover3" parent="." instance=ExtResource("9_p4b5m")]
|
||||
position = Vector2(247, 169)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover3"]
|
||||
polygon = PackedVector2Array(-7.5, -22.5, -20.5, -22.5, -20.5, -20.5, -25.5, -16.5, -25.5, -4.5, -21.5, -1.5, -21.5, 11.3, -12.5, 21.2, -12.5, 22.8, -6.3, 25.5, 11.4, 25.5, 19.2, 18.5, 20.8, 18.5, 23.8, 11.5, 25.5, 11.5, 25.5, -1.1, 21.5, -7.2, 21.5, -9.5, 12.5, -16.5, 12.5, -18.5, -5.7, -18.5, -7.5, -20.3)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hover3"]
|
||||
light_mask = 4097
|
||||
texture = ExtResource("12_j2toh")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="Hover3"]
|
||||
range_layer_max = 10
|
||||
range_item_cull_mask = 4096
|
||||
texture = SubResource("GradientTexture2D_coit2")
|
||||
|
||||
[node name="Hover4" parent="." instance=ExtResource("9_p4b5m")]
|
||||
position = Vector2(338, 179)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover4"]
|
||||
polygon = PackedVector2Array(-7, -21, -7, -19.3, -9.5, -18, -15, -18, -23, -7, -24.7, -7, -26, 0.799999, -26, 6.7, -19, 15.6, -19, 17.2, -15.5, 19, 17, 19, 24, 10, 26, 10, 26, -3.7, 18, -13.7, 18, -15.3, 9, -19.3, 9, -21)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hover4"]
|
||||
light_mask = 8193
|
||||
texture = ExtResource("13_k23o4")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="Hover4"]
|
||||
range_layer_max = 10
|
||||
range_item_cull_mask = 8192
|
||||
texture = SubResource("GradientTexture2D_coit2")
|
||||
|
||||
[node name="Hover5" parent="." instance=ExtResource("9_p4b5m")]
|
||||
position = Vector2(432, 182)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hover5"]
|
||||
polygon = PackedVector2Array(-3.5, -13.8, -3.5, -12.5, -15, -12.5, -21, -9.5, -25.5, -9.5, -30.5, -3.2, -30.5, -1.9, -34, -0.5, -35.8, -0.5, -36.9, 1.8, -30.5, 9.2, -30.5, 11.1, -24.7, 12.5, -12.5, 12.5, -12.5, 17.7, 15.7, 14.5, 17.2, 14.5, 21.6, 11.1, 27.1, 13.5, 29.3, 13.5, 32.5, 10.3, 32.5, 7.6, 23.5, -0.400002, 23.5, -1.1, 27.4, -0.5, 30.5, -0.5, 30.5, -9.3)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hover5"]
|
||||
light_mask = 16385
|
||||
texture = ExtResource("14_b1bk4")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="Hover5"]
|
||||
range_layer_max = 10
|
||||
range_item_cull_mask = 16384
|
||||
texture = SubResource("GradientTexture2D_coit2")
|
||||
|
Loading…
Reference in New Issue
Block a user