refactor(game): 重构游戏地平线与怪物生成逻辑,并更新UI资源

- 将游戏地平线从120调整为-215,以改变战斗场景基线
- 移除多线路怪物生成逻辑,统一使用地平线作为y坐标
- 清理卡牌系统中的等级升级相关代码,简化事件处理
- 更新角色控制器UI布局和样式,调整组件位置和尺寸
- 替换纹理图集资源,移除旧版背景图,添加新版分层背景
- 删除多个未使用的meta配置文件
This commit is contained in:
walkpan
2026-01-29 22:51:16 +08:00
parent 4ac3d55990
commit bff20f0ded
14 changed files with 1844 additions and 1557 deletions

View File

@@ -717,7 +717,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -517.5,
"y": -562.5,
"z": 0
},
"_lrot": {
@@ -758,7 +758,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 710,
"height": 230
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -3394,7 +3394,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -436.42,
"y": -577.5,
"z": 0
},
"_lrot": {
@@ -3436,7 +3436,7 @@
"__id__": 144
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 152
@@ -3451,7 +3451,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": -315,
"y": 0,
"y": 30,
"z": 0
},
"_lrot": {
@@ -3938,8 +3938,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -115,
"y": 0,
"x": -315,
"y": 30,
"z": 0
},
"_lrot": {
@@ -4429,8 +4429,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 85,
"y": 0,
"x": -115,
"y": 30,
"z": 0
},
"_lrot": {
@@ -4917,8 +4917,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -315,
"y": -40,
"x": 85,
"y": 30,
"z": 0
},
"_lrot": {
@@ -5409,8 +5409,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -115,
"y": -40,
"x": -315,
"y": -10,
"z": 0
},
"_lrot": {
@@ -5897,8 +5897,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 85,
"y": -40,
"x": -115,
"y": -10,
"z": 0
},
"_lrot": {
@@ -6370,7 +6370,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 690,
"height": 40
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -6400,7 +6400,7 @@
"_left": 15,
"_right": 15.000000000000028,
"_top": 85,
"_bottom": 181.07999999999998,
"_bottom": 10,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -6500,7 +6500,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -342.5,
"y": -432.5,
"z": 0
},
"_lrot": {
@@ -6571,7 +6571,7 @@
"_left": 10,
"_right": 10,
"_top": 140,
"_bottom": 245,
"_bottom": 155,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -6678,7 +6678,7 @@
"__id__": 303
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 317
@@ -6693,7 +6693,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -477.5,
"y": -508.821,
"z": 0
},
"_lrot": {
@@ -6844,7 +6844,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 136.4,
"height": 40
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -6933,7 +6933,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 682,
"height": 40
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7178,8 +7178,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 50.4
"width": 200,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7214,13 +7214,13 @@
"b": 255,
"a": 255
},
"_string": "{{0}}%",
"_string": "Lv .{{1}} {{0}}%",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 26,
"_fontSize": 25,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_lineHeight": 20,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
@@ -7276,7 +7276,8 @@
"watchPath": "",
"labelType": "cc.Label",
"watchPathArr": [
"data.hero.exp_pre"
"data.hero.exp_pre",
"data.hero.lv"
],
"_id": ""
},
@@ -7351,7 +7352,7 @@
"__id__": 304
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 312
@@ -7418,7 +7419,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": 236.897,
"y": 0,
"z": 0
},
@@ -7459,8 +7460,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110.73828125,
"height": 54.4
"width": 84.78125,
"height": 35.5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7495,13 +7496,13 @@
"b": 255,
"a": 255
},
"_string": " {{0}} ",
"_string": " Lv.{{0}} ",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_lineHeight": 25,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
@@ -7592,8 +7593,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 54.5,
"height": 52
"width": 40,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7614,7 +7615,7 @@
"node": {
"__id__": 303
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 315
},
@@ -7679,7 +7680,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 680,
"height": 30
"height": 15
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7709,7 +7710,7 @@
"_left": 20,
"_right": 20,
"_top": 0,
"_bottom": 145,
"_bottom": 121.17899999999997,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -14011,7 +14012,7 @@
"__id__": 677
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 706
@@ -17370,7 +17371,7 @@
"__id__": 1421
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 1690

