Building Game with Flutter 10.1: Event Logger.

preview_player
Показать описание
In this video I will code the Event Logger feature. Logger will listen to all the events happening inside your game and...log everything to the...log! Later these logs will be used to give you different achievements.

The game is not yet released but already has a name: "Loca Deserta: Chumaki". This is a trading game set in XVII century in Ukraine. The game is written in 100% Flutter without additional game engines.

Contents

00:00 Intro
01:26 let's trace stock buy event
02:38 Add new event with payload to Stock
08:00 Delegate logic to main Company class
11:00 Let's debug the issue...
13:56 The Fix
16:00 Implement Logger class
18:00 Refactor Company and delegate to Logger
24:10 Why is logged stock empty?
25:40 I had unmutable array....
31:05 Dartpad tests for mutable/immutable Lists
32:10 Summary
Рекомендации по теме