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(); }
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(); }