コード例 #1
0
        public void Initialize()
        {
            timings = new TimeVector(game, position, data.GetTimeVector());

            pointGrid = new PointSquareGrid(game, spriteSheet, new Vector2(position.X + 10, position.Y), data.PointDataGrid);
            pointGrid.Initialize(data.PointDataGrid);

            durationGrid = new DurationSquareGrid(game, spriteSheet, new Vector2(position.X + 200, position.Y), data.DurationDataGrid);
            durationGrid.Initialize(data.DurationDataGrid, data.DurationChains);

            viewFrame = 0;
            UpdateViewFrame();
        }
コード例 #2
0
        public static float GetTimeForCoordinate(int gridYPosition)
        {
            float time = TimeVector.GetTimeFromIndex(gridYPosition);

            return(time);
        }