Skip to content

mads-fs/csharp-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C# Patterns

Inspired by the wonderful Refactor Guru I set out to take their post a step further and implement the patterns in a Game Context. The purpose is two-fold:

  • I wish to sharpen my own abilities
  • I hope what I make can be used by others as well to learn and further their programming knowledge

I would like for this repository to act as a knowledge base on how to quickly and easily understand these patterns so that they can be used in your own games to better the maintainability of your code.

These patterns exist for a reason, and that's because we know they work.

All of the Code is MIT licensed, so feel free to do whatever you want with it. But hopefully learn from it most of all!

How to use it

In order to use this respository best, you should have the .NET 6 SDK and an IDE that can open the code, or simply use Visual Studio as I did (VS2022 while making this project).

Clone the repository to your computer, open the code in your IDE of choice, set the project you want to demo as the Startup Project and then Run the code. Every example has code comments added and should hopefully give some idea of how to use these patterns. Please do not look at the code as a best practice way of implementing production ready code. The examples are merely there to support the showcasing of each pattern and I can't make any claim to the efficiency of scaffolding to showcase the pattern.

About

This repository serves as an example of how to implement some of the most common software development patterns but in a games context.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages