概述
设计需求 (DR)
本模组为 Minecraft 添加了一个名为 Spectrum Rush 的小游戏。游戏开始时,会在公共出生点周围放置每种颜色各 n 只羊(共 n*c 只)。玩家需要在限定时间内尽可能多地收集对应颜色的羊毛物品。在游戏结束时(操作员使用停止命令或所有回合结束),得分最高的玩家获胜,并向所有玩家展示排行榜。
序列图

配置
SHEEP_COLORS: 包含 c 个元素的列表。每个元素代表一种羊/羊毛的颜色。
COUNT_SHEEP_EACH_COLOR: 游戏开始后每种颜色的羊会生成多少只。
MAX_SPAWN_RADIUS: 游戏区域将从 (x0 - MAX_SPAWN_RADIUS, z0 - MAX_SPAWN_RADIUS) 延伸到 (x0 + MAX_SPAWN_RADIUS, z0 + MAX_SPAWN_RADIUS),其中 (x0, z0) 表示公共出生点。
EACH_ROUND_TICKS: 每个回合的刻数(秒 * 20)。
TOTAL_ROUNDS: 我们将进行多少个回合。在每一回合中,玩家将被分配一个单一任务,即收集特定颜色的羊毛物品。
SHEEP_SPEED_MODIFIER: 羊的速度修正值。正值会使羊移动得更快,从而增加游戏难度;负值会使羊移动得更慢。
Abstract
Design Requirements (DR)
This mod adds a mini-game named Spectrum Rush to Minecraft. When the game starts, n sheep of each of c colors (n*c in total) will be placed around the shared spawn point. Players are asked to collect wool items with corresponding colors within the specified time as many as possible. At the end of the game (operators use the stopping command or all rounds are finished), the player who scores the most wins the game, and a ranking list will be shown to all players.
Sequence Diagram

Configuration
SHEEP_COLORS: A list with c elements. Each element represents a color of sheep/wool.
COUNT_SHEEP_EACH_COLOR: How many sheep of each color will spawn after the game starts.
MAX_SPAWN_RADIUS: The game area will be from (x0 - MAX_SPAWN_RADIUS, z0 - MAX_SPAWN_RADIUS) to (x0 + MAX_SPAWN_RADIUS, z0 + MAX_SPAWN_RADIUS), where (x0, z0) represents the shared spawn point.
EACH_ROUND_TICKS: Ticks (seconds * 20) of each round.
TOTAL_ROUNDS: How many rounds will we play. In each round, players will be given a single task to collect a certain color of wool item.
SHEEP_SPEED_MODIFIER: The speed modifier of sheep. Positive values make sheep move faster and make the game more difficult. Negative values make sheep move slower.
评论 0
登录后参与评分
还没有评论,来抢沙发吧