joshoxe / crackle

0 stars 0 forks source link

Make game code event driven #6

Open joshoxe opened 2 years ago

joshoxe commented 2 years ago

Add a pub/sub pattern so that the game service can emit events when a player wins or loses, rather than handling this in component code

joshoxe commented 2 years ago

https://www.digitalocean.com/community/tutorials/vuejs-global-event-bus