Keeping Score Using BehaviorSubject
Explore how to implement score tracking in a reactive spaceship game using RxJS BehaviorSubject. Understand managing scores within Observable pipelines to maintain application purity and build interactive real-time game features effectively.
We'll cover the following...
We'll cover the following...
What kind of game would it be if we couldn’t brag about our results to our friends? We obviously need a way to keep track of how well we did. We need a score.
Let’s make a simple helper function to draw the score on the top left of the ...