MuhammadHasanUsmani / Patternized

Home Page:HomePage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patternized

MIT License

This is an educational project that aims to provide an implementation in Unity of each pattern described in the book Game Programming Patterns by Robert Nystrom.

You'll find the code for each pattern at the path Assets/Project/ along with a readme file that explains how the pattern was used and to what end.

Please mind that these are just demonstrations. If you don't know a pattern and how it works, please consider reading the respective chapter of the book and then come here to see a more robust implementation.

Play

You can play a web version of the "game" here.

List of Patterns

Here's the current stage of development for each pattern:

  • Command
  • Flyweight ⏳
  • Observer
  • Prototype
  • Singleton
  • State
  • Double Buffer
  • Game Loop
  • Update Method
  • Bytecode
  • Subclass Sandbox
  • Type Object
  • Component
  • Event Queue
  • Service Locator
  • Data Locality
  • Dirty Flag
  • Object Pool
  • Spatial Partition

Credits

Assets provided by Kenney

License

MIT License

Copyright (c) 2024 Luiz Henrique Harsche

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

HomePage


Languages

Language:ShaderLab 70.6%Language:C# 17.1%Language:HLSL 12.3%