monkeydevDe / piLaz0rTag

Lasertag system on a PI
3 stars 0 forks source link

GameLog #23

Open tuxBurner opened 7 years ago

tuxBurner commented 7 years ago

We need a game log for a game so it can be used for stats and later for debug.

Log should be implemented in the BaseGame like:

this.addGameLog(type,payload);

The type is a string like: shoot, reload, start, gothit etc. The payload is optional and can be something like when got hit: {'player': 1, 'team': 'green', 'strength' : 75}

The logs itself are stored with a timestamp.

nOneKzero commented 7 years ago

Related to #20