初始化仓库

This commit is contained in:
SepComet
2026-02-07 19:38:49 +08:00
commit 88641dae11
1540 changed files with 371772 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# 敌人基础属性表
# Id MaxHealth Speed CoinDrop ExpDrop DropPercent
# int int float int int float
# 实体编号 策划备注 最大生命 移动速度 金币掉落 经验掉落 掉落概率
101 近战敌人 20 3 2 1 0.3
Binary file not shown.
+11
View File
@@ -0,0 +1,11 @@
# 实体表
# Id AssetName
# int string
# 实体编号 策划备注 资源名称
1001 测试玩家 Player
101 近战敌人 MeleeEnemy
102 远程敌人 RemoteEnemy
11 跟随相机 FollowCamera
201 武器小刀 WeaponKnife
10001 金币实体 CoinEntity
10002 经验实体 ExpEntity
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
# 商品表
# Id GoodsType MinPrice MaxPrice GoodsTypeId
# int GoodsType int int int
# 商品编号 策划备注 商品类型 最低价格 最高价格 商品对应物品Id
101 道具:药 Prop 100 200 101
102 小刀 Weapon 120 150 201
103 Prop 200 230 102
104 Prop 210 250 103
105 Prop 80 100 104
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
# 关卡配置表
# 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.
+7
View File
@@ -0,0 +1,7 @@
# 音乐配置表
# Id AssetName
# int string
# 音乐编号 策划备注 资源名称
1 菜单音乐 music_menu
2 战斗音乐 music_background
3 关于音乐 music_about
Binary file not shown.
+8
View File
@@ -0,0 +1,8 @@
# 道具表
# Id Title IconAssetName Modifiers
# int string string StatModifier[]
# 道具编号 策划备注 道具名 图标资源名 道具属性
101 测试道具 药 Almighty_Icon [{"StatType":"MovementSpeed","Value":0.5,"IsPercent":false},{"StatType":"MaxHealth","Value":0.2,"IsPercent":true}]
102 小药 Almighty_Icon [{"StatType":"MovementSpeed","Value":0.5,"IsPercent":false},{"StatType":"MaxHealth","Value":0.2,"IsPercent":true}]
103 中药 Almighty_Icon [{"StatType":"Critical","Value":20,"IsPercent":false},{"StatType":"Defense","Value":1,"IsPercent":false}]
104 大药 Almighty_Icon [{"StatType":"Attack","Value":2,"IsPercent":false},{"StatType":"AttackSpeed","Value":0.1,"IsPercent":true}]
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
# 角色表 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 4 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 3 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
Binary file not shown.
+8
View File
@@ -0,0 +1,8 @@
# 场景配置表
# Id AssetName BackgroundMusicId
# int string int
# 场景编号 备注 资源名称 背景音乐编号
1 菜单场景 Menu 1
2 战斗场景 Main 2
3 压力测试场景 StressTest 0
4 游戏主场景 Game 0
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
# 声音配置表
# 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
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
# 界面配置表
# 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 Default False True
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
# 声音配置表
# Id AssetName Priority Volume
# int string int float
# 声音编号 策划备注 资源名称 优先级(默认0,128最高,-128最低) 音量(0~1)
10000 选择音效 select 0 1
10001 点击音效 click 0 1
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
# 武器表
# Id Title IconAssetName Attack Cooldown AttackRange AttackSoundId Pramas Modifiers
# int string string int float float int string[] StatModifier[]
# 武器编号 策划备注 武器名 图标资源名 伤害 冷却 范围 攻击音效编号 额外参数 额外属性
201 玩家武器 小刀 Almighty_Icon 100 1.5 3 10000 [] []
202 手枪 Almighty_Icon 120 1 10 10000 [] []
Binary file not shown.
+62
View File
@@ -0,0 +1,62 @@
import pandas as pd
import os
import shutil
import csv
def convert_excel_to_txt(folder_path='.'):
# 计数器,用于最后汇总
count = 0
target_dir = os.path.join(os.path.dirname(__file__), '../Assets/GameMain/DataTables')
target_dir = os.path.abspath(target_dir)
# 确保目标目录存在
os.makedirs(target_dir, exist_ok=True)
for file_name in os.listdir(folder_path):
if file_name.endswith(('.xlsx', '.xls')):
file_path = os.path.join(folder_path, 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'
print(f"正在处理: {file_name}...")
try:
# 读取 Excel
df = pd.read_excel(file_path, header=None)
# 预处理:将 NaN 替换为空字符串,否则导出会变成 "nan"
df = df.fillna('')
# 导出设置:
# 1. sep='\t' : 使用制表符分隔
# 2. quoting=csv.QUOTE_NONE : 不使用引号包裹字段,也不会把 " 变成 ""
# 3. escapechar='\\' : 如果单元格内恰好有 Tab 键,会用反斜杠转义,防止数据列错位
df.to_csv(
output_file,
sep='\t',
index=False,
header=False,
encoding='utf-8',
quoting=csv.QUOTE_NONE,
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:
print(f"处理 {file_name} 时出错: {e}")
print(f"\n任务完成!共转换了 {count} 个文件。")
if __name__ == "__main__":
convert_excel_to_txt('.')
# --- 关键修改:在这里添加暂停 ---
print("\n" + "="*30)
input("按回车键(Enter)退出程序...")