Added a halloween themed brick covered with cobwebs
authorLMH <lmh.0013@gmail.com>
Sat, 18 Oct 2014 00:51:03 +0000 (14:51 -1000)
committerLMH <lmh.0013@gmail.com>
Sun, 19 Oct 2014 22:04:07 +0000 (12:04 -1000)
data/images/objects/bonus_block/brickWeb.sprite [new file with mode: 0644]
data/images/tiles.strf
data/images/tiles/blocks/brick2.png [new file with mode: 0644]
data/images/tiles/blocks/brick2_full.png [new file with mode: 0644]
src/supertux/sector.cpp

diff --git a/data/images/objects/bonus_block/brickWeb.sprite b/data/images/objects/bonus_block/brickWeb.sprite
new file mode 100644 (file)
index 0000000..fc6f9f9
--- /dev/null
@@ -0,0 +1,8 @@
+(supertux-sprite
+      (action
+        (name "empty")
+        (images "empty.png"))
+      (action
+        (name "normal")
+        (images "../../tiles/blocks/brick2.png"))
+)
index 617dbc3..0297d2b 100644 (file)
       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
       ))
   )
   (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")
     (solid #t)
     (brick #t)
   )
+  (tile
+    (id 3159)
+    (images
+      "tiles/blocks/brick2.png"
+    )
+    (solid #t)
+    (brick #t)
+  )
   (tiles
     (width 1)
     (height 5)
     (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)
     )
     (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 (file)
index 0000000..97471b2
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 (file)
index 0000000..856c292
Binary files /dev/null and b/data/images/tiles/blocks/brick2_full.png differ
index f67d5b1..4c666d9 100644 (file)
@@ -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") );