pc-games

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

PC/Console Game Development

PC/主机游戏开发

Engine selection and platform-specific principles.

引擎选择与平台专属原则。

1. Engine Selection

1. 引擎选择

Decision Tree

决策树

What are you building?
├── 2D Game
│   ├── Open source important? → Godot
│   └── Large team/assets? → Unity
├── 3D Game
│   ├── AAA visual quality? → Unreal
│   ├── Cross-platform priority? → Unity
│   └── Indie/open source? → Godot 4
└── Specific Needs
    ├── DOTS performance? → Unity
    ├── Nanite/Lumen? → Unreal
    └── Lightweight? → Godot
What are you building?
├── 2D Game
│   ├── Open source important? → Godot
│   └── Large team/assets? → Unity
├── 3D Game
│   ├── AAA visual quality? → Unreal
│   ├── Cross-platform priority? → Unity
│   └── Indie/open source? → Godot 4
└── Specific Needs
    ├── DOTS performance? → Unity
    ├── Nanite/Lumen? → Unreal
    └── Lightweight? → Godot

Comparison

对比

FactorUnity 6Godot 4Unreal 5
2DGoodExcellentLimited
3DGoodGoodExcellent
LearningMediumEasyHard
CostRevenue shareFree5% after $1M
TeamAnySolo-MediumMedium-Large

因素Unity 6Godot 4Unreal 5
2D良好优秀有限
3D良好良好优秀
学习难度中等简单困难
成本营收分成免费营收超100万美元后抽成5%
团队规模适配任意规模单人-中型团队中型-大型团队

2. Platform Features

2. 平台特性

Steam Integration

Steam集成

FeaturePurpose
AchievementsPlayer goals
Cloud SavesCross-device progress
LeaderboardsCompetition
WorkshopUser mods
Rich PresenceShow in-game status
功能用途
成就系统激励玩家达成目标
云存档跨设备进度同步
排行榜促进玩家竞技
创意工坊支持用户模组
丰富状态展示显示游戏内状态

Console Requirements

主机平台要求

PlatformCertification
PlayStationTRC compliance
XboxXR compliance
NintendoLotcheck

平台认证标准
PlayStationTRC合规
XboxXR合规
NintendoLotcheck

3. Controller Support

3. 控制器支持

Input Abstraction

输入抽象

Map ACTIONS, not buttons:
- "confirm" → A (Xbox), Cross (PS), B (Nintendo)
- "cancel" → B (Xbox), Circle (PS), A (Nintendo)
Map ACTIONS, not buttons:
- "confirm" → A (Xbox), Cross (PS), B (Nintendo)
- "cancel" → B (Xbox), Circle (PS), A (Nintendo)

Haptic Feedback

触觉反馈

IntensityUse
LightUI feedback
MediumImpacts
HeavyMajor events

强度适用场景
轻度UI反馈
中度碰撞反馈
重度重大事件反馈

4. Performance Optimization

4. 性能优化

Profiling First

先做性能分析

EngineTool
UnityProfiler Window
GodotDebugger → Profiler
UnrealUnreal Insights
引擎工具
UnityProfiler Window
GodotDebugger → Profiler
UnrealUnreal Insights

Common Bottlenecks

常见性能瓶颈

BottleneckSolution
Draw callsBatching, atlases
GC spikesObject pooling
PhysicsSimpler colliders
ShadersLOD shaders

瓶颈解决方案
绘制调用批处理、图集
GC峰值对象池
物理运算简化碰撞体
着色器LOD着色器

5. Engine-Specific Principles

5. 引擎专属原则

Unity 6

Unity 6

  • DOTS for performance-critical systems
  • Burst compiler for hot paths
  • Addressables for asset streaming
  • 针对性能关键系统使用DOTS
  • 对热点路径使用Burst编译器
  • 使用Addressables进行资源流加载

Godot 4

Godot 4

  • GDScript for rapid iteration
  • C# for complex logic
  • Signals for decoupling
  • 使用GDScript实现快速迭代
  • 使用C#处理复杂逻辑
  • 使用Signals实现解耦

Unreal 5

Unreal 5

  • Blueprint for designers
  • C++ for performance
  • Nanite for high-poly environments
  • Lumen for dynamic lighting

  • 为设计师使用Blueprint
  • 为性能需求使用C++
  • 使用Nanite处理高多边形环境
  • 使用Lumen实现动态光照

6. Anti-Patterns

6. 反模式

❌ Don't✅ Do
Choose engine by hypeChoose by project needs
Ignore platform guidelinesStudy certification requirements
Hardcode input buttonsAbstract to actions
Skip profilingProfile early and often

Remember: Engine is a tool. Master the principles, then adapt to any engine.
❌ 不要做✅ 应该做
跟风选择引擎根据项目需求选择
忽略平台规范研究认证要求
硬编码输入按钮抽象为动作
跳过性能分析尽早并频繁进行性能分析

谨记: 引擎只是工具。掌握核心原则,就能适配任何引擎。