private void DoGameLoop() { if (_isAutomatedControlled) { OnSnakeMove?.Invoke(Player1); } else { SetPlayerDirection(); } Player1.MovePlayer(); CheckForCollisions(); GameCanvas.Invalidate(); }
public static void BroadcastSnakeMove(Bounds b) => OnSnakeMove?.Invoke(b);