# Vector tiles
-TILE_DIRS=roach
+TILE_DIRS=roach serum vehicle_tiles
TILE_SVGS=$(shell find $(patsubst %, $(VPATH)/vector/%, $(TILE_DIRS)) -name "*.svg")
TILE_PNGS=$(patsubst $(VPATH)/vector/%.svg, %.png, $(TILE_SVGS))
ROACH_21=$(patsubst roach/%, roach_21/%, $(ROACH))
ROACH_QUARTET=$(patsubst roach/%, roach_quartet/%, $(ROACH))
ROACH_NONET=$(patsubst roach/%, roach_nonet/%, $(ROACH))
+ROACH_BIG=$(patsubst roach/%, roach_big/%, $(ROACH))
+
+# Aggregate serum sprites
+
+SERUM=$(filter serum/%, $(TILE_PNGS))
+SERUM_BIG=$(patsubst serum/%, serum_big/%, $(SERUM))
# Default target with everything
all: $(TILE_PNGS) $(BTILE_PNGS) $(SIMPLE_PNGS)\
- $(ROACH_32) $(ROACH_21) $(ROACH_QUARTET) $(ROACH_NONET)
+ $(ROACH_32) $(ROACH_21) $(ROACH_QUARTET) $(ROACH_NONET) $(ROACH_BIG)\
+ $(SERUM_BIG)
# Vector tile rule
@mkdir -p `dirname $@`
@inkscape -z -e $@ -w 21 -h 21 $<
+# Big roaches
+
+roach_big/%.png: vector/roach/%.svg
+ @mkdir -p `dirname $@`
+ @inkscape -z -e $@ -w 192 -h 192 $<
+
+# Big serums
+
+serum_big/%.png: vector/serum/%.svg
+ @mkdir -p `dirname $@`
+ @inkscape -z -e $@ -w 192 -h 192 $<
+
# Roach quartet
roach_quartet/roach_%.png: $(foreach i, 1 2 3 4, roach_32/roach_$(i).png)