Skip to content
项目

Unity-Technologies/game-programming-patterns-demo

在 GitHub 查看

关于

一个包含小型示例的仓库,这些示例组合了 Unity 开发中一些知名的设计模式,用于配合电子书《使用游戏编程模式提升代码水平》

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
+1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Level up your code with game programming patterns

When working in Unity, you don’t have to reinvent the wheel. It’s likely someone has already invented one for you. For every software design issue you encounter, a thousand developers have been there before. While you can’t always ask them directly for advice, you can learn from their decisions through design patterns.

A design pattern is a general solution to a common problem found in software engineering. These aren’t finished solutions that you can copy and paste into your code; instead, think of design patterns as extra tools in your toolbox. By understanding and using these patterns in a way that fits your project, you can produce cleaner code that’s easier to understand and faster to test and scale as your project grows.

This GitHub repository contains examples, in Unity, of design patterns in action that can inform your own game development.

From the advanced e-book that’s written for experienced developers

These examples are taken from our e-book, Level up your code with game programming patterns. This 100-page guide explains the design patterns covered in this demo in more detail, as well as explaining the SOLID programming principles and concepts such as KISS and DRY.

Learn more in our how-to pages available here:

Or download the full e-book here. Blog Post_800x450

How to use the game programming patterns guide

Both internal and external Unity development experts contributed to the new e-book, especially Wilmer Lin at Unity Game Academy, who made significant contributions, both to the guide and the demo project.

Please keep in mind that the guide and these examples are based on subjective opinion; they are not recommendations that promise a particular outcome, but are examples only. A good code architectural solution is one that fits your needs and covers the majority of the day-to-day use cases in your game development. Our intention is for you to use the guide and examples as a starting point for creating your own guidelines.

探索相关项目

加载中…