Skip to content

2002yy/BallWar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BallWar / 领土战争

BallWar 是一个基于 Godot 4.6 的 2D 领土争夺原型。四个阵营围绕中心方格战场展开对抗:角落炮台负责发射,外部控制仓决定节奏,子弹会占领或重涂格子,胜负由模式与局势共同决定。
BallWar is a Godot 4.6 2D territory-control prototype built around four factions, corner turrets, chamber-driven firing rhythm, and map ownership pressure.

This repository preserves the reconstructed local development history from v1.7 to the current mainline, with tags for key milestones and versioned README_v*.md notes for detailed stage history.

当前状态 / Current Status

  • 主线版本 / Stable line: v2.1.10
  • 当前重点 / Current focus:
    • 安全加固(存档大小限制、路径遍历防护、字段校验)
    • 性能优化(O(n²)→O(1)、缓存、擦除替代查找+删除)
    • 开始菜单按钮可发现性改进

v2.1.10 的主要变化 / Main changes in v2.1.10:

  • 存档安全:文件大小限制 1MB、路径过滤、嵌套数组类型校验
  • 性能:Turret 队列统计 O(n²)→O(1)、has_method 缓存、地图尺寸缓存、keys()→直接遍历、find+remove_aterasepriority Dictionary→const
  • UI:开始按钮全宽高亮、文字对比度提升
  • Export:所有 Windows 版本改用 embed_pck=false + zip 打包

核心玩法 / Core Loop

  • 四个阵营在方格战场上争夺领地
  • 每个阵营拥有一个角落炮台和一个控制仓
  • 控制球经过不同出口会影响发射倍数和发射时机
  • 子弹命中异色格会改写归属,命中炮台会造成伤害
  • 支持多种胜利模式:basicoccupationtimedwild

运行方式 / Running The Project

推荐使用 Godot 4.6 打开仓库根目录下的 project.godot
For headless checks, replace <godot_console> with your local Godot console executable.

<godot_console> --path . --script res://scripts/tests/SmokeTestRunner.gd
<godot_console> --path . --script res://scripts/tests/SaveFlowControllerTestRunner.gd
<godot_console> --path . --script res://scripts/tests/IntegrationTestRunner.gd
<godot_console> --path . --script res://scripts/tests/GameStateCoordinatorTestRunner.gd

文档入口 / Documentation

版本历史 / Version History

  • 详细历史保留在 README_v*.md
  • Git tags 对应重建后的关键里程碑
  • CHANGELOG.md 只保留精简主线,不替代版本阶段文档

游戏截图 / Screenshots

开始界面 游戏初始
游戏中场 事件画面
胜利结果

说明 / Notes

  • 部分终端里中文可能显示乱码,这通常是显示编码问题,不代表文件本体损坏。
  • 历史版本 README_v*.md 会继续保留;其余临时审计、迁移、补丁和目录说明类 Markdown 已尽量收敛到更少的常驻文档中。
  • art_reference/free_ui_assets/ 保留原始研究与下载痕迹,assets/ 只保留整理后的可用资源。

About

领土战争 / Marble Dominion Ricochet War — 四阵营 2D 领土争夺 · Godot 4.6 · GDScript

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages