예제 #1
0
        /*
         * private void addGroundLowerInclineTileAt(int x, int y)
         * {
         *  Vector2 tilePosition = calculateTilePosition(x, y);
         *  //GroundTile spikeTile = new SpikeTile(world, tilePosition, this.LevelMap.TileWidth + spikeTileSizeOffset, this.LevelMap.TileHeight + spikeTileSizeOffset);
         *  //addTile(groundTile);
         * }
         *
         * private void addGroundUpperInclineTileAt(int x, int y)
         * {
         * }
         *
         * private void addGroundLowerDeclineTileAt(int x, int y)
         * {
         * }
         *
         * private void addGroundUpperDeclineTileAt(int x, int y)
         * {
         * }
         */

        private void addSpikeTileAt(int x, int y)
        {
            Vector2   tilePosition = calculateTilePosition(x, y);
            SpikeTile spikeTile    = new SpikeTile(world, tilePosition, this.LevelMap.TileWidth + spikeTileSizeOffset, this.LevelMap.TileHeight + spikeTileSizeOffset);

            addTile(spikeTile);
        }
예제 #2
0
파일: Map.cs 프로젝트: psykano/STFU-xna
        /*
        private void addGroundLowerInclineTileAt(int x, int y)
        {
            Vector2 tilePosition = calculateTilePosition(x, y);
            //GroundTile spikeTile = new SpikeTile(world, tilePosition, this.LevelMap.TileWidth + spikeTileSizeOffset, this.LevelMap.TileHeight + spikeTileSizeOffset);
            //addTile(groundTile);
        }

        private void addGroundUpperInclineTileAt(int x, int y)
        {
        }

        private void addGroundLowerDeclineTileAt(int x, int y)
        {
        }

        private void addGroundUpperDeclineTileAt(int x, int y)
        {
        }
         */
        private void addSpikeTileAt(int x, int y)
        {
            Vector2 tilePosition = calculateTilePosition(x, y);
            SpikeTile spikeTile = new SpikeTile(world, tilePosition, this.LevelMap.TileWidth + spikeTileSizeOffset, this.LevelMap.TileHeight + spikeTileSizeOffset);
            addTile(spikeTile);
        }