コード例 #1
0
        private void addClockwisePlatformTileAt(int x, int y, bool big, bool reverse)
        {
            Vector2 tilePosition = calculateMovingPlatformPosition(x, y, big);
            int     tileWidth    = calculateMovingPlatformWidth(big);

            //CircularMovingPlatform platformTile = new CircularMovingPlatform(world, tilePosition, finalTilePosition, tileWidth, 1.25f, true, false);
            ClockwiseMovingPlatform platformTile = new ClockwiseMovingPlatform(world, tilePosition, tileWidth, reverse);

            addDynamicTile(platformTile);
        }
コード例 #2
0
ファイル: Map.cs プロジェクト: psykano/STFU-xna
        private void addClockwisePlatformTileAt(int x, int y, bool big, bool reverse)
        {
            Vector2 tilePosition = calculateMovingPlatformPosition(x, y, big);
            int tileWidth = calculateMovingPlatformWidth(big);

            //CircularMovingPlatform platformTile = new CircularMovingPlatform(world, tilePosition, finalTilePosition, tileWidth, 1.25f, true, false);
            ClockwiseMovingPlatform platformTile = new ClockwiseMovingPlatform(world, tilePosition, tileWidth, reverse);
            addDynamicTile(platformTile);
        }