feat: NSIS 中文安装器(年糕历险记-Setup-v0.1.0.exe 实际构建+静默安装验证)、菜单鼠标可见性修复、首页 UI 原版复刻(土质背景/原版按钮/splash/版本角标)、全 goroutine 崩溃兜底

This commit is contained in:
NianGao Dev
2026-08-16 06:46:25 +08:00
parent 854440216f
commit 6dd5a8122a
434 changed files with 63991 additions and 106 deletions

View File

@@ -4,6 +4,8 @@ package engine
import (
"context"
"time"
"mc/internal/crash"
)
// Ticker 世界逻辑接口:每 tick 调用,dt 为固定 tick 间隔秒数。
@@ -31,6 +33,7 @@ func Run(ctx context.Context, tick Ticker, render Renderer) {
const tickInterval = time.Second / 20
stop := make(chan struct{})
go func() {
defer crash.RecoverGo("engine-tick") // 非主 goroutine 兜底:panic 写崩溃日志(防静默闪退)
t := time.NewTicker(tickInterval)
defer t.Stop()
for {