Skip to content

Commit

Permalink
Added a halloween themed brick covered with cobwebs
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH0013 committed Oct 19, 2014
1 parent eb172ca commit 0fc674b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
8 changes: 8 additions & 0 deletions 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"))
)
27 changes: 23 additions & 4 deletions data/images/tiles.strf
Expand Up @@ -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
))
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -4218,5 +4237,5 @@
)
(image "tiles/halloween/black.png")
)
;; next-id: 3159
;; next-id: 3161
)
Binary file added data/images/tiles/blocks/brick2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/tiles/blocks/brick2_full.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/supertux/sector.cpp
Expand Up @@ -420,7 +420,9 @@ Sector::fix_old_tiles()
add_object(std::make_shared<BonusBlock>(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<Brick>(pos, tile->getData(), "images/objects/bonus_block/brickWeb.sprite") );
} else if( ( id == 78 ) || ( id == 105 ) ){
add_object( std::make_shared<Brick>(pos, tile->getData(), "images/objects/bonus_block/brickIce.sprite") );
} else if( ( id == 77 ) || ( id == 104 ) ){
add_object( std::make_shared<Brick>(pos, tile->getData(), "images/objects/bonus_block/brick.sprite") );
Expand Down

0 comments on commit 0fc674b

Please sign in to comment.