back to home

huangkaoya / redalert2

红色警戒2源代码 Red Alert2 Source Code

View on GitHub
637 stars
173 forks
2 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing huangkaoya/redalert2 in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/huangkaoya/redalert2)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

RA2WEB React 免责声明:这是基于《时空分裂》中文版RA2WEB www.ra2web.com 的分析而开发,并意图基于最新的react和three版本进行重构。 但项目所有权利(包括收益权)归《时空分裂》/RA2WEB负责人所有。未经《时空分裂》的所有者/RA2WEB负责人许可,严禁用于任何商业行为。 需要注意的是,《时空分裂》的所有者从未以任何方式开源游戏客户端代码(即便存在诸如mod-sdk之类的周边开源内容)。本项目运行产生的BUG、功能不完善,不能等同视为对《时空分裂》的名誉贬损。任何基于本项目开展商业行为,包括但不限于植入广告、开发“弹幕红警”收受礼物获利、直接封装收费、以“作者”身份骗取赞助和充电收益等,均视为对《时空分裂》原作者Alexandru Ciucă和RA2WEB的侵权。 红色警戒2网页版,一款经典的即时战略类游戏的完整TypeScript重构版本,使用React + TypeScript + Vite + Three.js构建。 Disclaimer This project is developed based on the analysis of the Chinese version of Chronodivide — RA2WEB (www.ra2web.com), and is intended to be refactored using the latest versions of React and Three.js. All rights to this project, including profit rights, belong to the owner of Chronodivide. Without permission from the owner of Chronodivide, any commercial use of this project is strictly prohibited. It should be noted that the owner of Chronodivide has never open-sourced the game client code in any form, even though some peripheral open‑source content such as a mod‑SDK exists. Bugs, incomplete functions or other issues arising from the operation of this project shall not be regarded as damage to the reputation of Chronodivide. Any commercial activities conducted based on this project, including but not limited to placing advertisements, developing a “bullet-screen Red Alert” mode to profit from gifts, directly packaging and selling the project, or fraudulently obtaining sponsorship and donation revenue by claiming to be the “author”, shall be deemed as infringement upon the original author of Chronodivide, Alexandru Ciucă, and RA2WEB. 项目简介 本项目是使用Typescript编写,完全对标“红色警戒2”的游戏引擎,本地自行导入红色警戒2美术素材后,就可以获得类似红警2的游玩体验 当前技术状态 运行时和构建 • 包管理与本地运行时: • 开发服务器: • UI: + • 类型系统: • 渲染: • 自动化: • 默认开发和预览端口: 快速开始 环境要求 • • 现代浏览器,推荐 Chrome / Edge • 浏览器需要支持: • - • 安装与启动 默认访问地址: 生产构建与预览: 类型检查: 自动化回归 仓库当前已经不再只依赖手点验证。 下维护了一组可直接执行的回归脚本,主要覆盖大厅、进图、机制和 tester 入口。 常用命令包括: 这些脚本的产物默认会写入 ,便于回看截图和 JSON 结果。 测试入口 主菜单中的测试入口目前分为三类: • 素材测试 • - • 2. 机制测试 • - • - • 场景测试 • - • 这些 tester 页面不是孤立 Demo,而是当前仓库里很重要的调试和回归入口。页面左侧面板状态会同步到调试状态对象,自动化脚本也会直接使用这些入口验证渲染和交互结果。 技术架构 核心技术栈 • • • • • • • • • • • 目录说明 主要模块 • :three 渲染层、材质、批处理、viewport、lighting • :游戏对象到可视对象的桥接层 • :音频混音、音乐、音效播放 • :资源导入、CDN 加载、缓存与目录处理 • :单位、建筑、抛射体、trait、locomotor • :INI 规则读取与对象规则构建 • :地图触发器、条件、执行器 • :核弹、闪电风暴、超时空等超武逻辑 • :主菜单、地图选择、大厅、选项 • :游戏内 HUD、世界交互、菜单 • :React 组件 • :自定义 UI 渲染桥接 • 提供素材、机制、场景三类 tester 页面 • 当前是调试结果可视化和自动化断言的重要入口 开发命令 文档与调试约定 • 开发端口固定为 • 主要技术对齐记录维护在 • 自动化产物默认输出到 • 构建通过并不等于所有行为已完全对齐,功能层面仍应优先参考专项脚本和实际流程验证 贡献建议 提交改动前,至少建议执行: 如果改动涉及大厅、资源加载、进图、HUD、机制或 tester,请补跑相应的 脚本。 许可证 本项目基于GNU General Public License v3.0(GPL-3.0)许可证开源。详见 LICENSE 文件。 重要说明 • 可以自由使用、修改和分发,除非取得RA2WEB负责人许可,否则严禁用于商业目的 • 必须保留版权声明和许可证文本 • 任何衍生作品必须使用相同的 GPL-3.0 许可证 • 必须提供源代码,包括修改后的版本 • 不能将 GPL 代码集成到专有软件中 **注意:** 本项目仅用于学习和研究目的。红色警戒2是EA公司的知识产权,导入美术素材时请确保拥有合法的游戏副本。 致谢 • RA2WEB.COM • Three.js 社区 • React 团队 • TypeScript 团队 • 相关开源依赖维护者 • 红警 2 玩家社区 --- **免责声明**: 本项目仅供学习研究使用,不用于商业目的。红色警戒2及相关商标归EA公司所有。 ---