View File

@@ -17,347 +17,7 @@
<key>spriteSourceSize</key>
<string>{486,999}</string>
<key>textureRect</key>
<string>{{1,1},{486,999}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Lobby_Bg_center.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{330,347}</string>
<key>spriteSourceSize</key>
<string>{330,347}</string>
<key>textureRect</key>
<string>{{862,1199},{330,347}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>Background_Lobby_bg_bottom.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-3}</string>
<key>spriteSize</key>
<string>{486,136}</string>
<key>spriteSourceSize</key>
<string>{486,142}</string>
<key>textureRect</key>
<string>{{626,1531},{486,136}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage01_Bg.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-7}</string>
<key>spriteSize</key>
<string>{300,518}</string>
<key>spriteSourceSize</key>
<string>{300,532}</string>
<key>textureRect</key>
<string>{{977,1},{300,518}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage01_Bg_Bottom.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{486,91}</string>
<key>spriteSourceSize</key>
<string>{486,91}</string>
<key>textureRect</key>
<string>{{1211,1199},{486,91}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>Background_Stage01_Icon.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{378,293}</string>
<key>spriteSourceSize</key>
<string>{378,293}</string>
<key>textureRect</key>
<string>{{1,1499},{378,293}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage02_Bg_bottom_1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{201,71}</string>
<key>spriteSourceSize</key>
<string>{201,71}</string>
<key>textureRect</key>
<string>{{489,1448},{201,71}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage02_Bg_bottom_2.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{120,69}</string>
<key>spriteSourceSize</key>
<string>{120,69}</string>
<key>textureRect</key>
<string>{{692,1448},{120,69}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage02_icon.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{437,343}</string>
<key>spriteSourceSize</key>
<string>{437,343}</string>
<key>textureRect</key>
<string>{{489,710},{437,343}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage03_Bg.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{486,339}</string>
<key>spriteSourceSize</key>
<string>{486,339}</string>
<key>textureRect</key>
<string>{{489,369},{486,339}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage03_Bg_bottom.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{249,65}</string>
<key>spriteSourceSize</key>
<string>{249,65}</string>
<key>textureRect</key>
<string>{{381,1499},{249,65}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>Background_Stage03_bg_obj_1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{50,37}</string>
<key>spriteSourceSize</key>
<string>{50,37}</string>
<key>textureRect</key>
<string>{{862,1055},{50,37}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage03_bg_obj_2.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{20,16}</string>
<key>spriteSourceSize</key>
<string>{20,16}</string>
<key>textureRect</key>
<string>{{448,1499},{20,16}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>Background_Stage03_icon.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{352,299}</string>
<key>spriteSourceSize</key>
<string>{352,299}</string>
<key>textureRect</key>
<string>{{928,898},{352,299}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage04_icon.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{371,391}</string>
<key>spriteSourceSize</key>
<string>{371,391}</string>
<key>textureRect</key>
<string>{{489,1055},{371,391}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage05_bg.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-2}</string>
<key>spriteSize</key>
<string>{486,366}</string>
<key>spriteSourceSize</key>
<string>{486,370}</string>
<key>textureRect</key>
<string>{{489,1},{486,366}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage05_bg_obj_1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{42,94}</string>
<key>spriteSourceSize</key>
<string>{42,94}</string>
<key>textureRect</key>
<string>{{928,710},{42,94}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage05_bg_obj_2.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{72,104}</string>
<key>spriteSourceSize</key>
<string>{72,104}</string>
<key>textureRect</key>
<string>{{1114,1531},{72,104}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage05_bg_obj_3.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{176,122}</string>
<key>spriteSourceSize</key>
<string>{176,122}</string>
<key>textureRect</key>
<string>{{448,1521},{176,122}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage05_bg_obj_4.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{176,121}</string>
<key>spriteSourceSize</key>
<string>{176,121}</string>
<key>textureRect</key>
<string>{{962,1669},{176,121}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>Background_Stage05_icon.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{375,315}</string>
<key>spriteSourceSize</key>
<string>{375,315}</string>
<key>textureRect</key>
<string>{{977,521},{375,315}}</string>
<string>{{963,1},{486,999}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -374,9 +34,9 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{1279,1},{16,512}}</string>
<string>{{1,1125},{16,512}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>BackgroundsGradient14.png</key>
<dict>
@@ -391,7 +51,7 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{448,1669},{16,512}}</string>
<string>{{1,1143},{16,512}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -408,9 +68,9 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{448,1687},{16,512}}</string>
<string>{{1925,489},{16,512}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>BackgroundsGradient19.png</key>
<dict>
@@ -425,9 +85,9 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{448,1705},{16,512}}</string>
<string>{{1943,489},{16,512}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>BackgroundsGradient20.png</key>
<dict>
@@ -442,7 +102,7 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{448,1723},{16,512}}</string>
<string>{{515,1131},{16,512}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -459,7 +119,7 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{448,1741},{16,512}}</string>
<string>{{515,1149},{16,512}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -476,7 +136,7 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{381,1759},{16,512}}</string>
<string>{{1029,1131},{16,512}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -493,11 +153,11 @@
<key>spriteSourceSize</key>
<string>{16,512}</string>
<key>textureRect</key>
<string>{{381,1777},{16,512}}</string>
<string>{{1029,1149},{16,512}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>Bg.png</key>
<key>l1_sky.png</key>
<dict>
<key>aliases</key>
<array/>
@@ -506,14 +166,116 @@
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{486,495}</string>
<string>{960,540}</string>
<key>spriteSourceSize</key>
<string>{486,495}</string>
<string>{960,540}</string>
<key>textureRect</key>
<string>{{1,1002},{486,495}}</string>
<string>{{1,1},{960,540}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>l2_mountains.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-93}</string>
<key>spriteSize</key>
<string>{960,354}</string>
<key>spriteSourceSize</key>
<string>{960,540}</string>
<key>textureRect</key>
<string>{{1,543},{960,354}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>l3_clouds.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{-9,127}</string>
<key>spriteSize</key>
<string>{832,142}</string>
<key>spriteSourceSize</key>
<string>{960,540}</string>
<key>textureRect</key>
<string>{{963,987},{832,142}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>l4_bg-ground01.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-158}</string>
<key>spriteSize</key>
<string>{960,224}</string>
<key>spriteSourceSize</key>
<string>{960,540}</string>
<key>textureRect</key>
<string>{{1,899},{960,224}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>l5_bg-ground02.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-158}</string>
<key>spriteSize</key>
<string>{960,224}</string>
<key>spriteSourceSize</key>
<string>{960,540}</string>
<key>textureRect</key>
<string>{{963,761},{960,224}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>l6_ground.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,-135}</string>
<key>spriteSize</key>
<string>{960,270}</string>
<key>spriteSourceSize</key>
<string>{960,540}</string>
<key>textureRect</key>
<string>{{963,489},{960,270}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>l7_ground.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{960,22}</string>
<key>spriteSourceSize</key>
<string>{960,22}</string>
<key>textureRect</key>
<string>{{1964,1},{960,22}}</string>
<key>textureRotated</key>
<true/>
</dict>
</dict>
<key>metadata</key>
<dict>
@@ -526,9 +288,9 @@
<key>realTextureFileName</key>
<string>umps.png</string>
<key>size</key>
<string>{1303,1794}</string>
<string>{1987,1166}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:89a3ad42ed0c268a7d8564b013594dcb:f5caf18e77d7152f48faeeed97a7990b:318abc3a8f3ad8d09018e87dff1f2449$</string>
<string>$TexturePacker:SmartUpdate:9163736a3f4a468332e628a9e68b5f85:60ccae662d592612b5b381325f26b442:318abc3a8f3ad8d09018e87dff1f2449$</string>
<key>textureFileName</key>
<string>umps.png</string>
</dict>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 512 KiB