初始化仓库

This commit is contained in:
SepComet
2026-02-08 17:08:52 +08:00
commit 8763955323
1132 changed files with 285326 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# 实体表
# Id AssetName
# int string
# 实体编号 策划备注 资源名称
10000 玩家战机 PlayerShip
10001 敌人战机 EnemyShip
20000 玩家推进器 PlayerEngine
20001 敌人推进器 EnemyEngine
30000 默认武器 DefaultWeapon
40000 默认装甲 DefaultArmor
50000 玩家子弹 PlayerBolt
50001 敌人子弹 EnemyBolt
60000 小行星 Asteroid01
60001 小行星 Asteroid02
60002 小行星 Asteroid03
70000 玩家死亡特效 PlayerExplosion
70001 敌人死亡特效 EnemyExplosion
70002 小行星死亡特效 AsteroidExplosion
101 测试玩家 Player
1001 测试敌人 Enemy
11 跟随相机 FollowCamera
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 AssetName BackgroundMusicId
# int string int
# 场景编号 备注 资源名称 背景音乐编号
1 菜单场景 Menu 1
2 战斗场景 Main 2
3 压力测试场景 StressTest 0
4 玩法A测试场景 GameplayA 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.
+9
View File
@@ -0,0 +1,9 @@
# 界��置表
# 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
103 ºËÐÄÍæ·¨A MVC²âÊÔ½çÃæ CoreGameplayAMvcForm 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.
+5
View File
@@ -0,0 +1,5 @@
# 武器表
# Id Attack AttackInterval BulletId BulletSpeed BulletSoundId
# int int float int float int
# 武器编号 策划备注 攻击力 攻击间隔 子弹编号 子弹速度 子弹声音编号
30000 玩家武器 100 0.2 50000 20 10000
Binary file not shown.
+45
View File
@@ -0,0 +1,45 @@
import pandas as pd
import os
import shutil
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:
df = pd.read_excel(file_path, header=None)
df.to_csv(output_file, sep='\t', index=False, header=False, encoding='utf-8')
# 复制文件到目标目录
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)退出程序...")