BSG-TUDelft / Utopolis

City building game for TU Delft course (IN4302TU)
2 stars 2 forks source link

Resource generation #95

Closed spassvogel closed 10 years ago

spassvogel commented 10 years ago

Resource generation for all players on the server. Fetched by the client through polling.

  1. fetch the datetime of the poll request BEFORE it
  2. calculate the new resources using the time diff and the players buildings (and citizens allocated within)
  3. update database with resources and send back to client
spassvogel commented 10 years ago

Fixed. Configurable, too