diff --git a/data/images/objects/bonus_block/brickWeb.sprite b/data/images/objects/bonus_block/brickWeb.sprite new file mode 100644 index 00000000000..fc6f9f993d7 --- /dev/null +++ b/data/images/objects/bonus_block/brickWeb.sprite @@ -0,0 +1,8 @@ +(supertux-sprite + (action + (name "empty") + (images "empty.png")) + (action + (name "normal") + (images "../../tiles/blocks/brick2.png")) +) diff --git a/data/images/tiles.strf b/data/images/tiles.strf index 617dbc3589d..0297d2b9ab5 100644 --- a/data/images/tiles.strf +++ b/data/images/tiles.strf @@ -225,8 +225,8 @@ 3122 3108 3109 3127 3131 3132 3133 3134 - 3118 3119 0 0 - 3124 3125 0 0 + 3118 3119 0 3159 + 3124 3125 0 3160 3128 3129 0 0 3135 3136 0 0 )) @@ -667,7 +667,7 @@ ) (tilegroup (name "Block") - (tiles 27 28 29 47 48 50 49 211 77 51 52 212 78 62 61 213 44 83 2947 2948 84 102 140 103 104 105 112 128 3037 2943 2944 2945 2946 1311 2153) + (tiles 27 28 29 47 48 50 49 211 77 51 52 212 78 62 61 213 3159 44 83 2947 2948 84 102 140 103 104 105 3160 112 128 3037 2943 2944 2945 2946 1311 2153) ) (tilegroup (name "Background") @@ -1329,6 +1329,14 @@ (solid #t) (brick #t) ) + (tile + (id 3159) + (images + "tiles/blocks/brick2.png" + ) + (solid #t) + (brick #t) + ) (tiles (width 1) (height 5) @@ -1470,6 +1478,17 @@ (data 1) (next-tile 84) ) + (tile + (id 3160) + (images + "tiles/blocks/brick2.png" + ) + (editor-images "tiles/blocks/brick2_full.png") + (solid #t) + (brick #t) + (data 1) + (next-tile 84) + ) (tiles (width 3) (height 2) @@ -4218,5 +4237,5 @@ ) (image "tiles/halloween/black.png") ) -;; next-id: 3159 +;; next-id: 3161 ) diff --git a/data/images/tiles/blocks/brick2.png b/data/images/tiles/blocks/brick2.png new file mode 100644 index 00000000000..97471b2b834 Binary files /dev/null and b/data/images/tiles/blocks/brick2.png differ diff --git a/data/images/tiles/blocks/brick2_full.png b/data/images/tiles/blocks/brick2_full.png new file mode 100644 index 00000000000..856c292a396 Binary files /dev/null and b/data/images/tiles/blocks/brick2_full.png differ diff --git a/src/supertux/sector.cpp b/src/supertux/sector.cpp index f67d5b10a23..4c666d96eba 100644 --- a/src/supertux/sector.cpp +++ b/src/supertux/sector.cpp @@ -420,7 +420,9 @@ Sector::fix_old_tiles() add_object(std::make_shared(pos, tile->getData())); solids->change(x, y, 0); } else if(tile->getAttributes() & Tile::BRICK) { - if( ( id == 78 ) || ( id == 105 ) ){ + if( ( id == 3159 ) || ( id == 3160 ) ){ + add_object( std::make_shared(pos, tile->getData(), "images/objects/bonus_block/brickWeb.sprite") ); + } else if( ( id == 78 ) || ( id == 105 ) ){ add_object( std::make_shared(pos, tile->getData(), "images/objects/bonus_block/brickIce.sprite") ); } else if( ( id == 77 ) || ( id == 104 ) ){ add_object( std::make_shared(pos, tile->getData(), "images/objects/bonus_block/brick.sprite") );