- 调整项目结构以适应打包需求
- 添加控制台便于在游戏运行过程中调试各项功能 - 添加 LevelRarity 表,增加了随关卡数动态调整的商品道具品质刷新概率
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
# 敌人基础属性表
|
||||
# Id MaxHealth Speed CoinDrop ExpDrop DropPercent
|
||||
# int int float int int float
|
||||
# 实体编号 策划备注 最大生命 移动速度 金币掉落 经验掉落 掉落概率
|
||||
101 近战敌人 20 3 2 1 0.3
|
||||
Binary file not shown.
@@ -1,11 +0,0 @@
|
||||
# 实体表
|
||||
# Id AssetName
|
||||
# int string
|
||||
# 实体编号 策划备注 资源名称
|
||||
1001 测试玩家 Player
|
||||
101 近战敌人 MeleeEnemy
|
||||
102 远程敌人 RemoteEnemy
|
||||
11 跟随相机 FollowCamera
|
||||
201 武器小刀 WeaponKnife
|
||||
10001 金币实体 CoinEntity
|
||||
10002 经验实体 ExpEntity
|
||||
@@ -1,9 +0,0 @@
|
||||
# 商品表
|
||||
# Id GoodsType GoodsTypeId
|
||||
# int GoodsType int
|
||||
# 商品编号 策划备注 商品类型 商品对应物品Id
|
||||
101 道具:药 Prop 101
|
||||
102 小刀 Weapon 201
|
||||
103 Prop 102
|
||||
104 Prop 103
|
||||
105 Prop 104
|
||||
@@ -1,14 +0,0 @@
|
||||
# 关卡配置表
|
||||
# Id EntityIds EntityCounts Interval Duration
|
||||
# int int[] int[] float[] int
|
||||
# 关卡号 策划备注 实体编号 每次出怪数量 每次出怪间隔 关卡时间
|
||||
1 第一关 [101] [5] [2] 60
|
||||
2 第二关 [101] [10] [3] 60
|
||||
3 第三关 [101] [10] [3] 60
|
||||
4 第四关 [101] [10] [3] 60
|
||||
5 第五关 [101] [10] [3] 60
|
||||
6 第六关 [101] [10] [3] 60
|
||||
7 第七关 [101] [10] [3] 60
|
||||
8 第八关 [101] [10] [3] 60
|
||||
9 第九关 [101] [10] [3] 60
|
||||
10 第十关 [101] [10] [3] 60
|
||||
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
# 道具表
|
||||
# Id Title IconAssetName Modifiers
|
||||
# int string string StatModifier[]
|
||||
# 奖励编号 策划备注 奖励名 图标资源名 道具属性
|
||||
101 测试道具 肌肉 Almighty_Icon [{"StatType":"Attack","Value":0.05,"IsPercent":true}]
|
||||
102 牙齿 Almighty_Icon [{"StatType":"Attack","Value":0.05,"IsPercent":true}]
|
||||
103 脑 Almighty_Icon [{"StatType":"Attack","Value":0.05,"IsPercent":true}]
|
||||
104 鼻子 Almighty_Icon [{"StatType":"Attack","Value":0.05,"IsPercent":true}]
|
||||
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
# 音乐配置表
|
||||
# Id AssetName
|
||||
# int string
|
||||
# 音乐编号 策划备注 资源名称
|
||||
1 菜单音乐 music_menu
|
||||
2 战斗音乐 music_background
|
||||
3 关于音乐 music_about
|
||||
@@ -1,24 +0,0 @@
|
||||
# 道具表
|
||||
# Id Title IconAssetName Rarity Price PriceRandomPercent Modifiers
|
||||
# int string string RarityType int float StatModifier[]
|
||||
# 道具编号 策划备注 道具名 图标资源名 道具品质 道具价格 价格浮动 道具属性
|
||||
101 道具_1 Almighty_Icon White 119 0.0500000007450581 [{"StatType":"Attack","Value":10,"IsPercent":false},{"StatType":"Defense","Value":12,"IsPercent":false}]
|
||||
102 道具_2 Almighty_Icon Green 225 0.0799999982118607 [{"StatType":"MaxHealth","Value":53,"IsPercent":false},{"StatType":"AttackSpeed","Value":0.09,"IsPercent":true},{"StatType":"Attack","Value":11,"IsPercent":false}]
|
||||
103 道具_3 Almighty_Icon Blue 329 0.100000001490116 [{"StatType":"Critical","Value":15,"IsPercent":false},{"StatType":"CriticalDamage","Value":21,"IsPercent":false},{"StatType":"Defense","Value":23,"IsPercent":false}]
|
||||
104 道具_4 Almighty_Icon Red 423 0.119999997317791 [{"StatType":"Defense","Value":79,"IsPercent":false}]
|
||||
105 道具_5 Almighty_Icon White 120 0.0500000007450581 [{"StatType":"MovementSpeed","Value":0.8,"IsPercent":false},{"StatType":"Attack","Value":10,"IsPercent":false}]
|
||||
106 道具_6 Almighty_Icon Green 195 0.0799999982118607 [{"StatType":"Dodge","Value":10,"IsPercent":false},{"StatType":"Attack","Value":12,"IsPercent":false},{"StatType":"MaxHealth","Value":44,"IsPercent":false}]
|
||||
107 道具_7 Almighty_Icon Blue 335 0.100000001490116 [{"StatType":"Defense","Value":62,"IsPercent":false}]
|
||||
108 道具_8 Almighty_Icon Red 433 0.119999997317791 [{"StatType":"Attack","Value":44,"IsPercent":false},{"StatType":"Dodge","Value":27,"IsPercent":false}]
|
||||
109 道具_9 Almighty_Icon White 121 0.0500000007450581 [{"StatType":"MaxHealth","Value":32,"IsPercent":false},{"StatType":"Attack","Value":7,"IsPercent":false},{"StatType":"Defense","Value":8,"IsPercent":false}]
|
||||
110 道具_10 Almighty_Icon Green 198 0.0799999982118607 [{"StatType":"AttackSpeed","Value":0.19,"IsPercent":true}]
|
||||
111 道具_11 Almighty_Icon Blue 341 0.100000001490116 [{"StatType":"Attack","Value":57,"IsPercent":false}]
|
||||
112 道具_12 Almighty_Icon Red 443 0.119999997317791 [{"StatType":"MaxHealth","Value":139,"IsPercent":false},{"StatType":"Critical","Value":27,"IsPercent":false}]
|
||||
113 道具_13 Almighty_Icon White 122 0.0500000007450581 [{"StatType":"Critical","Value":5,"IsPercent":false},{"StatType":"Dodge","Value":7,"IsPercent":false},{"StatType":"MovementSpeed","Value":0.6,"IsPercent":false}]
|
||||
114 道具_14 Almighty_Icon Green 201 0.0799999982118607 [{"StatType":"Defense","Value":38,"IsPercent":false}]
|
||||
115 道具_15 Almighty_Icon Blue 346 0.100000001490116 [{"StatType":"MovementSpeed","Value":1.6,"IsPercent":false},{"StatType":"Defense","Value":32,"IsPercent":false}]
|
||||
116 道具_16 Almighty_Icon Red 454 0.119999997317791 [{"StatType":"Dodge","Value":28,"IsPercent":false},{"StatType":"Defense","Value":24,"IsPercent":false},{"StatType":"Attack","Value":24,"IsPercent":false}]
|
||||
117 道具_17 Almighty_Icon White 124 0.0500000007450581 [{"StatType":"Defense","Value":23,"IsPercent":false}]
|
||||
118 道具_18 Almighty_Icon Green 204 0.0799999982118607 [{"StatType":"Attack","Value":17,"IsPercent":false},{"StatType":"MaxHealth","Value":69,"IsPercent":false}]
|
||||
119 道具_19 Almighty_Icon Blue 352 0.100000001490116 [{"StatType":"MaxHealth","Value":74,"IsPercent":false},{"StatType":"Attack","Value":19,"IsPercent":false},{"StatType":"Dodge","Value":20,"IsPercent":false}]
|
||||
120 道具_20 Almighty_Icon Red 464 0.119999997317791 [{"StatType":"AttackSpeed","Value":0.15,"IsPercent":true},{"StatType":"Attack","Value":29,"IsPercent":false},{"StatType":"Defense","Value":27,"IsPercent":false}]
|
||||
@@ -1,6 +0,0 @@
|
||||
# 角色表 ROUND(100*(1.1^L3),0)
|
||||
# Id RoleName IconAssetName MaxHp Speed Coin WeaponCapacity InitialProperty InitialItem Lv0 Lv1 Lv2 Lv3 Lv4 Lv5 Lv6 Lv7 Lv8 Lv9 Lv10 Lv11 Lv12 Lv13 Lv14 Lv15 Lv16 Lv17 Lv18 Lv19 Lv20 Lv21 Lv22 Lv23 Lv24 Lv25 Lv26 Lv27 Lv28 Lv29 Lv30 Lv31 Lv32 Lv33 Lv34 Lv35 Lv36 Lv37 Lv38 Lv39 Lv40 Lv41 Lv42 Lv43 Lv44 Lv45 Lv46 Lv47 Lv48 Lv49 Lv50 Lv51 Lv52 Lv53 Lv54 Lv55 Lv56 Lv57 Lv58 Lv59 Lv60
|
||||
# int string string int float int int Modifier[] Item[] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
||||
# 角色编号 策划备注 角色名称 图标资源名 初始最大生命 初始速度 初始金币 最大持有武器数 初始额外属性 初始额外物品 每级升级所需经验
|
||||
101 全能者 全能者 Almighty_Icon 100 6 10 6 [{"StatType":"MovementSpeed","Value":0.5,"IsPercent":false},{"StatType":"MaxHealth","Value":0.2,"IsPercent":true}] [] 100 110 121 133 146 161 177 195 214 236 259 285 314 345 380 418 459 505 556 612 673 740 814 895 985 1083 1192 1311 1442 1586 1745 1919 2111 2323 2555 2810 3091 3400 3740 4114 4526 4979 5476 6024 6626 7289 8018 8820 9702 10672 11739 12913 14204 15625 17187 18906 20797 22876 25164 27680 30448
|
||||
102 老人 老人 Old_Man_Icon 200 4 5 6 [] [] 100 112 125 140 157 176 197 221 248 277 311 348 390 436 489 547 613 687 769 861 965 1080 1210 1355 1518 1700 1904 2132 2388 2675 2996 3356 3758 4209 4714 5280 5914 6623 7418 8308 9305 10422 11672 13073 14642 16399 18367 20571 23039 25804 28900 32368 36252 40603 45475 50932 57044 63889 71556 80143 89760
|
||||
@@ -1,8 +0,0 @@
|
||||
# 场景配置表
|
||||
# Id AssetName BackgroundMusicId
|
||||
# int string int
|
||||
# 场景编号 备注 资源名称 背景音乐编号
|
||||
1 菜单场景 Menu 1
|
||||
2 战斗场景 Main 2
|
||||
3 压力测试场景 StressTest 0
|
||||
4 游戏主场景 Game 0
|
||||
@@ -1,9 +0,0 @@
|
||||
# 声音配置表
|
||||
# Id AssetName Priority Loop Volume SpatialBlend MaxDistance
|
||||
# int string int bool float float float
|
||||
# 声音编号 策划备注 资源名称 优先级(默认0,128最高,-128最低) 是否循环 音量(0~1) 声音空间混合量(0为2D,1为3D,中间值混合效果) 声音最大距离
|
||||
10000 玩家子弹 weapon_player 0 False 1 0 100
|
||||
10001 敌人子弹 weapon_enemy 0 False 1 0 100
|
||||
20000 玩家爆炸 explosion_player 0 False 1 0 100
|
||||
20001 敌人爆炸 explosion_enemy 0 False 1 0 100
|
||||
20002 小行星爆炸 explosion_asteroid 0 False 1 0 100
|
||||
@@ -1,14 +0,0 @@
|
||||
# 界面配置表
|
||||
# Id AssetName UIGroupName AllowMultiInstance PauseCoveredUIForm
|
||||
# int string string bool bool
|
||||
# 界面编号 策划备注 资源名称 界面组名称 是否允许多个界面实例 是否暂停被其覆盖的界面
|
||||
1 弹出框 DialogForm Default True True
|
||||
100 主菜单 MenuForm Default False True
|
||||
101 设置 SettingForm Default False True
|
||||
102 关于 AboutForm Default False True
|
||||
200 开始菜单 StartMenuForm Default False True
|
||||
201 角色选择页 SelectRoleForm Default False True
|
||||
202 游戏商店页 ShopForm Default False True
|
||||
203 游戏HUD HudForm HUD False True
|
||||
204 角色升级奖励页 LevelUpForm Default False True
|
||||
205 物品信息展示 DisplayItemInfoForm Default False False
|
||||
@@ -1,6 +0,0 @@
|
||||
# 声音配置表
|
||||
# Id AssetName Priority Volume
|
||||
# int string int float
|
||||
# 声音编号 策划备注 资源名称 优先级(默认0,128最高,-128最低) 音量(0~1)
|
||||
10000 选择音效 select 0 1
|
||||
10001 点击音效 click 0 1
|
||||
@@ -1,6 +0,0 @@
|
||||
# 武器表
|
||||
# Id Title IconAssetName Rarity Price PriceRandomPercent Attack Cooldown AttackRange AttackSoundId Pramas Modifiers
|
||||
# int string string RarityType int float int float float int string[] StatModifier[]
|
||||
# 武器编号 策划备注 武器名 图标资源名 道具品质 武器价格 价格浮动 伤害 冷却 范围 攻击音效编号 额外参数 额外属性
|
||||
201 玩家武器 小刀 Almighty_Icon White 120 0.05 100 1.5 3 10000 [] []
|
||||
202 手枪 Almighty_Icon White 130 0.05 120 1 10 10000 [] []
|
||||
Binary file not shown.
+2
-8
@@ -1,6 +1,5 @@
|
||||
import pandas as pd
|
||||
import os
|
||||
import shutil
|
||||
import csv
|
||||
|
||||
def convert_excel_to_txt(folder_path='.'):
|
||||
@@ -21,8 +20,8 @@ def convert_excel_to_txt(folder_path='.'):
|
||||
continue
|
||||
if file_name.endswith(('.xlsx', '.xls')):
|
||||
file_path = os.path.join(scan_dir, file_name)
|
||||
base_name = os.path.splitext(file_path)[0]
|
||||
output_file = base_name.replace(os.path.basename(base_name), os.path.basename(base_name)) + '.txt'
|
||||
base_name = os.path.splitext(file_name)[0]
|
||||
output_file = os.path.join(target_dir, f"{base_name}.txt")
|
||||
|
||||
print(f"正在处理: {file_name}...")
|
||||
|
||||
@@ -47,12 +46,7 @@ def convert_excel_to_txt(folder_path='.'):
|
||||
escapechar='\\'
|
||||
)
|
||||
|
||||
# 复制文件到目标目录
|
||||
target_file = os.path.join(target_dir, os.path.basename(output_file))
|
||||
shutil.copy2(output_file, target_file)
|
||||
|
||||
print(f"成功转换 -> {output_file}")
|
||||
print(f"已复制到 -> {target_file}")
|
||||
count += 1
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user