コード例 #1
0
        private void Initiliaze()
        {
            GameIsPlaying = true;
            Paused        = false;
            AppleEaten    = false;

            TailCoordsList = new List <Coord>();

            PlayField = new PlayField(TailCoordsList);

            Tick     = new Stopwatch();
            Renderer = new SnakeRenderer();

            Player    = new Snake(TailCoordsList);
            Direction = new Direction();

            Tick.Start();
            UpdatePlayField();
        }
コード例 #2
0
ファイル: SnakeGame.cs プロジェクト: Racksay/SnakeRefactored
        private void Initiliaze()
        {
            GameIsPlaying = true;
            Paused = false;
            AppleEaten = false;

            TailCoordsList = new List<Coord>();

            PlayField = new PlayField(TailCoordsList);

            Tick  = new Stopwatch();
            Renderer = new SnakeRenderer();

            Player = new Snake(TailCoordsList);
            Direction = new Direction();

            Tick.Start();
            UpdatePlayField();
        }