예제 #1
0
파일: GameScene.cs 프로젝트: LRih/Tetris
        //===================================================================== INITIALIZE
        public GameScene(Window container, Mode mode)
            : base(container)
        {
            _mode = mode;
            _gravity = new Gravity(Container.FPS, _score.Level);
            _lockDelay = Container.FPS / 2;

            GenerateShape();
        }
예제 #2
0
        //===================================================================== INITIALIZE
        public HighScoreScene(Window container, Mode mode, int newLevel, int newScore)
            : base(container)
        {
            _mode = mode;

            LoadScores();

            _newScore = new HighScore(_lastName, newLevel, newScore);
            AddScoreIfGreater(_newScore);

            _rectHighScore = new Rectangle((Container.Rectangle.Width - HIGH_SCORE_WIDTH) / 2, Game.MARGIN * 5, HIGH_SCORE_WIDTH, HIGH_SCORE_HEIGHT);
        }
예제 #3
0
파일: Scene.cs 프로젝트: LRih/Tetris
 //===================================================================== INITIALIZE
 public Scene(Window container)
 {
     Container = container;
 }