Skip to content

A repo of small demos that assemble some of the well-known design patterns in Unity development to support the ebook "Level up your code with game programming patterns"

Notifications You must be signed in to change notification settings

jasononaquest/game-programming-patterns-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Level up your code with game programming patterns

Understand how to use game programming patterns in your Unity projects 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 some Unity demo examples of design patterns in action for your game development.

Based on the new e-book: Level up your code with game programming patterns

These examples are taken from our new 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. The e-book will be available to download here shortly.

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 for his significant contribution in bringing the guide together as well as creating the demo project.

However, 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.

About

A repo of small demos that assemble some of the well-known design patterns in Unity development to support the ebook "Level up your code with game programming patterns"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 91.3%
  • ShaderLab 8.7%