# kids-war **Repository Path**: kevinlights/kids-war ## Basic Information - **Project Name**: kids-war - **Description**: 国家和城镇,战争,但是主要靠学习挣钱 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-20 - **Last Updated**: 2026-10-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 少年战记 · Kids War Chronicle A 2D top-down "mount and blade" style strategy web game, built as a single-page Vue app and playable on a home LAN. 一款 2D 俯视视角的「骑马与砍杀」风格策略网页游戏,用单页 Vue 应用实现,可在家庭局域网里直接游玩。 This README is written so a new contributor can get productive fast: read it top to bottom, then open the key files listed in the Maintenance section. 本 README 面向后续接手修改和扩展的人:从头往下读一遍,再打开「游戏维护」里列出的关键文件即可上手。 The game is drawn on `` and in CSS, with 32x32 pixel-art sprites generated by `tools/pixel-assets/generate.mjs`; there is no audio at all, so it loads instantly and runs fully offline. 游戏画面由 `` 与 CSS 绘制,像素素材是 `tools/pixel-assets/generate.mjs` 生成的 32×32 像素画;没有任何音频,因此加载即秒开,并且可以完全离线运行。 --- ## 目录 · Table of Contents 1. [项目介绍 · Introduction](#1-项目介绍--introduction) 2. [目标对象群体 · Target Audience](#2-目标对象群体--target-audience) 3. [主要玩法 · Core Gameplay](#3-主要玩法--core-gameplay) 4. [核心机制 · Core Mechanics](#4-核心机制--core-mechanics) 5. [势力与兵种 · Factions and Units](#5-势力与兵种--factions-and-units) 6. [游戏界面 · Game Screens](#6-游戏界面--game-screens) 7. [游戏操作 · Controls](#7-游戏操作--controls) 8. [游戏分享 · Sharing](#8-游戏分享--sharing) 9. [奖励与惩罚 · Rewards and Penalties](#9-奖励与惩罚--rewards-and-penalties) 10. [游戏数据 · Game Data](#10-游戏数据--game-data) 11. [手机端支持 · Mobile Support](#11-手机端支持--mobile-support) 12. [游戏部署 · Deployment](#12-游戏部署--deployment) 13. [游戏维护 · Maintenance](#13-游戏维护--maintenance) 14. [项目结构 · Project Structure](#14-项目结构--project-structure) 15. [常见问题 · Troubleshooting](#15-常见问题--troubleshooting) 16. [战团玩法对照 · Comparison with Mount & Blade](#16-战团玩法对照--comparison-with-mount-and-blade) 17. [学习主线的改进 · Improving the exam spine](#17-学习主线的改进--improving-the-exam-spine) --- ## 1. 项目介绍 · Introduction `kids-war-game` is a single-page Vue application: an endlessly generated world map that you walk around by tapping, settlements you enter to recruit troops and promote them along four ranks, town exams that pay gold for correct answers, and real-time battles where every squad gets its own order, formation and density. `kids-war-game` 是一个单页 Vue 应用:一张程序生成的无限世界地图,点击即可移动;进入村庄与城镇招募士兵并沿四个档位升级;在城镇参加考试,答对题目才能拿到金币;遇到敌人时先与敌将对话,可以逃跑或开战,开战后进入实时战斗,每支小队都能单独下达命令、设置队形与密度。 The core design rule is that **gold comes only from answering questions correctly**. 核心设计原则是:**金币只能通过答对题目获得**。 Recruiting, upgrading and supplies all cost gold, so progress in the war game is paid for by practising grade-3 / grade-4 English, Chinese, math, logic and general knowledge. 招募、升级和物资都要花金币,所以打仗的进度本质上是用三年级、四年级的英文、语文、数学、逻辑和百科知识练习换来的。 Tech stack · 技术栈: - Vue 3 (`