Example #1
0
        public async ValueTask Draw(CanvasWrapper canvas)
        {
            await _maze.Draw(canvas);

            await _pacman.Draw(canvas);

            await _ghostCollection.DrawAll(canvas);

            await canvas.DrawMyText("GAME OVER", TextPoints.GameOverPoint, Colors.Red);
        }
Example #2
0
    public async ValueTask Draw(CanvasWrapper session)
    {
        await _maze.Draw(session);

        await _pacman.Draw(session);

        if (_step == 0)
        {
            await _ghostCollection.DrawAll(session);
        }
    }