예제 #1
0
        private void addHorizontalPlatformTileAt(int x, int y, bool big, bool reverse)
        {
            Vector2 tilePosition = calculateMovingPlatformPosition(x, y, big);
            int     tileWidth    = calculateMovingPlatformWidth(big);

            HorizontalMovingPlatform platformTile = new HorizontalMovingPlatform(world, tilePosition, tileWidth, this.LevelMap.TileWidth, reverse);

            addDynamicTile(platformTile);
        }
예제 #2
0
파일: Map.cs 프로젝트: psykano/STFU-xna
        private void addHorizontalPlatformTileAt(int x, int y, bool big, bool reverse)
        {
            Vector2 tilePosition = calculateMovingPlatformPosition(x, y, big);
            int tileWidth = calculateMovingPlatformWidth(big);

            HorizontalMovingPlatform platformTile = new HorizontalMovingPlatform(world, tilePosition, tileWidth, this.LevelMap.TileWidth, reverse);
            addDynamicTile(platformTile);
        }