API development - atangster/food-waste-game GitHub Wiki
Primarily interact with Firebase's API for features like leaderboards, multiplayer modes, and content updates. Possibly write some Cloud Functions to handle more complex logic or transactions.
-
Leaderboards: Store player scores in Firestore or Realtime Database. Use queries to retrieve top player scores. For Firestore, we might use a collection where each document represents a player's score entry.
-
Multiplayer mode: Utilise Firebase Realtime Database for real-time sync of game state between players. Each game session could be a document with child nodes representing game state that updates in real-time.
-
Content updates: Use Firestore to manage dynamic content (like new ingredients or dishes). Update database with new items, and our game can pull this content automatically or through manual updates in the game settings.