Strategy Use Case : Design Patterns in TypeScript

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=v2H-QGbkV6s



Duration: 2:37
0 views
1


https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6

Documentation : https://sbcode.net/typescript/strategy/#strategy-use-case

A game character is moving through an environment. Depending on the situation within the current environment, the user decides to use a different movement algorithm. From the perspective of the object/context, it is still a move, but the implementation is encapsulated in the subclass at the handle.

In a real game, the types of things that a particular move could affect is which animation is looped, the audio, the speed, the camera follow mode and more.

#strategyPattern
#typescriptStrategy
#strategyPatternTypescript







Tags:
Design Patterns In TypeScript
TypeScript
Design Patterns
strategy
strategy pattern